diff --git a/1103-es2015.b36aaeca94d9c572199b.js b/1103-es2015.cba2ac0c0f1ac721ad2f.js similarity index 100% rename from 1103-es2015.b36aaeca94d9c572199b.js rename to 1103-es2015.cba2ac0c0f1ac721ad2f.js diff --git a/1103-es5.b36aaeca94d9c572199b.js b/1103-es5.cba2ac0c0f1ac721ad2f.js similarity index 100% rename from 1103-es5.b36aaeca94d9c572199b.js rename to 1103-es5.cba2ac0c0f1ac721ad2f.js diff --git a/1326-es2015.1416ec0e9e0ba19754ad.js b/1326-es2015.03fdacdbdbc70c3dc5f7.js similarity index 100% rename from 1326-es2015.1416ec0e9e0ba19754ad.js rename to 1326-es2015.03fdacdbdbc70c3dc5f7.js diff --git a/1326-es5.1416ec0e9e0ba19754ad.js b/1326-es5.03fdacdbdbc70c3dc5f7.js similarity index 100% rename from 1326-es5.1416ec0e9e0ba19754ad.js rename to 1326-es5.03fdacdbdbc70c3dc5f7.js diff --git a/1434-es2015.bb28c8c32980eedbfa8c.js b/1434-es2015.c5421f30d48834170a48.js similarity index 100% rename from 1434-es2015.bb28c8c32980eedbfa8c.js rename to 1434-es2015.c5421f30d48834170a48.js diff --git a/1434-es5.bb28c8c32980eedbfa8c.js b/1434-es5.c5421f30d48834170a48.js similarity index 100% rename from 1434-es5.bb28c8c32980eedbfa8c.js rename to 1434-es5.c5421f30d48834170a48.js diff --git a/1510-es2015.c1ba721ec9fecfa882b6.js b/1510-es2015.a488aea897a354ac790d.js similarity index 100% rename from 1510-es2015.c1ba721ec9fecfa882b6.js rename to 1510-es2015.a488aea897a354ac790d.js diff --git a/1510-es5.c1ba721ec9fecfa882b6.js b/1510-es5.a488aea897a354ac790d.js similarity index 100% rename from 1510-es5.c1ba721ec9fecfa882b6.js rename to 1510-es5.a488aea897a354ac790d.js diff --git a/2022-es2015.73baf59786d0a28962c6.js b/2022-es2015.b95e416d14696caac6e2.js similarity index 100% rename from 2022-es2015.73baf59786d0a28962c6.js rename to 2022-es2015.b95e416d14696caac6e2.js diff --git a/2022-es5.73baf59786d0a28962c6.js b/2022-es5.b95e416d14696caac6e2.js similarity index 100% rename from 2022-es5.73baf59786d0a28962c6.js rename to 2022-es5.b95e416d14696caac6e2.js diff --git a/2139-es2015.6e1a236b4b4419161bcd.js b/2139-es2015.e603f587a26916af9a6a.js similarity index 100% rename from 2139-es2015.6e1a236b4b4419161bcd.js rename to 2139-es2015.e603f587a26916af9a6a.js diff --git a/2139-es5.6e1a236b4b4419161bcd.js b/2139-es5.e603f587a26916af9a6a.js similarity index 100% rename from 2139-es5.6e1a236b4b4419161bcd.js rename to 2139-es5.e603f587a26916af9a6a.js diff --git a/2473-es2015.4da7284058933ecb1bb7.js b/2473-es2015.a43bf9ea0bd9524b551a.js similarity index 100% rename from 2473-es2015.4da7284058933ecb1bb7.js rename to 2473-es2015.a43bf9ea0bd9524b551a.js diff --git a/2473-es5.4da7284058933ecb1bb7.js b/2473-es5.a43bf9ea0bd9524b551a.js similarity index 100% rename from 2473-es5.4da7284058933ecb1bb7.js rename to 2473-es5.a43bf9ea0bd9524b551a.js diff --git a/3355-es2015.827681cfee6eeb63ae60.js b/3355-es2015.90ca83635ad10a6a7ecf.js similarity index 100% rename from 3355-es2015.827681cfee6eeb63ae60.js rename to 3355-es2015.90ca83635ad10a6a7ecf.js diff --git a/3355-es5.827681cfee6eeb63ae60.js b/3355-es5.90ca83635ad10a6a7ecf.js similarity index 100% rename from 3355-es5.827681cfee6eeb63ae60.js rename to 3355-es5.90ca83635ad10a6a7ecf.js diff --git a/3506-es2015.6a91e0988adf7267c42b.js b/3506-es2015.4b6febc6df5733bf0e76.js similarity index 100% rename from 3506-es2015.6a91e0988adf7267c42b.js rename to 3506-es2015.4b6febc6df5733bf0e76.js diff --git a/3506-es5.6a91e0988adf7267c42b.js b/3506-es5.4b6febc6df5733bf0e76.js similarity index 100% rename from 3506-es5.6a91e0988adf7267c42b.js rename to 3506-es5.4b6febc6df5733bf0e76.js diff --git a/3820-es2015.e57f8ad0f6f8306b7f85.js b/3820-es2015.6fe237a309e294dab8e3.js similarity index 100% rename from 3820-es2015.e57f8ad0f6f8306b7f85.js rename to 3820-es2015.6fe237a309e294dab8e3.js diff --git a/3820-es5.e57f8ad0f6f8306b7f85.js b/3820-es5.6fe237a309e294dab8e3.js similarity index 100% rename from 3820-es5.e57f8ad0f6f8306b7f85.js rename to 3820-es5.6fe237a309e294dab8e3.js diff --git a/4272-es2015.334fc4bc20e6561fd9a0.js b/4272-es2015.f35ed456bbb2f631bae0.js similarity index 100% rename from 4272-es2015.334fc4bc20e6561fd9a0.js rename to 4272-es2015.f35ed456bbb2f631bae0.js diff --git a/4272-es5.334fc4bc20e6561fd9a0.js b/4272-es5.f35ed456bbb2f631bae0.js similarity index 100% rename from 4272-es5.334fc4bc20e6561fd9a0.js rename to 4272-es5.f35ed456bbb2f631bae0.js diff --git a/439-es2015.c3e43ff918e3da7617fe.js b/439-es2015.54f8d8686d0d94cc7d71.js similarity index 100% rename from 439-es2015.c3e43ff918e3da7617fe.js rename to 439-es2015.54f8d8686d0d94cc7d71.js diff --git a/439-es5.c3e43ff918e3da7617fe.js b/439-es5.54f8d8686d0d94cc7d71.js similarity index 100% rename from 439-es5.c3e43ff918e3da7617fe.js rename to 439-es5.54f8d8686d0d94cc7d71.js diff --git a/4533-es2015.efab1f5bde9eedff41c3.js b/4533-es2015.72f0d65bb6eb0a829f11.js similarity index 100% rename from 4533-es2015.efab1f5bde9eedff41c3.js rename to 4533-es2015.72f0d65bb6eb0a829f11.js diff --git a/4533-es5.efab1f5bde9eedff41c3.js b/4533-es5.72f0d65bb6eb0a829f11.js similarity index 100% rename from 4533-es5.efab1f5bde9eedff41c3.js rename to 4533-es5.72f0d65bb6eb0a829f11.js diff --git a/5115-es2015.5db3394f72bd124c8653.js b/5115-es2015.5a17a4ffe7bd1e5ceea4.js similarity index 100% rename from 5115-es2015.5db3394f72bd124c8653.js rename to 5115-es2015.5a17a4ffe7bd1e5ceea4.js diff --git a/5115-es5.5db3394f72bd124c8653.js b/5115-es5.5a17a4ffe7bd1e5ceea4.js similarity index 100% rename from 5115-es5.5db3394f72bd124c8653.js rename to 5115-es5.5a17a4ffe7bd1e5ceea4.js diff --git a/5380-es2015.6c1c41173fec70845619.js b/5380-es2015.53384f98147478ca71fe.js similarity index 100% rename from 5380-es2015.6c1c41173fec70845619.js rename to 5380-es2015.53384f98147478ca71fe.js diff --git a/5380-es5.6c1c41173fec70845619.js b/5380-es5.53384f98147478ca71fe.js similarity index 100% rename from 5380-es5.6c1c41173fec70845619.js rename to 5380-es5.53384f98147478ca71fe.js diff --git a/5439-es2015.9483978db13316f02e45.js b/5439-es2015.3d5bb8dd9096f6d82e26.js similarity index 100% rename from 5439-es2015.9483978db13316f02e45.js rename to 5439-es2015.3d5bb8dd9096f6d82e26.js diff --git a/5439-es5.9483978db13316f02e45.js b/5439-es5.3d5bb8dd9096f6d82e26.js similarity index 100% rename from 5439-es5.9483978db13316f02e45.js rename to 5439-es5.3d5bb8dd9096f6d82e26.js diff --git a/55-es2015.9e88ca94c1742c30d42b.js b/55-es2015.72f9be559172c250b317.js similarity index 100% rename from 55-es2015.9e88ca94c1742c30d42b.js rename to 55-es2015.72f9be559172c250b317.js diff --git a/55-es5.9e88ca94c1742c30d42b.js b/55-es5.72f9be559172c250b317.js similarity index 100% rename from 55-es5.9e88ca94c1742c30d42b.js rename to 55-es5.72f9be559172c250b317.js diff --git a/5828-es2015.634454247ee596d4a165.js b/5828-es2015.b4dda4162059afc13b7d.js similarity index 100% rename from 5828-es2015.634454247ee596d4a165.js rename to 5828-es2015.b4dda4162059afc13b7d.js diff --git a/5828-es5.634454247ee596d4a165.js b/5828-es5.b4dda4162059afc13b7d.js similarity index 100% rename from 5828-es5.634454247ee596d4a165.js rename to 5828-es5.b4dda4162059afc13b7d.js diff --git a/6180-es2015.b7a3640ae6beed1f6f84.js b/6180-es2015.1718e059b4e30c5222ac.js similarity index 100% rename from 6180-es2015.b7a3640ae6beed1f6f84.js rename to 6180-es2015.1718e059b4e30c5222ac.js diff --git a/6180-es5.b7a3640ae6beed1f6f84.js b/6180-es5.1718e059b4e30c5222ac.js similarity index 100% rename from 6180-es5.b7a3640ae6beed1f6f84.js rename to 6180-es5.1718e059b4e30c5222ac.js diff --git a/6275-es2015.bfc2de2ffbec01149b8b.js b/6275-es2015.1af4cd92448b1027451a.js similarity index 100% rename from 6275-es2015.bfc2de2ffbec01149b8b.js rename to 6275-es2015.1af4cd92448b1027451a.js diff --git a/6275-es5.bfc2de2ffbec01149b8b.js b/6275-es5.1af4cd92448b1027451a.js similarity index 100% rename from 6275-es5.bfc2de2ffbec01149b8b.js rename to 6275-es5.1af4cd92448b1027451a.js diff --git a/6549-es2015.5ad95ced3e42b59e75d8.js b/6549-es2015.9cceed669a27406de435.js similarity index 100% rename from 6549-es2015.5ad95ced3e42b59e75d8.js rename to 6549-es2015.9cceed669a27406de435.js diff --git a/6549-es5.5ad95ced3e42b59e75d8.js b/6549-es5.9cceed669a27406de435.js similarity index 100% rename from 6549-es5.5ad95ced3e42b59e75d8.js rename to 6549-es5.9cceed669a27406de435.js diff --git a/7027-es2015.672be5f7ffc3c5e3a340.js b/7027-es2015.c8a2b463fc96ddfd3b0c.js similarity index 100% rename from 7027-es2015.672be5f7ffc3c5e3a340.js rename to 7027-es2015.c8a2b463fc96ddfd3b0c.js diff --git a/7027-es5.672be5f7ffc3c5e3a340.js b/7027-es5.c8a2b463fc96ddfd3b0c.js similarity index 100% rename from 7027-es5.672be5f7ffc3c5e3a340.js rename to 7027-es5.c8a2b463fc96ddfd3b0c.js diff --git a/7057-es2015.78e3af66d33e33d7e11c.js b/7057-es2015.b6523dadb104d19dd845.js similarity index 100% rename from 7057-es2015.78e3af66d33e33d7e11c.js rename to 7057-es2015.b6523dadb104d19dd845.js diff --git a/7057-es5.78e3af66d33e33d7e11c.js b/7057-es5.b6523dadb104d19dd845.js similarity index 100% rename from 7057-es5.78e3af66d33e33d7e11c.js rename to 7057-es5.b6523dadb104d19dd845.js diff --git a/7989-es2015.27a68595f7fd1918d653.js b/7989-es2015.699498c7fbd5db73a9d9.js similarity index 100% rename from 7989-es2015.27a68595f7fd1918d653.js rename to 7989-es2015.699498c7fbd5db73a9d9.js diff --git a/7989-es5.27a68595f7fd1918d653.js b/7989-es5.699498c7fbd5db73a9d9.js similarity index 100% rename from 7989-es5.27a68595f7fd1918d653.js rename to 7989-es5.699498c7fbd5db73a9d9.js diff --git a/8642-es2015.e4dec60495d7dddf9201.js b/8642-es2015.51e1a35124ad44cf5a26.js similarity index 100% rename from 8642-es2015.e4dec60495d7dddf9201.js rename to 8642-es2015.51e1a35124ad44cf5a26.js diff --git a/8642-es5.e4dec60495d7dddf9201.js b/8642-es5.51e1a35124ad44cf5a26.js similarity index 100% rename from 8642-es5.e4dec60495d7dddf9201.js rename to 8642-es5.51e1a35124ad44cf5a26.js diff --git a/903-es2015.3fbcf33a35d304a0d527.js b/903-es2015.2fa23dc79ca75fb8da7e.js similarity index 100% rename from 903-es2015.3fbcf33a35d304a0d527.js rename to 903-es2015.2fa23dc79ca75fb8da7e.js diff --git a/903-es5.3fbcf33a35d304a0d527.js b/903-es5.2fa23dc79ca75fb8da7e.js similarity index 100% rename from 903-es5.3fbcf33a35d304a0d527.js rename to 903-es5.2fa23dc79ca75fb8da7e.js diff --git a/9176-es2015.f16517c398feb9629ba8.js b/9176-es2015.8984a52387472f22d539.js similarity index 100% rename from 9176-es2015.f16517c398feb9629ba8.js rename to 9176-es2015.8984a52387472f22d539.js diff --git a/9176-es5.f16517c398feb9629ba8.js b/9176-es5.8984a52387472f22d539.js similarity index 100% rename from 9176-es5.f16517c398feb9629ba8.js rename to 9176-es5.8984a52387472f22d539.js diff --git a/9380-es2015.f6f9881092eda099d463.js b/9380-es2015.37f1c73bb29ef7c14689.js similarity index 100% rename from 9380-es2015.f6f9881092eda099d463.js rename to 9380-es2015.37f1c73bb29ef7c14689.js diff --git a/9380-es5.f6f9881092eda099d463.js b/9380-es5.37f1c73bb29ef7c14689.js similarity index 100% rename from 9380-es5.f6f9881092eda099d463.js rename to 9380-es5.37f1c73bb29ef7c14689.js diff --git a/9544-es2015.29752d6257fb2060c2a7.js b/9544-es2015.a826aa13685d45676d84.js similarity index 100% rename from 9544-es2015.29752d6257fb2060c2a7.js rename to 9544-es2015.a826aa13685d45676d84.js diff --git a/9544-es5.29752d6257fb2060c2a7.js b/9544-es5.a826aa13685d45676d84.js similarity index 100% rename from 9544-es5.29752d6257fb2060c2a7.js rename to 9544-es5.a826aa13685d45676d84.js diff --git a/addons/phone/index.html b/addons/phone/index.html index d4f9d11e4..08a3f0f2e 100644 --- a/addons/phone/index.html +++ b/addons/phone/index.html @@ -17,35 +17,68 @@ Maskito | Phone + -

Phone
PHONE

This mask is based on the libphonenumber-js package.

Use maskitoPhoneOptionsGenerator to create a mask for phone input.

Basic

Kazakhstan phone example

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Validation

For validating phone number you can use isValidPhoneNumber , isPossiblePhoneNumber functions from libphonenumber-js package. Read more

Below is an example of a Hungarian phone mask with an angular validator.

    
-    
-
    
-    
-

Non-strict mask

Setting the strict option to false enables non-strict mask mode and allow user to type any country phone number.

The countryIsoCode option is optional in that case, but if you specify it, the mask will try to add that country's calling code when you try to insert a phone number without a calling code.

    
-    
-
    
-    
-

Lazy metadata

You can load metadata lazily, below is an example of how to do it in Angular.

You can also customize the metadata to reduce metadata size. See instructions here

    
-    
-
    
-    
-
- +

Phone
PHONE

This mask is based on the libphonenumber-js package.

Use maskitoPhoneOptionsGenerator to create a mask for phone input.

Basic

Kazakhstan phone example

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Validation

For validating phone number you can use isValidPhoneNumber , isPossiblePhoneNumber functions from libphonenumber-js package. Read more

Below is an example of a Hungarian phone mask with an angular validator.

    
+    
+ + +
+
    
+    
+ + +
+

Non-strict mask

Setting the strict option to false enables non-strict mask mode and allow user to type any country phone number.

The countryIsoCode option is optional in that case, but if you specify it, the mask will try to add that country's calling code when you try to insert a phone number without a calling code.

    
+    
+ + +
+
    
+    
+ + +
+

Lazy metadata

You can load metadata lazily, below is an example of how to do it in Angular.

You can also customize the metadata to reduce metadata size. See instructions here

    
+    
+ + +
+
    
+    
+ + +
+
+ \ No newline at end of file diff --git a/browser-support/index.html b/browser-support/index.html index 311ef11a5..da593fff7 100644 --- a/browser-support/index.html +++ b/browser-support/index.html @@ -17,13 +17,13 @@ Maskito | Browser support + -

Browser support

Desktop

BrowserVersion
Google Chrome 74+
Mozilla Firefox 55+
Safari 12.1+
Opera 62+
Edge (Chromium) 74+
Microsoft Internet ExplorerNot supported
Edge (EdgeHTML)Not supported

Mobile

BrowserVersion
Google Chrome90+
Mozilla Firefox99+
Safari12.2+
Opera64+
- +

Browser support

Desktop

BrowserVersion
Google Chrome 74+
Mozilla Firefox 55+
Safari 12.1+
Opera 62+
Edge (Chromium) 74+
Microsoft Internet ExplorerNot supported
Edge (EdgeHTML)Not supported

Mobile

BrowserVersion
Google Chrome90+
Mozilla Firefox99+
Safari12.2+
Opera64+
+ \ No newline at end of file diff --git a/changelog/index.html b/changelog/index.html index 12d5944fc..f68c0cdea 100644 --- a/changelog/index.html +++ b/changelog/index.html @@ -17,13 +17,13 @@ Maskito | Changelog + -

Changelog

Changelog

+

Changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.7.0 (2023-09-15)

@@ -440,8 +440,8 @@

0.1.0 (2023-02-14)

-
- +
+ \ No newline at end of file diff --git a/core-concepts/element-state/index.html b/core-concepts/element-state/index.html index bfa0d82d7..52f62b558 100644 --- a/core-concepts/element-state/index.html +++ b/core-concepts/element-state/index.html @@ -17,15 +17,18 @@ Maskito | Element state + -

Element state

Element state is a concept which describes the main properties of the masked element at the certain period of time.

It is an object which implements the following interface:

    
-    
-

This concept is actively used throughout Maskito libraries, and you can find its usage in the following topics:

- +

Element state

Element state is a concept which describes the main properties of the masked element at the certain period of time.

It is an object which implements the following interface:

    
+    
+ + +
+

This concept is actively used throughout Maskito libraries, and you can find its usage in the following topics:

+ \ No newline at end of file diff --git a/core-concepts/mask-expression/index.html b/core-concepts/mask-expression/index.html index c1f2fbeda..9fad63dcf 100644 --- a/core-concepts/mask-expression/index.html +++ b/core-concepts/mask-expression/index.html @@ -17,19 +17,28 @@ Maskito | Mask expression + -

Mask expression

Mask expression is the the main concept of Maskito core library. It provides the developer with opportunity to predefine format of user's input. For example, you can set mask expression to accept only digits, only Latin letters or you can configure more complex patterns like a date string.

You can set mask expression using mask parameter of MaskitoOptions .

Types of mask expression

  • RegExp mask expression

    The most basic and comprehensible type. The only required knowledge is understanding of native JavaScript Regular expression .

    See the following example:

        
    -    
    -
    Make sure that mask expression works with any of intermediate states, not just the final value.

    For example, imagine that you have to create mask for 4-digits PIN code.

    /^\d{4}$/ is a wrong mask expression. It does not match intermediate states (you cannot complete 4-digit string without possibility to type 1-, 2- or 3-digit string).

    /^\d{0,4}$/ is the right solution for our example.

  • Pattern mask expression

    It is a good choice for more complex masks that are fixed in size. This type of mask expression is presented as array. Each element in the array has to be either a string or a regular expression. Each string is a fixed character and each regular expression is validator of character at the same index.

    Fixed character — a predefined character at a certain position (the same as its index inside mask expression array). It is automatically added when user forgets to type it. It cannot be erased or replaced with another character.

    For example, imagine that you have to create mask for a time-string with HH:MM format. It consists of 4 digits and 1 fixed-character separator : .

        
    -    
    -

    This mask expression forbids anything excepts digits and limits length of the value to 5 characters.

    Also, it manages user interactions with fixed character.

    For example, user can just type four digits 1159 and the value becomes 11:59

    Another example, if caret position is after the colon and user presses Backspace , the input's value will not change but caret will be moved to the left of the colon.

  • Dynamic mask expression

    mask parameter can also accepts function which generates mask expression. This function will be called every time before input changes to generate a new version of mask expression.

    An "Element state" object with raw value and current selection is passed as an argument to the function.
        
    -    
    -
    Be careful! It can be not performance-friendly to generate new mask expression on every input change.

    Think about optimization and memoization of the such function.

Next steps

The following sections are recommended to explore core concepts further:

- +

Mask expression

Mask expression is the the main concept of Maskito core library. It provides the developer with opportunity to predefine format of user's input. For example, you can set mask expression to accept only digits, only Latin letters or you can configure more complex patterns like a date string.

You can set mask expression using mask parameter of MaskitoOptions .

Types of mask expression

  • RegExp mask expression

    The most basic and comprehensible type. The only required knowledge is understanding of native JavaScript Regular expression .

    See the following example:

        
    +    
    + + +
    +
    Make sure that mask expression works with any of intermediate states, not just the final value.

    For example, imagine that you have to create mask for 4-digits PIN code.

    /^\d{4}$/ is a wrong mask expression. It does not match intermediate states (you cannot complete 4-digit string without possibility to type 1-, 2- or 3-digit string).

    /^\d{0,4}$/ is the right solution for our example.

  • Pattern mask expression

    It is a good choice for more complex masks that are fixed in size. This type of mask expression is presented as array. Each element in the array has to be either a string or a regular expression. Each string is a fixed character and each regular expression is validator of character at the same index.

    Fixed character — a predefined character at a certain position (the same as its index inside mask expression array). It is automatically added when user forgets to type it. It cannot be erased or replaced with another character.

    For example, imagine that you have to create mask for a time-string with HH:MM format. It consists of 4 digits and 1 fixed-character separator : .

        
    +    
    + + +
    +

    This mask expression forbids anything excepts digits and limits length of the value to 5 characters.

    Also, it manages user interactions with fixed character.

    For example, user can just type four digits 1159 and the value becomes 11:59

    Another example, if caret position is after the colon and user presses Backspace , the input's value will not change but caret will be moved to the left of the colon.

  • Dynamic mask expression

    mask parameter can also accepts function which generates mask expression. This function will be called every time before input changes to generate a new version of mask expression.

    An "Element state" object with raw value and current selection is passed as an argument to the function.
        
    +    
    + + +
    +
    Be careful! It can be not performance-friendly to generate new mask expression on every input change.

    Think about optimization and memoization of the such function.

Next steps

The following sections are recommended to explore core concepts further:

+ \ No newline at end of file diff --git a/core-concepts/overview/index.html b/core-concepts/overview/index.html index 5f26036fb..1d167409b 100644 --- a/core-concepts/overview/index.html +++ b/core-concepts/overview/index.html @@ -17,15 +17,18 @@ Maskito | Core concepts + -

Core concepts

The main entity of Maskito core library is Maskito class which accepts 2 arguments in constructor:

  1. native HTMLInputElement or HTMLTextAreaElement
  2. set of configurable MaskitoOptions
    
-    
-
Avoid wasting computation power or memory resources!

The only available public method destroy removes all created event listeners. Call it to clean everything up when the work is finished.

To understand the capabilities of the Maskito library, you need to learn about the following features and concepts:

- +

Core concepts

The main entity of Maskito core library is Maskito class which accepts 2 arguments in constructor:

  1. native HTMLInputElement or HTMLTextAreaElement
  2. set of configurable MaskitoOptions
    
+    
+ + +
+
Avoid wasting computation power or memory resources!

The only available public method destroy removes all created event listeners. Call it to clean everything up when the work is finished.

To understand the capabilities of the Maskito library, you need to learn about the following features and concepts:

+ \ No newline at end of file diff --git a/core-concepts/overwrite-mode/index.html b/core-concepts/overwrite-mode/index.html index 38e6676fe..6d0a0d737 100644 --- a/core-concepts/overwrite-mode/index.html +++ b/core-concepts/overwrite-mode/index.html @@ -17,43 +17,88 @@ Maskito | Overwrite mode + -

Overwrite mode

Overwrite mode regulates behaviour of the mask when user inserts a new character somewhere in the middle of text field, overwriting the character at the current index.

overwriteMode can be of a following type:

  • shift (default)
  • replace
  • function that receives element state as an argument and returns shift or replace

Shift mode

The classic mode that everyone is used to. Inserting a new character in the middle of the text field value shifts all following characters to the right.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Replace mode

All new inserted characters replace the old characters at the same position. No character shifts. The length of the value remains the same after inserting new character somewhere in middle of the text field.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Dynamically detected mode

Parameter overwriteMode also accepts function that will called before each insertion of new characters. This function has one argument — current element state (read more about it in the "Element state" section). And this function should return one of two possible values: shift or replace .

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Next steps

The following sections are recommended to explore core concepts further:

- +

Overwrite mode

Overwrite mode regulates behaviour of the mask when user inserts a new character somewhere in the middle of text field, overwriting the character at the current index.

overwriteMode can be of a following type:

  • shift (default)
  • replace
  • function that receives element state as an argument and returns shift or replace

Shift mode

The classic mode that everyone is used to. Inserting a new character in the middle of the text field value shifts all following characters to the right.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Replace mode

All new inserted characters replace the old characters at the same position. No character shifts. The length of the value remains the same after inserting new character somewhere in middle of the text field.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Dynamically detected mode

Parameter overwriteMode also accepts function that will called before each insertion of new characters. This function has one argument — current element state (read more about it in the "Element state" section). And this function should return one of two possible values: shift or replace .

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Next steps

The following sections are recommended to explore core concepts further:

+ \ No newline at end of file diff --git a/core-concepts/plugins/index.html b/core-concepts/plugins/index.html index c1fbbcafe..f932d6c5f 100644 --- a/core-concepts/plugins/index.html +++ b/core-concepts/plugins/index.html @@ -17,23 +17,38 @@ Maskito | Plugins + -

Plugins

Plugins are functions that are called with input/textarea element and mask options as arguments upon mask initialization. They can optionally return cleanup logic and allow you to extend mask with arbitrary additional behavior.

Visualize rejected characters

This plugin is available as maskitoRejectEvent in @maskito/kit
    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Next steps

The following sections are recommended to explore core concepts further:

- +

Plugins

Plugins are functions that are called with input/textarea element and mask options as arguments upon mask initialization. They can optionally return cleanup logic and allow you to extend mask with arbitrary additional behavior.

Visualize rejected characters

This plugin is available as maskitoRejectEvent in @maskito/kit
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Next steps

The following sections are recommended to explore core concepts further:

+ \ No newline at end of file diff --git a/core-concepts/processors/index.html b/core-concepts/processors/index.html index f6e48e899..1d06c98df 100644 --- a/core-concepts/processors/index.html +++ b/core-concepts/processors/index.html @@ -17,21 +17,33 @@ Maskito | Processors + -

Processors

MaskitoOptions have optional parameters preprocessors and postprocessors . Both accept array of pure functions. These functions are triggered on every user's input ( beforeinput and input events). They provide an opportunity to modify value before / after the mask is applied.

Preprocessors and postprocessors accept different types of arguments but they have two important similarities:

  • The first argument always contains object with information that you can change. Object with the same properties and updated values can be returned from the processor. It means that you can keep all properties untouched or you can change any or all of these properties.
  • The rest arguments contain information that can be useful to build some complex logic, but you cannot change it.
Before you learn more about processors, you should learn a single prerequisite — meaning of the term "Element state" .

Preprocessors

Each preprocessor is a function that is called before mask is applied.

For example, if user types a new character, all preprocessors will be called first, and only then final value that they returned will be passed into the mask, and finally the mask will accept or reject new typed character and update actual value of the text field.

Preprocessor accepts two arguments:

  1. Object with two properties: elementState and data . Object of the same interface with updated or unchanged properties can be returned from the preprocessor.
        
    -    
    +        

    Processors

    MaskitoOptions have optional parameters preprocessors and postprocessors . Both accept array of pure functions. These functions are triggered on every user's input ( beforeinput and input events). They provide an opportunity to modify value before / after the mask is applied.

    Preprocessors and postprocessors accept different types of arguments but they have two important similarities:

    • The first argument always contains object with information that you can change. Object with the same properties and updated values can be returned from the processor. It means that you can keep all properties untouched or you can change any or all of these properties.
    • The rest arguments contain information that can be useful to build some complex logic, but you cannot change it.
    Before you learn more about processors, you should learn a single prerequisite — meaning of the term "Element state" .

    Preprocessors

    Each preprocessor is a function that is called before mask is applied.

    For example, if user types a new character, all preprocessors will be called first, and only then final value that they returned will be passed into the mask, and finally the mask will accept or reject new typed character and update actual value of the text field.

    Preprocessor accepts two arguments:

    1. Object with two properties: elementState and data . Object of the same interface with updated or unchanged properties can be returned from the preprocessor.
          
      +    
      + + +
    2. Name of the action which triggers current execution. It can be one of the following possible values:
          
      -    
      +    
      + + +

    Preprocessor returns an objects of the same interface as the first argument.

        
    -    
    -

    Postprocessors

    Each postprocessor is a function that is called after the mask is applied. When all preprocessors are already called, all mask operations happened and the input's value is about to be updated. You can change everything manually inside a postprocessor.

    Postprocessor accepts two arguments:

    1. Element state after mask had been applied. Postprocessor can return updated element state which would then be reflected by the actual text field.
    2. Initial element state before preprocessors and mask execution. It is a readonly argument, the past cannot be changed...

    Postprocessor returns an objects of the same interface as the first argument.

    With great power comes great responsibility!

    Postprocessor is the final step before input's value update which gives a lot of flexibility. Use postprocessor wisely and return a valid value!

        
    -    
    -
    Stacking of multiple processors

    The Maskito team likes code decomposition and promotes it! Don't put all complex logic inside a single processor. Both parameters preprocessors and postprocessors accepts array of same type processors. Break your code into the several independent processors so that each processor implements only a single task.

    Next steps

    The following sections are recommended to explore core concepts further:

    - +
    + + +
    +

Postprocessors

Each postprocessor is a function that is called after the mask is applied. When all preprocessors are already called, all mask operations happened and the input's value is about to be updated. You can change everything manually inside a postprocessor.

Postprocessor accepts two arguments:

  1. Element state after mask had been applied. Postprocessor can return updated element state which would then be reflected by the actual text field.
  2. Initial element state before preprocessors and mask execution. It is a readonly argument, the past cannot be changed...

Postprocessor returns an objects of the same interface as the first argument.

With great power comes great responsibility!

Postprocessor is the final step before input's value update which gives a lot of flexibility. Use postprocessor wisely and return a valid value!

    
+    
+ + +
+
Stacking of multiple processors

The Maskito team likes code decomposition and promotes it! Don't put all complex logic inside a single processor. Both parameters preprocessors and postprocessors accepts array of same type processors. Break your code into the several independent processors so that each processor implements only a single task.

Next steps

The following sections are recommended to explore core concepts further:

+ \ No newline at end of file diff --git a/core-concepts/transformer/index.html b/core-concepts/transformer/index.html index 6df93b45e..d20450db9 100644 --- a/core-concepts/transformer/index.html +++ b/core-concepts/transformer/index.html @@ -17,15 +17,18 @@ Maskito | Transformer + -

Transformer
CORE

Maskito libraries were created to prevent user from typing invalid value.
Maskito listens beforeinput and input events. Programmatic (by developer) changes of input's value don't trigger these events!

Maskito is based on the assumption that developer is capable to programmatically patch input with valid value!

If you need to programmatically patch input's value but you are not sure that your value is valid (for example, you get it from the server), you should use maskitoTransform utility .

    
-    
-

Next steps

The following sections are recommended to explore core concepts further:

- +

Transformer
CORE

Maskito libraries were created to prevent user from typing invalid value.
Maskito listens beforeinput and input events. Programmatic (by developer) changes of input's value don't trigger these events!

Maskito is based on the assumption that developer is capable to programmatically patch input with valid value!

If you need to programmatically patch input's value but you are not sure that your value is valid (for example, you get it from the server), you should use maskitoTransform utility .

    
+    
+ + +
+

Next steps

The following sections are recommended to explore core concepts further:

+ \ No newline at end of file diff --git a/cypress/index.html b/cypress/index.html index e72fe2e5c..68070888e 100644 --- a/cypress/index.html +++ b/cypress/index.html @@ -17,13 +17,13 @@ Maskito | Cypress tests 🤫 + -

Cypress

- +

Cypress

+ \ No newline at end of file diff --git a/frameworks/angular/Setup/index.html b/frameworks/angular/Setup/index.html index 5e953d0cd..68e92bbf7 100644 --- a/frameworks/angular/Setup/index.html +++ b/frameworks/angular/Setup/index.html @@ -17,19 +17,25 @@ Maskito | Angular + -

Angular

  1. Install libraries

    /your/project/path> +

    Angular

    1. Install libraries

      /your/project/path>

          
      -    
      +    
      + + +
    2. Import MaskitoModule to your module

      your.module.ts

          
      -    
      -
    - +
    + + +
    +
+ \ No newline at end of file diff --git a/frameworks/angular/index.html b/frameworks/angular/index.html index a49472b9c..d505e259b 100644 --- a/frameworks/angular/index.html +++ b/frameworks/angular/index.html @@ -17,37 +17,64 @@ Maskito | Angular + -

Angular

@maskito/angular is a light-weighted library to use Maskito in an Angular-way.
Prerequisites

To get the most out of this guide, you should review the topic "Core Concepts" first.

Write less code

  • No need to query element from DOM. Just pass all required options to [maskito] directive.
  • No need to worry about clean-ups. All created event listeners are automatically removed after element is detached from DOM.

Basic directive approach

Use it when you have direct access to native input element.

your.component.ts +

Angular

@maskito/angular is a light-weighted library to use Maskito in an Angular-way.
Prerequisites

To get the most out of this guide, you should review the topic "Core Concepts" first.

Write less code

  • No need to query element from DOM. Just pass all required options to [maskito] directive.
  • No need to worry about clean-ups. All created event listeners are automatically removed after element is detached from DOM.

Basic directive approach

Use it when you have direct access to native input element.

your.component.ts

    
-    
-

Nested input element

Pass a predicate to maskito to find input element for you, if you do not have a direct access to it.

By default maskito will try to find input/textarea by querying its host: host.querySelector('input,textarea') so that might be sufficient. Use custom predicate if you need custom logic.

your.component.ts +

+ + +
+

Nested input element

Pass a predicate to maskito to find input element for you, if you do not have a direct access to it.

By default maskito will try to find input/textarea by querying its host: host.querySelector('input,textarea') so that might be sufficient. Use custom predicate if you need custom logic.

your.component.ts

    
-    
-

Custom input

See querying nested input in action

Default behavior is enough for Taiga UI inputs
Custom predicate is required if target input is not the first on in the DOM
    
-    
-
    
-    
-
    
-    
-

Form controls

When directly on native input/textarea tag, maskito directive formats value set programmatically with Angular forms.

    
-    
-
    
-    
-

Pipe

Format arbitrary value with the same options

Balance: $12 345.67 -
    
-    
-
    
-    
-
- +
+ + +
+

Custom input

See querying nested input in action

Default behavior is enough for Taiga UI inputs
Custom predicate is required if target input is not the first on in the DOM
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Form controls

When directly on native input/textarea tag, maskito directive formats value set programmatically with Angular forms.

    
+    
+ + +
+
    
+    
+ + +
+

Pipe

Format arbitrary value with the same options

Balance: $12 345.67 +
    
+    
+ + +
+
    
+    
+ + +
+
+ \ No newline at end of file diff --git a/frameworks/react/index.html b/frameworks/react/index.html index 8e10de911..710a4212f 100644 --- a/frameworks/react/index.html +++ b/frameworks/react/index.html @@ -17,25 +17,43 @@ Maskito | React + -

React

@maskito/react is a light-weighted library to use Maskito in an React-way.

Prerequisites

To get the most out of this guide, you should review the topic "Core Concepts" first.

Getting Started

Install libraries

    
-    
+        

React

@maskito/react is a light-weighted library to use Maskito in an React-way.

Prerequisites

To get the most out of this guide, you should review the topic "Core Concepts" first.

Getting Started

Install libraries

    
+    
+ + +

and use Maskito

    
-    
-

See the result of above code example in action:

Query nested input element

Pass a predicate to elementPredicate to find input element for you, if you do not have a direct access to it. For example, you use component from some UI Kit library.

By default Maskito will try to find input/textarea by querying its host: host.querySelector('input,textarea') so that might be sufficient. Use custom predicate if you need custom logic.
    
-    
-
    
-    
+    
+ + +
+

See the result of above code example in action:

Query nested input element

Pass a predicate to elementPredicate to find input element for you, if you do not have a direct access to it. For example, you use component from some UI Kit library.

By default Maskito will try to find input/textarea by querying its host: host.querySelector('input,textarea') so that might be sufficient. Use custom predicate if you need custom logic.
    
+    
+ + +
+
    
+    
+ + +

Controlled masked input

Maskito core is developed as framework-agnostic library. It does not depend on any JS-framework's peculiarities. It uses only native browser API. That is why you should use native onInput instead of React-specific onChange event. Do not worry, both events works similarly! Read more about it in the official React documentation.

    
-    
+    
+ + +

Best practices & Anti-Patterns

Pass named variables to avoid unnecessary hook runs with Maskito recreation:

    
-    
-
- +
+ + +
+
+ \ No newline at end of file diff --git a/frameworks/vue/index.html b/frameworks/vue/index.html index a186b906f..541ff2c1a 100644 --- a/frameworks/vue/index.html +++ b/frameworks/vue/index.html @@ -17,21 +17,33 @@ Maskito | Vue + -

Vue

@maskito/vue is a light-weighted library to use Maskito in as a Vue directive.

Prerequisites

To get the most out of this guide, you should review the topic "Core Concepts" first.

Getting Started

Install libraries

    
-    
+        

Vue

@maskito/vue is a light-weighted library to use Maskito in as a Vue directive.

Prerequisites

To get the most out of this guide, you should review the topic "Core Concepts" first.

Getting Started

Install libraries

    
+    
+ + +

and use Maskito

    
-    
-

Above code example in practice

Query nested input element

Pass a predicate to elementPredicate to find input element for you, if you do not have a direct access to it. For example, you use component from some UI Kit library.

By default Maskito will try to find input/textarea by querying its host: host.querySelector('input,textarea') so that might be sufficient. Use custom predicate if you need custom logic.
    
-    
+    
+ + +
+

Above code example in practice

Query nested input element

Pass a predicate to elementPredicate to find input element for you, if you do not have a direct access to it. For example, you use component from some UI Kit library.

By default Maskito will try to find input/textarea by querying its host: host.querySelector('input,textarea') so that might be sufficient. Use custom predicate if you need custom logic.
    
+    
+ + +

Best practices & Anti-Patterns

Avoid inlining options object, otherwise Maskito will be recreated on every update:

    
-    
-
- +
+ + +
+
+ \ No newline at end of file diff --git a/getting-started/maskito-libraries/index.html b/getting-started/maskito-libraries/index.html index 48ba0bbc1..5aaa6ce63 100644 --- a/getting-started/maskito-libraries/index.html +++ b/getting-started/maskito-libraries/index.html @@ -17,31 +17,49 @@ Maskito | Maskito libraries + -

Maskito libraries

Maskito is a collection of libraries. Explore them and learn how to install and use them.

  • @maskito/core

    It is the main zero-dependency and framework-agnostic package. It can be used alone in vanilla JavaScript project. It listens to beforeinput and input events to validate and calibrate text field value.

    All other Maskito's packages require @maskito/core as peer-dependency.

    /your/project/path> +

    Maskito libraries

    Maskito is a collection of libraries. Explore them and learn how to install and use them.

    • @maskito/core

      It is the main zero-dependency and framework-agnostic package. It can be used alone in vanilla JavaScript project. It listens to beforeinput and input events to validate and calibrate text field value.

      All other Maskito's packages require @maskito/core as peer-dependency.

      /your/project/path>

          
      -    
      +    
      + + +

      Learn more about this library in "Core Concepts" section.

    • @maskito/kit

      The optional framework-agnostic package. It contains ready-to-use masks with configurable parameters.

      /your/project/path>

          
      -    
      +    
      + + +

      See examples: Number or Time .

    • @maskito/phone

      The optional framework-agnostic package. It contains ready-to-use international phone mask based on popular libphonenumber-js package.

      /your/project/path>

          
      -    
      +    
      + + +

      See example Phone Mask

    • @maskito/angular

      The Angular-specific library. It provides a convenient way to use Maskito as a directive.

      /your/project/path>

          
      -    
      +    
      + + +

      Learn more about this library in "Angular" section.

    • @maskito/react

      The React-specific library. It provides a convenient way to use Maskito as a hook.

      /your/project/path>

          
      -    
      +    
      + + +

      Learn more about this library in "React" section.

    • @maskito/vue

      The Vue-specific library. It provides a convenient way to use Maskito as a directive.

      /your/project/path>

          
      -    
      -

      Learn more about this library in "Vue" section.

    - +
    + + +
    +

    Learn more about this library in "Vue" section.

+ \ No newline at end of file diff --git a/getting-started/what-is-maskito/index.html b/getting-started/what-is-maskito/index.html index 2010943d1..9ecd0f858 100644 --- a/getting-started/what-is-maskito/index.html +++ b/getting-started/what-is-maskito/index.html @@ -17,13 +17,13 @@ Maskito | What is Maskito? + -

What is Maskito?

Maskito is a collection of libraries, built with TypeScript. It helps you to create an input mask which ensures that users type values according to predefined format.

Core concepts of the libraries are simple but they provide flexible API to set any format you wish: numbers, phone, date, credit card number etc.

Why Maskito?

  • Maskito supports all user’s interactions with text fields: basic typing and deleting via keyboard, pasting, dropping text inside with a pointer, browser autofill, predictive text from mobile native keyboard.
  • Maskito is robust. The whole project is developed with strict TypeScript mode. Our code is covered by hundreds of Cypress tests.
  • Server Side Rendering and Shadow DOM support.
  • You can use it with HTMLInputElement and HTMLTextAreaElement .
  • Maskito core is zero-dependency package. You can mask input in your vanilla JavaScript project. However, we have separate packages for Angular , React and Vue as well.
  • Maskito includes optional framework-agnostic package with configurable ready-to-use masks.

No textfield with invalid value! Use Maskito. Mask it!

Learn about Maskito

- +

What is Maskito?

Maskito is a collection of libraries, built with TypeScript. It helps you to create an input mask which ensures that users type values according to predefined format.

Core concepts of the libraries are simple but they provide flexible API to set any format you wish: numbers, phone, date, credit card number etc.

Why Maskito?

  • Maskito supports all user’s interactions with text fields: basic typing and deleting via keyboard, pasting, dropping text inside with a pointer, browser autofill, predictive text from mobile native keyboard.
  • Maskito is robust. The whole project is developed with strict TypeScript mode. Our code is covered by hundreds of Cypress tests.
  • Server Side Rendering and Shadow DOM support.
  • You can use it with HTMLInputElement and HTMLTextAreaElement .
  • Maskito core is zero-dependency package. You can mask input in your vanilla JavaScript project. However, we have separate packages for Angular , React and Vue as well.
  • Maskito includes optional framework-agnostic package with configurable ready-to-use masks.

No textfield with invalid value! Use Maskito. Mask it!

Learn about Maskito

+ \ No newline at end of file diff --git a/index.html b/index.html index b348a3a87..f8375bff5 100644 --- a/index.html +++ b/index.html @@ -17,13 +17,13 @@ Maskito | What is Maskito? + -

What is Maskito?

Maskito is a collection of libraries, built with TypeScript. It helps you to create an input mask which ensures that users type values according to predefined format.

Core concepts of the libraries are simple but they provide flexible API to set any format you wish: numbers, phone, date, credit card number etc.

Why Maskito?

  • Maskito supports all user’s interactions with text fields: basic typing and deleting via keyboard, pasting, dropping text inside with a pointer, browser autofill, predictive text from mobile native keyboard.
  • Maskito is robust. The whole project is developed with strict TypeScript mode. Our code is covered by hundreds of Cypress tests.
  • Server Side Rendering and Shadow DOM support.
  • You can use it with HTMLInputElement and HTMLTextAreaElement .
  • Maskito core is zero-dependency package. You can mask input in your vanilla JavaScript project. However, we have separate packages for Angular , React and Vue as well.
  • Maskito includes optional framework-agnostic package with configurable ready-to-use masks.

No textfield with invalid value! Use Maskito. Mask it!

Learn about Maskito

- +

What is Maskito?

Maskito is a collection of libraries, built with TypeScript. It helps you to create an input mask which ensures that users type values according to predefined format.

Core concepts of the libraries are simple but they provide flexible API to set any format you wish: numbers, phone, date, credit card number etc.

Why Maskito?

  • Maskito supports all user’s interactions with text fields: basic typing and deleting via keyboard, pasting, dropping text inside with a pointer, browser autofill, predictive text from mobile native keyboard.
  • Maskito is robust. The whole project is developed with strict TypeScript mode. Our code is covered by hundreds of Cypress tests.
  • Server Side Rendering and Shadow DOM support.
  • You can use it with HTMLInputElement and HTMLTextAreaElement .
  • Maskito core is zero-dependency package. You can mask input in your vanilla JavaScript project. However, we have separate packages for Angular , React and Vue as well.
  • Maskito includes optional framework-agnostic package with configurable ready-to-use masks.

No textfield with invalid value! Use Maskito. Mask it!

Learn about Maskito

+ \ No newline at end of file diff --git a/index.original.html b/index.original.html index 7216c50d2..b950e9bd3 100644 --- a/index.original.html +++ b/index.original.html @@ -18,6 +18,6 @@ Loading... - + \ No newline at end of file diff --git a/kit/date-range/API/index.html b/kit/date-range/API/index.html index 8fd2001ec..4d111322e 100644 --- a/kit/date-range/API/index.html +++ b/kit/date-range/API/index.html @@ -17,13 +17,13 @@ Maskito | DateRange + -

DateRange
KIT

tuiMode:
-
Name and descriptionType Value
[mode]
Date format mode
MaskitoDateMode
'dd/mm/yyyy'
[dateSeparator]
Separator between date segments (days, months and years).

Default:. (dot).

string
[rangeSeparator]
Separator between dates of the date range.

Default: â€“ 

string
[min]
Earliest date
Date
'0001-01-01'
[max]
Latest date
Date
'9999-12-31'
[minLength]
Minimal length of the range
MaskitoDateSegments<number>
{}
[maxLength]
Maximal length of the range
MaskitoDateSegments<number>
{}
[separator]
deprecated Use dateSeparator instead.

Default:. (dot).

- +

DateRange
KIT

tuiMode:
-
Name and descriptionType Value
[mode]
Date format mode
MaskitoDateMode
'dd/mm/yyyy'
[dateSeparator]
Separator between date segments (days, months and years).

Default:. (dot).

string
[rangeSeparator]
Separator between dates of the date range.

Default: â€“ 

string
[min]
Earliest date
Date
'0001-01-01'
[max]
Latest date
Date
'9999-12-31'
[minLength]
Minimal length of the range
MaskitoDateSegments<number>
{}
[maxLength]
Maximal length of the range
MaskitoDateSegments<number>
{}
[separator]
deprecated Use dateSeparator instead.

Default:. (dot).

+ \ No newline at end of file diff --git a/kit/date-range/index.html b/kit/date-range/index.html index 8f4936ddb..6a9eada0b 100644 --- a/kit/date-range/index.html +++ b/kit/date-range/index.html @@ -17,53 +17,113 @@ Maskito | DateRange + -

DateRange
KIT

Use maskitoDateRangeOptionsGenerator to create a mask to input a range of dates.

Date localization

Use mode and separator parameters to get a mask with a locale specific representation of dates.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Min and max dates

Parameters min and max allow you to set the earliest and the latest available dates. They accept native Date .

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Min and max length of range

Use minLength and maxLength parameters to set minimal and maximal length of the date range.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Custom range separator

Use rangeSeparator parameter to customize separator between dates of the date range.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-
- +

DateRange
KIT

Use maskitoDateRangeOptionsGenerator to create a mask to input a range of dates.

Date localization

Use mode and separator parameters to get a mask with a locale specific representation of dates.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Min and max dates

Parameters min and max allow you to set the earliest and the latest available dates. They accept native Date .

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Min and max length of range

Use minLength and maxLength parameters to set minimal and maximal length of the date range.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Custom range separator

Use rangeSeparator parameter to customize separator between dates of the date range.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
+ \ No newline at end of file diff --git a/kit/date-time/API/index.html b/kit/date-time/API/index.html index 01dc3ee61..a9c004714 100644 --- a/kit/date-time/API/index.html +++ b/kit/date-time/API/index.html @@ -17,13 +17,13 @@ Maskito | DateTime + -

DateTime
KIT

tuiMode:
-
Name and descriptionType Value
[dateMode]
Date format mode
MaskitoDateMode
'dd/mm/yyyy'
[timeMode]
Time format mode
MaskitoTimeMode
'HH:MM'
[dateSeparator]
Date separator

Default:. (dot).

string
[min]
Earliest date
Date
'0001-01-01T00:00:00'
[max]
Latest date
Date
'9999-12-31T23:59:59'
- +

DateTime
KIT

tuiMode:
-
Name and descriptionType Value
[dateMode]
Date format mode
MaskitoDateMode
'dd/mm/yyyy'
[timeMode]
Time format mode
MaskitoTimeMode
'HH:MM'
[dateSeparator]
Date separator

Default:. (dot).

string
[min]
Earliest date
Date
'0001-01-01T00:00:00'
[max]
Latest date
Date
'9999-12-31T23:59:59'
+ \ No newline at end of file diff --git a/kit/date-time/index.html b/kit/date-time/index.html index 479e1d13f..471315c82 100644 --- a/kit/date-time/index.html +++ b/kit/date-time/index.html @@ -17,33 +17,63 @@ Maskito | DateTime + -

DateTime
KIT

Use maskitoDateTimeOptionsGenerator to create a mask to input both date and time.

Localization

Use dateMode , timeMode and dateSeparator parameters to get a mask with a locale specific representation of dates.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Min and max

Parameters min and max allow to set the earliest and the latest available dates. They accept native Date .

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-
- +

DateTime
KIT

Use maskitoDateTimeOptionsGenerator to create a mask to input both date and time.

Localization

Use dateMode , timeMode and dateSeparator parameters to get a mask with a locale specific representation of dates.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Min and max

Parameters min and max allow to set the earliest and the latest available dates. They accept native Date .

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
+ \ No newline at end of file diff --git a/kit/date/API/index.html b/kit/date/API/index.html index 71404812a..ea189cfd8 100644 --- a/kit/date/API/index.html +++ b/kit/date/API/index.html @@ -17,13 +17,13 @@ Maskito | Date + -

Date
KIT

tuiMode:
-
Name and descriptionType Value
[mode]
Date format mode
MaskitoDateMode
'dd/mm/yyyy'
[separator]
Symbol for separating date-segments (days, months, years)

Default:. (dot)

string
'.'
[min]
Earliest date

Default:new Date('0001-01-01')

Date
'0001-01-01'
[max]
Latest date

Default:new Date('9999-12-31')

Date
'9999-12-31'
- +

Date
KIT

tuiMode:
-
Name and descriptionType Value
[mode]
Date format mode
MaskitoDateMode
'dd/mm/yyyy'
[separator]
Symbol for separating date-segments (days, months, years)

Default:. (dot)

string
'.'
[min]
Earliest date

Default:new Date('0001-01-01')

Date
'0001-01-01'
[max]
Latest date

Default:new Date('9999-12-31')

Date
'9999-12-31'
+ \ No newline at end of file diff --git a/kit/date/index.html b/kit/date/index.html index de04ee067..8f1f072b5 100644 --- a/kit/date/index.html +++ b/kit/date/index.html @@ -17,33 +17,63 @@ Maskito | Date + -

Date
KIT

Use maskitoDateOptionsGenerator to create a mask for date input.

Date localization

Use mode and separator properties to get a mask with a locale specific representation of dates.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Min/Max

Properties min and max allow you to set the earliest and the latest available dates. They accept native Date .

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-
- +

Date
KIT

Use maskitoDateOptionsGenerator to create a mask for date input.

Date localization

Use mode and separator properties to get a mask with a locale specific representation of dates.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Min/Max

Properties min and max allow you to set the earliest and the latest available dates. They accept native Date .

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
+ \ No newline at end of file diff --git a/kit/number/API/index.html b/kit/number/API/index.html index 3d2afa251..2768d624f 100644 --- a/kit/number/API/index.html +++ b/kit/number/API/index.html @@ -17,13 +17,13 @@ Maskito | Number + -

Number
KIT

tuiMode:
-
Name and descriptionType Value
[precision]
A number of digits after decimalSeparator .

Use Infinity for an untouched decimal part.

Default:0 (decimal part is forbidden).

number
0
[decimalSeparator]
Symbol for separating fraction.

Default: dot.

string
[decimalPseudoSeparators]
Symbols to be replaced with decimalSeparator .

Default:['.', 'ю', 'б'] .

string[]
['.', ',', 'б', 'ю']
[decimalZeroPadding]
If number of digits after decimalSeparator is always equal to the precision .

Default:false (number of digits can be less than precision) .

boolean
[thousandSeparator]
Symbol for separating thousands.

Default: non-breaking space.

string
[min]
The lowest permitted value.

Default:Number.MIN_SAFE_INTEGER .

number
[max]
The greatest permitted value.

Default:Number.MAX_SAFE_INTEGER .

number
[prefix]
A prefix symbol, like currency.

Default: empty string (no prefix).

string
[postfix]
A postfix symbol, like currency.

Default: empty string (no postfix).

string
- +

Number
KIT

tuiMode:
-
Name and descriptionType Value
[precision]
A number of digits after decimalSeparator .

Use Infinity for an untouched decimal part.

Default:0 (decimal part is forbidden).

number
0
[decimalSeparator]
Symbol for separating fraction.

Default: dot.

string
[decimalPseudoSeparators]
Symbols to be replaced with decimalSeparator .

Default:['.', 'ю', 'б'] .

string[]
['.', ',', 'б', 'ю']
[decimalZeroPadding]
If number of digits after decimalSeparator is always equal to the precision .

Default:false (number of digits can be less than precision) .

boolean
[thousandSeparator]
Symbol for separating thousands.

Default: non-breaking space.

string
[min]
The lowest permitted value.

Default:Number.MIN_SAFE_INTEGER .

number
[max]
The greatest permitted value.

Default:Number.MAX_SAFE_INTEGER .

number
[prefix]
A prefix symbol, like currency.

Default: empty string (no prefix).

string
[postfix]
A postfix symbol, like currency.

Default: empty string (no postfix).

string
+ \ No newline at end of file diff --git a/kit/number/index.html b/kit/number/index.html index 9b22ed093..67357add1 100644 --- a/kit/number/index.html +++ b/kit/number/index.html @@ -17,59 +17,128 @@ Maskito | Number + -

Number
KIT

Use maskitoNumberOptionsGenerator to create a mask for entering a formatted number.
Despite the name of the mask, element's raw value is still string.

Use maskitoParseNumber to get number-type value.

    
-    
-

High precision

Use precision parameter to configure the number of digits after decimal separator.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Separators

Use decimalSeparator and thousandSeparator to get mask with locale specific representation of numbers.

In Germany people use comma as decimal separator and dot for thousands
    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Postfix

Use postfix parameter to set non-removable text after the number.
Additionally you can use maskitoCaretGuard to clamp caret inside allowable range.
This example also shows how to restrict the greatest permitted value via max parameter.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Decimal zero padding

Set decimalZeroPadding: true to always show trailing zeroes.

Non removable dollar sign is achieved by using prefix parameter.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

Dynamic decimal zero padding

You can change options on the fly to build complex logic.
This example shows how to initially disable decimalZeroPadding and enable it only after user inserts decimal separator.

    
-    
-
    
-    
-
- +

Number
KIT

Use maskitoNumberOptionsGenerator to create a mask for entering a formatted number.
Despite the name of the mask, element's raw value is still string.

Use maskitoParseNumber to get number-type value.

    
+    
+ + +
+

High precision

Use precision parameter to configure the number of digits after decimal separator.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Separators

Use decimalSeparator and thousandSeparator to get mask with locale specific representation of numbers.

In Germany people use comma as decimal separator and dot for thousands
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Postfix

Use postfix parameter to set non-removable text after the number.
Additionally you can use maskitoCaretGuard to clamp caret inside allowable range.
This example also shows how to restrict the greatest permitted value via max parameter.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Decimal zero padding

Set decimalZeroPadding: true to always show trailing zeroes.

Non removable dollar sign is achieved by using prefix parameter.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

Dynamic decimal zero padding

You can change options on the fly to build complex logic.
This example shows how to initially disable decimalZeroPadding and enable it only after user inserts decimal separator.

    
+    
+ + +
+
    
+    
+ + +
+
+ \ No newline at end of file diff --git a/kit/time/API/index.html b/kit/time/API/index.html index 191aae5a1..37fb8f2d1 100644 --- a/kit/time/API/index.html +++ b/kit/time/API/index.html @@ -17,13 +17,13 @@ Maskito | Time + -

Time
KIT

tuiMode:
-
Name and descriptionType Value
[mode]
Time format mode
MaskitoTimeMode
'HH:MM'
[timeSegmentMaxValues]
Max value for every time segment
MaskitoTimeSegments<number>
{hours: 23, minutes: 59, seconds: 59, milliseconds: 999}
- +

Time
KIT

tuiMode:
-
Name and descriptionType Value
[mode]
Time format mode
MaskitoTimeMode
'HH:MM'
[timeSegmentMaxValues]
Max value for every time segment
MaskitoTimeSegments<number>
{hours: 23, minutes: 59, seconds: 59, milliseconds: 999}
+ \ No newline at end of file diff --git a/kit/time/index.html b/kit/time/index.html index 49236b9de..889ac3d46 100644 --- a/kit/time/index.html +++ b/kit/time/index.html @@ -17,33 +17,63 @@ Maskito | Time + -

Time
KIT

Use maskitoTimeOptionsGenerator to create a mask for time input.

Mode

Use mode property to set time format.

Available options : HH:MM , HH:MM:SS or HH:MM:SS.MSS .

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-

12-hours format

Property timeSegmentMaxValues allows you to set max value for every time segment.

Time segments are units of the time which form time string. For example, HH:MM consists of two time segments: hours and minutes.

    
-    
-
    
-    
-
    
-    
-
    
-    
-
    
-    
-
- +

Time
KIT

Use maskitoTimeOptionsGenerator to create a mask for time input.

Mode

Use mode property to set time format.

Available options : HH:MM , HH:MM:SS or HH:MM:SS.MSS .

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+

12-hours format

Property timeSegmentMaxValues allows you to set max value for every time segment.

Time segments are units of the time which form time string. For example, HH:MM consists of two time segments: hours and minutes.

    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
    
+    
+ + +
+
+ \ No newline at end of file diff --git a/main-es2015.2cf0799a52b64f599d0b.js b/main-es2015.2cf0799a52b64f599d0b.js new file mode 100644 index 000000000..8ec58c03e --- /dev/null +++ b/main-es2015.2cf0799a52b64f599d0b.js @@ -0,0 +1 @@ +var zw=Object.defineProperty,$w=Object.defineProperties,Gw=Object.getOwnPropertyDescriptors,jy=Object.getOwnPropertySymbols,Ww=Object.prototype.hasOwnProperty,Yw=Object.prototype.propertyIsEnumerable,zy=(t,e,n)=>e in t?zw(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ig=(t,e)=>{for(var n in e||(e={}))Ww.call(e,n)&&zy(t,n,e[n]);if(jy)for(var n of jy(e))Yw.call(e,n)&&zy(t,n,e[n]);return t},$y=(t,e)=>$w(t,Gw(e));(self.webpackChunkmaskito=self.webpackChunkmaskito||[]).push([[179,6429],{56083:function(t,e,n){"use strict";n.d(e,{l3:function(){return o},_j:function(){return i},LC:function(){return r},ZN:function(){return g},jt:function(){return a},pV:function(){return h},IO:function(){return d},vP:function(){return l},EY:function(){return p},oB:function(){return c},eR:function(){return u},X$:function(){return s},ZE:function(){return m},k1:function(){return v}});class i{}class r{}const o="*";function s(t,e){return{type:7,name:t,definitions:e,options:{}}}function a(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function u(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function h(t=null){return{type:9,options:t}}function d(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function p(t,e){return{type:12,timings:t,animation:e}}function f(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class m{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,i=0;const r=this.players.length;0==r?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==r&&this._onFinish()}),t.onDestroy(()=>{++n==r&&this._onDestroy()}),t.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const v="!"},79221:function(t,e,n){"use strict";n.d(e,{Vi:function(){return M},Th:function(){return ne},NH:function(){return Ct},uL:function(){return _e},nV:function(){return O},DT:function(){return be},Ar:function(){return xt},QN:function(){return we}});var i=n(56083),r=n(74788);function o(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new i.ZN;case 1:return t[0];default:return new i.ZE(t)}}function l(t,e,n,r,o={},s={}){const a=[],l=[];let c=-1,u=null;if(r.forEach(t=>{const n=t.offset,r=n==c,h=r&&u||{};Object.keys(t).forEach(n=>{let r=n,l=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),l){case i.k1:l=o[n];break;case i.l3:l=s[n];break;default:l=e.normalizeStyleValue(n,r,l,a)}h[r]=l}),r||l.push(h),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function c(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&u(n,"start",t)));break;case"done":t.onDone(()=>i(n&&u(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&u(n,"destroy",t)))}}function u(t,e,n){const i=n.totalTime,r=h(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function h(t,e,n,i,r="",o=0,s){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,g=(t,e)=>!1,m=(t,e,n)=>[];const v=s();(v||"undefined"!=typeof Element)&&(f=o()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),g=(()=>{if(v||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):g}})(),m=(t,e,n)=>{let i=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let O=(()=>{class t{validateStyleProperty(t){return b(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,o,s=[],a){return new i.ZN(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{}return t.NOOP=new O,t})();const S="ng-enter",P="ng-leave",E="ng-trigger",T=".ng-trigger",A="ng-animating",I=".ng-animating";function D(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:N(parseFloat(e[1]),e[2])}function N(t,e){return"s"===e?1e3*t:t}function L(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,r=0,o="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=N(parseFloat(n[1]),n[2]);const s=n[3];null!=s&&(r=N(parseFloat(s),n[4]));const a=n[5];a&&(o=a)}else i=t;if(!n){let n=!1,o=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),r<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(o,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:r,easing:o}}(t,e,n)}function z(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function F(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else z(t,n);return n}function R(t,e,n){return n?e+":"+n+";":""}function j(t){let e="";for(let n=0;n{const r=G(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[r]),t.style[r]=e[i]}),s()&&j(t))}function V(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=G(e);t.style[n]=""}),s()&&j(t))}function $(t){return Array.isArray(t)?1==t.length?t[0]:(0,i.vP)(t):t}const Z=new RegExp("{{\\s*(.+?)\\s*}}","g");function q(t){let e=[];if("string"==typeof t){let n;for(;n=Z.exec(t);)e.push(n[1]);Z.lastIndex=0}return e}function Y(t,e,n){const i=t.toString(),r=i.replace(Z,(t,i)=>{let r=e[i];return e.hasOwnProperty(i)||(n.push(`Please provide a value for the animation param ${i}`),r=""),r.toString()});return r==i?t:r}function U(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const H=/-+([a-z0-9])/g;function G(t){return t.replace(H,(...t)=>t[1].toUpperCase())}function J(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function X(t,e){return 0===t||0===e}function Q(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let o=e[0],s=[];if(i.forEach(t=>{o.hasOwnProperty(t)||s.push(t),o[t]=n[t]}),s.length)for(var r=1;rfunction(t,e,n){if(":"==t[0]){const i=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const r=i[1],o=i[2],s=i[3];e.push(it(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&e.push(it(s,r))}(t,n,e)):n.push(t),n}const et=new Set(["true","1"]),nt=new Set(["false","0"]);function it(t,e){const n=et.has(t)||nt.has(t),i=et.has(e)||nt.has(e);return(r,o)=>{let s="*"==t||t==r,a="*"==e||e==o;return!s&&n&&"boolean"==typeof r&&(s=r?et.has(t):nt.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?et.has(e):nt.has(e)),s&&a}}const rt=new RegExp("s*:selfs*,?","g");function ot(t,e,n){return new st(t).build(e,n)}class st{constructor(t){this._driver=t}build(t,e){const n=new at(e);return this._resetContextStyleTimingState(n),W(this,$(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const r=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,r.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const r=this.visitTransition(t,e);n+=r.queryCount,i+=r.depCount,o.push(r)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:r,transitions:o,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const r=new Set,o=i||{};if(n.styles.forEach(t=>{if(lt(t)){const e=t;Object.keys(e).forEach(t=>{q(e[t]).forEach(t=>{o.hasOwnProperty(t)||r.add(t)})})}}),r.size){const n=U(r.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=W(this,$(t.animation),e);return{type:1,matchers:tt(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:ct(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>W(this,t,e)),options:ct(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const r=t.steps.map(t=>{e.currentTime=n;const r=W(this,t,e);return i=Math.max(i,e.currentTime),r});return e.currentTime=i,{type:3,steps:r,options:ct(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ut(L(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ut(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||L(i,e),ut(n.duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=n;let r,o=t.styles?t.styles:(0,i.oB)({});if(5==o.type)r=this.visitKeyframes(o,e);else{let o=t.styles,s=!1;if(!o){s=!0;const t={};n.easing&&(t.easing=n.easing),o=(0,i.oB)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(o,e);a.isEmptyStep=s,r=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==i.l3?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,o=null;return n.forEach(t=>{if(lt(t)){const e=t,n=e.easing;if(n&&(o=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,r=e.currentTime;n&&r>0&&(r-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const o=e.collectedStyles[e.currentQuerySelector],s=o[n];let a=!0;s&&(r!=i&&r>=s.startTime&&i<=s.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${s.startTime}ms" and "${s.endTime}ms" is also being animated in a parallel animation between the times of "${r}ms" and "${i}ms"`),a=!1),r=s.startTime),a&&(o[n]={startTime:r,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},r=q(t);r.length&&r.forEach(t=>{i.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let i=0;const r=[];let o=!1,s=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(lt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(i++,c=n.offset=l),s=s||c<0||c>1,o=o||c0&&i{const o=u>0?i==h?1:u*i:r[i],s=o*f;e.currentTime=d+p.delay+s,p.duration=s,this._validateStyleAst(t,e),t.offset=o,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:W(this,$(t.animation),e),options:ct(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ct(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ct(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;const[r,o]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(rt,"")),t=t.replace(/@\*/g,T).replace(/@\w+/g,t=>T+"-"+t.substr(1)).replace(/:animating/g,I),[t,e]}(t.selector);e.currentQuerySelector=n.length?n+" "+r:r,d(e.collectedStyles,e.currentQuerySelector,{});const s=W(this,$(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:ct(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:L(t.timings,e.errors,!0);return{type:12,animation:W(this,$(t.animation),e),timings:n,options:null}}}class at{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function lt(t){return!Array.isArray(t)&&"object"==typeof t}function ct(t){return t?(t=z(t)).params&&(t.params=function(t){return t?z(t):null}(t.params)):t={},t}function ut(t,e,n){return{duration:t,delay:e,easing:n}}function ht(t,e,n,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class dt{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const pt=new RegExp(":enter","g"),ft=new RegExp(":leave","g");function gt(t,e,n,i,r,o={},s={},a,l,c=[]){return(new mt).buildKeyframes(t,e,n,i,r,o,s,a,l,c)}class mt{buildKeyframes(t,e,n,i,r,o,s,a,l,c=[]){l=l||new dt;const u=new _t(t,e,l,i,r,c,[]);u.options=a,u.currentTimeline.setStyles([o],null,u.errors,a),W(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(s).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([s],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[ht(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let i=e.currentTimeline.currentTime;const r=null!=n.duration?D(n.duration):null,o=null!=n.delay?D(n.delay):null;return 0!==r&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),W(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const r=t.options;if(r&&(r.params||r.delay)&&(i=e.createSubContext(r),i.transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=vt);const t=D(r.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>W(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const r=t.options&&t.options.delay?D(t.options.delay):0;t.steps.forEach(o=>{const s=e.createSubContext(t.options);r&&s.delayNextStep(r),W(this,o,s),i=Math.max(i,s.currentTimeline.currentTime),n.push(s.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return L(e.params?Y(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(t=>{o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},r=i.delay?D(i.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=vt);let o=n;const s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;let a=null;s.forEach((n,i)=>{e.currentQueryIndex=i;const s=e.createSubContext(t.options,n);r&&s.delayNextStep(r),n===e.element&&(a=s.currentTimeline),W(this,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),s=o*(e.currentQueryTotal-1);let a=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;W(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}const vt={};class _t{constructor(t,e,n,i,r,o,s,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new yt(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let i=this.options;null!=n.duration&&(i.duration=D(n.duration)),null!=n.delay&&(i.delay=D(n.delay));const r=n.params;if(r){let t=i.params;t||(t=this.options.params={}),Object.keys(r).forEach(n=>{(!e||!t.hasOwnProperty(n))&&(t[n]=Y(r[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const i=e||this.element,r=new _t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(t){return this.previousNode=vt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new bt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,r,o){let s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(pt,"."+this._enterClassName)).replace(ft,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),s.push(...e)}return!r&&0==s.length&&o.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),s}}class yt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new yt(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||i.l3,this._currentKeyframe[t]=i.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const o=r&&r.params||{},s=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=i.l3})):F(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(s).forEach(t=>{const e=Y(s[t],o,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:i.l3),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((o,s)=>{const a=F(o,!0);Object.keys(a).forEach(n=>{const r=a[n];r==i.k1?t.add(n):r==i.l3&&e.add(n)}),n||(a.offset=s/this.duration),r.push(a)});const o=t.size?U(t.values()):[],s=e.size?U(e.values()):[];if(n){const t=r[0],e=z(t);t.offset=0,e.offset=1,r=[t,e]}return ht(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class bt extends yt{constructor(t,e,n,i,r,o,s=!1){super(t,e,o.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=s,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const r=[],o=n+e,s=e/o,a=F(t[0],!1);a.offset=0,r.push(a);const l=F(t[0],!1);l.offset=wt(s),r.push(l);const c=t.length-1;for(let i=1;i<=c;i++){let s=F(t[i],!1);s.offset=wt((e+s.offset*n)/o),r.push(s)}n=o,e=0,i="",t=r}return ht(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function wt(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ct{}class xt extends Ct{normalizePropertyName(t,e){return G(t)}normalizeStyleValue(t,e,n,i){let r="";const o=n.toString().trim();if(kt[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return o+r}}const kt=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Ot(t,e,n,i,r,o,s,a,l,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const Mt={};class St{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,r){return t.some(t=>t(e,n,i,r))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o}build(t,e,n,i,r,o,s,a,l,c){const u=[],h=this.ast.options&&this.ast.options.params||Mt,p=this.buildStyles(n,s&&s.params||Mt,u),f=a&&a.params||Mt,g=this.buildStyles(i,f,u),m=new Set,v=new Map,_=new Map,y="void"===i,b={params:Object.assign(Object.assign({},h),f)},w=c?[]:gt(t,e,this.ast.animation,r,o,p,g,b,l,u);let C=0;if(w.forEach(t=>{C=Math.max(t.duration+t.delay,C)}),u.length)return Ot(e,this._triggerName,n,i,y,p,g,[],[],v,_,C,u);w.forEach(t=>{const n=t.element,i=d(v,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const r=d(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&m.add(n)});const x=U(m.values());return Ot(e,this._triggerName,n,i,y,p,g,w,x,v,_,C)}}class Pt{constructor(t,e,n){this.styles=t,this.defaultParams=e,this.normalizer=n}buildStyles(t,e){const n={},i=z(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const r=t;Object.keys(r).forEach(t=>{let o=r[t];o.length>1&&(o=Y(o,i,e));const s=this.normalizer.normalizePropertyName(t,e);o=this.normalizer.normalizeStyleValue(t,s,o,e),n[s]=o})}}),n}}class Et{constructor(t,e,n){this.name=t,this.ast=e,this._normalizer=n,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new Pt(t.style,t.options&&t.options.params||{},n)}),Tt(this.states,"true","1"),Tt(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new St(t,e,this.states))}),this.fallbackTransition=function(t,e,n){return new St(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},e)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,i){return this.transitionFactories.find(r=>r.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function Tt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const At=new dt;class It{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=ot(this._driver,e,n);if(n.length)throw new Error(`Unable to build the animation due to the following errors: ${n.join("\n")}`);this._animations[t]=i}_buildPlayer(t,e,n){const i=t.element,r=l(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],o=this._animations[t];let s;const l=new Map;if(o?(s=gt(this._driver,e,o,S,P,{},{},n,At,r),s.forEach(t=>{const e=d(l,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),s=[]),r.length)throw new Error(`Unable to create the animation due to the following errors: ${r.join("\n")}`);l.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,i.l3)})});const c=a(s.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error(`Unable to find the timeline player referenced by ${t}`);return e}listen(t,e,n,i){const r=h(e,"","","");return c(this._getPlayer(t),n,r,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Dt="ng-animate-queued",Nt="ng-animate-disabled",Lt=".ng-animate-disabled",zt=[],Ft={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Rt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},jt="__ng_removed";class Bt{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=z(t);delete e.value,this.options=e}else this.options={};var i;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const Vt="void",$t=new Bt(Vt);class Zt{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Qt(e,this._hostClassName)}listen(t,e,n,i){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(r=n)&&"done"!=r)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var r;const o=d(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};o.push(s);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Qt(t,E),Qt(t,E+"-"+e),a[e]=$t),()=>{this._engine.afterFlush(()=>{const t=o.indexOf(s);t>=0&&o.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,i=!0){const r=this._getTrigger(e),o=new Yt(this.id,e,t);let s=this._engine.statesByElement.get(t);s||(Qt(t,E),Qt(t,E+"-"+e),this._engine.statesByElement.set(t,s={}));let a=s[e];const l=new Bt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),s[e]=l,a||(a=$t),l.value!==Vt&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let r=0;r{V(t,n),B(t,i)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!i)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:o,isFallbackTransition:h}),h||(Qt(t,Dt),o.onStart(()=>{Wt(t,Dt)})),o.onDone(()=>{let e=this.players.indexOf(o);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(o);t>=0&&n.splice(t,1)}}),this.players.push(o),c.push(o),o}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,T,!0);n.forEach(t=>{if(t[jt])return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,i){const r=this._engine.statesByElement.get(t);if(r){const o=[];if(Object.keys(r).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,Vt,i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(o).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),n=this._engine.statesByElement.get(t);if(e&&n){const i=new Set;e.forEach(e=>{const r=e.name;if(i.has(r))return;i.add(r);const o=this._triggers[r].fallbackTransition,s=n[r]||$t,a=new Bt(Vt),l=new Yt(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:o,fromState:s,toState:a,player:l,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t[jt];(!i||i===Ft)&&(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Qt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const r=n.element,o=this._elementListeners.get(r);o&&o.forEach(e=>{if(e.name==n.triggerName){const i=h(r,n.triggerName,n.fromState.value,n.toState.value);i._data=t,c(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class qt{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new Zt(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let i=!1;for(let r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Qt(t,Nt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Wt(t,Nt))}removeNode(t,e,n,i){if(Ut(e)){const r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e[jt]={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,r){return Ut(e)?this._fetchNamespace(t).listen(e,n,i,r):()=>{}}_buildInstruction(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}destroyInnerAnimations(t){let e=this.driver.query(t,T,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,I,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return a(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[jt];if(e&&e.setForRemoval){if(t[jt]=Ft,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Lt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Lt,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?a(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${t.join("\n")}`)}_flushAnimations(t,e){const n=new dt,r=[],o=new Map,s=[],l=new Map,c=new Map,u=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=S+v++;m.set(e,n),t.forEach(t=>Qt(t,n))});const _=[],y=new Set,b=new Set;for(let i=0;iy.add(t)):b.add(t))}const w=new Map,C=Jt(f,Array.from(y));C.forEach((t,e)=>{const n=P+v++;w.set(e,n),t.forEach(t=>Qt(t,n))}),t.push(()=>{g.forEach((t,e)=>{const n=m.get(e);t.forEach(t=>Wt(t,n))}),C.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Wt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const x=[],k=[];for(let i=this._namespaceList.length-1;i>=0;i--)this._namespaceList[i].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(x.push(e),this.collectedEnterElements.length){const t=i[jt];if(t&&t.setForMove)return void e.destroy()}const o=!p||!this.driver.containsElement(p,i),a=w.get(i),h=m.get(i),f=this._buildInstruction(t,n,h,a,o);if(f.errors&&f.errors.length)k.push(f);else{if(o)return e.onStart(()=>V(i,f.fromStyles)),e.onDestroy(()=>B(i,f.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>V(i,f.fromStyles)),e.onDestroy(()=>B(i,f.toStyles)),void r.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),s.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>d(l,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=u.get(e);i||u.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(k.length){const t=[];k.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),x.forEach(t=>t.destroy()),this.reportError(t)}const O=new Map,M=new Map;s.forEach(t=>{const e=t.element;n.has(e)&&(M.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(O,e,[]).push(t),t.destroy()})});const E=_.filter(t=>ee(t,c,u)),T=new Map;Gt(T,this.driver,b,u,i.l3).forEach(t=>{ee(t,c,u)&&E.push(t)});const A=new Map;g.forEach((t,e)=>{Gt(A,this.driver,new Set(t),c,i.k1)}),E.forEach(t=>{const e=T.get(t),n=A.get(t);T.set(t,Object.assign(Object.assign({},e),n))});const D=[],N=[],L={};s.forEach(t=>{const{element:e,player:i,instruction:s}=t;if(n.has(e)){if(h.has(e))return i.onDestroy(()=>B(e,s.toStyles)),i.disabled=!0,i.overrideTotalTime(s.totalTime),void r.push(i);let t=L;if(M.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=M.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>M.set(e,t))}const n=this._buildAnimation(i.namespaceId,s,O,o,A,T);if(i.setRealPlayer(n),t===L)D.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=a(e)),r.push(i)}}else V(e,s.fromStyles),i.onDestroy(()=>B(e,s.toStyles)),N.push(i),h.has(e)&&r.push(i)}),N.forEach(t=>{const e=o.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let i=0;i<_.length;i++){const t=_[i],e=t[jt];if(Wt(t,P),e&&e.hasAnimation)continue;let n=[];if(l.size){let e=l.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,I,!0);for(let t=0;t!t.destroyed);r.length?Kt(this,t,r):this.processLeaveNode(t)}return _.length=0,D.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),D}elementContainsData(t,e){let n=!1;const i=e[jt];return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,i,r){let o=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(o=e)}else{const e=this.playersByElement.get(t);if(e){const t=!r||r==Vt;e.forEach(e=>{e.queued||!t&&e.triggerName!=i||o.push(e)})}}return(n||i)&&(o=o.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),o}_beforeAnimationBuild(t,e,n){const i=e.element,r=e.isRemovalTransition?void 0:t,o=e.isRemovalTransition?void 0:e.triggerName;for(const s of e.timelines){const t=s.element,a=t!==i,l=d(n,t,[]);this._getPreviousPlayers(t,a,r,o,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}V(i,e.fromStyles)}_buildAnimation(t,e,n,r,o,s){const c=e.triggerName,u=e.element,h=[],p=new Set,f=new Set,g=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a[jt];if(d&&d.removedBeforeQueried)return new i.ZN(e.duration,e.delay);const g=a!==u,m=function(t){const e=[];return te(t,e),e}((n.get(a)||zt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),v=o.get(a),_=s.get(a),y=l(0,this._normalizer,0,e.keyframes,v,_),b=this._buildPlayer(e,y,m);if(e.subTimeline&&r&&f.add(a),g){const e=new Yt(t,c,a);e.setRealPlayer(b),h.push(e)}return b});h.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Qt(t,A));const m=a(g);return m.onDestroy(()=>{p.forEach(t=>Wt(t,A)),B(u,e.toStyles)}),f.forEach(t=>{d(r,t,[]).push(m)}),m}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new i.ZN(t.duration,t.delay)}}class Yt{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new i.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>c(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){d(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Ut(t){return t&&1===t.nodeType}function Ht(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gt(t,e,n,i,r){const o=[];n.forEach(t=>o.push(Ht(t)));const s=[];i.forEach((n,i)=>{const o={};n.forEach(t=>{const n=o[t]=e.computeStyle(i,t,r);(!n||0==n.length)&&(i[jt]=Rt,s.push(i))}),t.set(i,o)});let a=0;return n.forEach(t=>Ht(t,o[a++])),s}function Jt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),r=new Map;function o(t){if(!t)return 1;let e=r.get(t);if(e)return e;const s=t.parentNode;return e=n.has(s)?s:i.has(s)?1:o(s),r.set(t,e),e}return e.forEach(t=>{const e=o(t);1!==e&&n.get(e).push(t)}),n}const Xt="$$classes";function Qt(t,e){if(t.classList)t.classList.add(e);else{let n=t[Xt];n||(n=t[Xt]={}),n[e]=!0}}function Wt(t,e){if(t.classList)t.classList.remove(e);else{let n=t[Xt];n&&delete n[e]}}function Kt(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function te(t,e){for(let n=0;nr.add(t)):e.set(t,i),n.delete(t),!0}class ne{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new qt(t,e,n),this._timelineEngine=new It(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,r){const o=t+"-"+i;let s=this._triggerCache[o];if(!s){const t=[],e=ot(this._driver,r,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);s=function(t,e,n){return new Et(t,e,n)}(i,e,this._normalizer),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,i,s)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,r]=p(n);this._timelineEngine.command(t,e,r,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,r){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,r)}return this._transitionEngine.listen(t,e,n,i,r)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ie(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=oe(e[0]),e.length>1&&(i=oe(e[e.length-1]))):e&&(n=oe(e)),n||i?new re(t,n,i):null}let re=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(V(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function oe(t){let e=null;const n=Object.keys(t);for(let i=0;ithis._handleCallback(t)}apply(){(function(t,e){const n=ge(t,"").trim();let i=0;n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),pe(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=ge(t,"").split(","),i=de(n,e);i>=0&&(n.splice(i,1),fe(t,"",n.join(",")))}(this._element,this._name))}}function ue(t,e,n){fe(t,"PlayState",n,he(t,e))}function he(t,e){const n=ge(t,"");return n.indexOf(",")>0?de(n.split(","),e):de([n],e)}function de(t,e){for(let n=0;n=0)return n;return-1}function pe(t,e,n){n?t.removeEventListener(le,e):t.addEventListener(le,e)}function fe(t,e,n,i){const r=ae+e;if(null!=i){const e=t.style[r];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[r]=n}function ge(t,e){return t.style[ae+e]||""}class me{constructor(t,e,n,i,r,o,s,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=s,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ce(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:K(this.element,n))})}this.currentSnapshot=t}}class ve extends i.ZN{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=k(e)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class _e{constructor(){this._count=0}validateStyleProperty(t){return b(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>k(t));let i=`@keyframes ${e} {\n`,r="";n.forEach(t=>{r=" ";const e=parseFloat(t.offset);i+=`${r}${100*e}% {\n`,r+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${r}animation-timing-function: ${n};\n`));default:return void(i+=`${r}${e}: ${n};\n`)}}),i+=`${r}}\n`}),i+="}\n";const o=document.createElement("style");return o.textContent=i,o}animate(t,e,n,i,r,o=[],s){const a=o.filter(t=>t instanceof me),l={};X(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"==n||"easing"==n||(e[n]=t[n])})}),e}(e=Q(t,e,l));if(0==n)return new ve(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);(function(t){var e;const n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head})(t).appendChild(h);const d=ie(t,e),p=new me(t,e,u,n,i,r,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}class ye{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:K(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class be{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ce().toString()),this._cssKeyframesDriver=new _e}validateStyleProperty(t){return b(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return C(t,e)}query(t,e,n){return x(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,r,o=[],s){if(!s&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(a.easing=r);const l={},c=o.filter(t=>t instanceof ye);X(n,i)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=ie(t,e=Q(t,e=e.map(t=>F(t,!1)),l));return new ye(t,e,a,u)}}function we(){return"function"==typeof Ce()}function Ce(){return o()&&Element.prototype.animate||{}}},12057:function(t,e,n){"use strict";n.d(e,{mr:function(){return b},Ov:function(){return H},ez:function(){return Q},K0:function(){return l},Do:function(){return C},Gx:function(){return J},Ts:function(){return X},V_:function(){return h},Ye:function(){return x},S$:function(){return _},$G:function(){return A},sg:function(){return D},O5:function(){return L},RF:function(){return j},n9:function(){return B},tP:function(){return V},b0:function(){return w},lw:function(){return c},EM:function(){return et},JF:function(){return rt},NF:function(){return K},PM:function(){return tt},w_:function(){return a},bD:function(){return W},q:function(){return o},Mx:function(){return T},HT:function(){return s}});var i=n(74788);let r=null;function o(){return r}function s(t){r||(r=t)}class a{}const l=new i.OlP("DocumentToken");let c=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return(0,i.LFG)(d)}const h=new i.OlP("Location Initialized");let d=(()=>{class t extends c{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return o().getBaseHref(this._doc)}onPopState(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),()=>e.removeEventListener("popstate",t)}onHashChange(t){const e=o().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),()=>e.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,e,n){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l))},t.\u0275prov=(0,i.Yz7)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d((0,i.LFG)(l))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function v(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{historyGo(t){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,i.Yz7)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=(0,i.LFG)(l).location;return new w((0,i.LFG)(c),e&&e.origin||"")}const b=new i.OlP("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+v(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const r=this.prepareExternalUrl(n+v(i));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){const r=this.prepareExternalUrl(n+v(i));this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(b,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=e&&(this._baseHref=e)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,i){let r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformLocation).historyGo)||void 0===n||n.call(e,t)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(c),i.LFG(b,8))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),x=(()=>{class t{constructor(t,e){this._subject=new i.vpe,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(O(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+v(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+v(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var e,n;null===(n=(e=this._platformStrategy).historyGo)||void 0===n||n.call(e,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(_),i.LFG(c))},t.normalizeQueryParams=v,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=(0,i.Yz7)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new x((0,i.LFG)(_),(0,i.LFG)(c))}function O(t){return t.replace(/\/index.html$/,"")}var M=(()=>((M=M||{})[M.Zero=0]="Zero",M[M.One=1]="One",M[M.Two=2]="Two",M[M.Few=3]="Few",M[M.Many=4]="Many",M[M.Other=5]="Other",M))();const S=i.kL8;class P{}let E=(()=>{class t extends P{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(S(e||this.locale)(t)){case M.Zero:return"zero";case M.One:return"one";case M.Two:return"two";case M.Few:return"few";case M.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.soG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();function T(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,r]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(r)}return null}let A=(()=>{class t{constructor(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}ngOnChanges(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const t=e.get(i.h0i);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(t.injector)}else this._moduleRef=null;const n=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(i._Vd)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(n,this._viewContainerRef.length,e,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.TTD]}),t})();class I{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 D=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error(`Cannot find a differ supporting object '${e}' of type '${function(t){return t.name||typeof t}(e)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new I(null,this._ngForOf,-1,-1),null===i?void 0:i),r=new N(t,n);e.push(r)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const r=this._viewContainer.get(n);this._viewContainer.move(r,i);const o=new N(t,r);e.push(o)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(i.ZZ4))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class N{constructor(t,e){this.record=t,this.view=e}}let L=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new z,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){F("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){F("ngIfElse",t),this._elseTemplateRef=t,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(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class z{constructor(){this.$implicit=null,this.ngIf=null}}function F(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${(0,i.AaK)(e)}'.`)}class R{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let j=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new R(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc),i.Y36(j,9))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),V=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(t.ngTemplateOutlet){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.TTD]}),t})();function $(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${(0,i.AaK)(t)}'`)}class Z{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class q{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Y=new q,U=new Z;let H=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if((0,i.QGY)(e))return Y;if((0,i.F4k)(e))return U;throw $(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO,16))},t.\u0275pipe=i.Yjl({name:"async",type:t,pure:!1}),t})();const G=/#/g;let J=(()=>{class t{constructor(t){this._localization=t}transform(e,n,i){if(null==e)return"";if("object"!=typeof n||null===n)throw $(t,n);return n[function(t,e,n,i){let r=`=${t}`;if(e.indexOf(r)>-1||(r=n.getPluralCategory(t,i),e.indexOf(r)>-1))return r;if(e.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${t}"`)}(e,Object.keys(n),this._localization,i)].replace(G,e.toString())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(P,16))},t.\u0275pipe=i.Yjl({name:"i18nPlural",type:t,pure:!0}),t})(),X=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"json",type:t,pure:!1}),t})(),Q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[{provide:P,useClass:E}]}),t})();const W="browser";function K(t){return t===W}function tt(t){return"server"===t}let et=(()=>{class t{}return t.\u0275prov=(0,i.Yz7)({token:t,providedIn:"root",factory:()=>new nt((0,i.LFG)(l),window)}),t})();class nt{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=n.currentNode;for(;i;){const t=i.shadowRoot;if(t){const n=t.getElementById(e)||t.querySelector(`[name="${e}"]`);if(n)return n}i=n.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),this.attemptFocus(e))}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}attemptFocus(t){return t.focus(),this.document.activeElement===t}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=it(this.window.history)||it(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function it(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class rt{}},58497:function(t,e,n){"use strict";n.d(e,{eN:function(){return T},JF:function(){return Z}});var i=n(12057),r=n(74788),o=n(25917),s=n(29856),a=n(94612),l=n(45435),c=n(88002);class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),i=n.toLowerCase(),r=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(r):this.headers.set(i,[r])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const r=t.value;if(r){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===r.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class p{encodeKey(t){return m(t)}encodeValue(t){return m(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const f=/%(\d[a-f0-9])/gi,g={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function m(t){return encodeURIComponent(t).replace(f,(t,e)=>{var n;return null!==(n=g[e])&&void 0!==n?n:t})}function v(t){return`${t}`}class _{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(t=>{const i=t.indexOf("="),[r,o]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],s=n.get(r)||[];s.push(o),n.set(r,s)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(n=>{const i=t[n];Array.isArray(i)?i.forEach(t=>{e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new _({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(v(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(v(t.value));-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class y{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}keys(){return this.map.keys()}}function b(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function w(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C(t){return"undefined"!=typeof FormData&&t instanceof FormData}class x{constructor(t,e,n,i){let r;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params)),this.headers||(this.headers=new d),this.context||(this.context=new y),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new x(n,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var k=(()=>((k=k||{})[k.Sent=0]="Sent",k[k.UploadProgress=1]="UploadProgress",k[k.ResponseHeader=2]="ResponseHeader",k[k.DownloadProgress=3]="DownloadProgress",k[k.Response=4]="Response",k[k.User=5]="User",k))();class O{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class M extends O{constructor(t={}){super(t),this.type=k.ResponseHeader}clone(t={}){return new M({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class S extends O{constructor(t={}){super(t),this.type=k.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new S({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class P extends O{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function E(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let T=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let i;if(t instanceof x)i=t;else{let r,o;r=n.headers instanceof d?n.headers:new d(n.headers),n.params&&(o=n.params instanceof _?n.params:new _({fromObject:n.params})),i=new x(t,e,void 0!==n.body?n.body:null,{headers:r,context:n.context,params:o,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=(0,o.of)(i).pipe((0,a.b)(t=>this.handler.handle(t)));if(t instanceof x||"events"===n.observe)return r;const s=r.pipe((0,l.h)(t=>t instanceof S));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe((0,c.U)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe((0,c.U)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));default:return s.pipe((0,c.U)(t=>t.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new _).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,E(n,e))}post(t,e,n={}){return this.request("POST",t,E(n,e))}put(t,e,n={}){return this.request("PUT",t,E(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(u))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class A{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const I=new r.OlP("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const N=/^\)\]\}',?\n/;let L=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.y(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const i=t.serializeBody();let r=null;const o=()=>{if(null!==r)return r;const e=1223===n.status?204:n.status,i=n.statusText||"OK",o=new d(n.getAllResponseHeaders()),s=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return r=new M({headers:o,status:e,statusText:i,url:s}),r},s=()=>{let{headers:i,status:r,statusText:s,url:a}=o(),l=null;204!==r&&(l=void 0===n.response?n.responseText:n.response),0===r&&(r=l?200:0);let c=r>=200&&r<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(N,"");try{l=""!==l?JSON.parse(l):null}catch(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new S({body:l,headers:i,status:r,statusText:s,url:a||void 0})),e.complete()):e.error(new P({error:l,headers:i,status:r,statusText:s,url:a||void 0}))},a=t=>{const{url:i}=o(),r=new P({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(r)};let l=!1;const c=i=>{l||(e.next(o()),l=!0);let r={type:k.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(r.total=i.total),"text"===t.responseType&&!!n.responseText&&(r.partialText=n.responseText),e.next(r)},u=t=>{let n={type:k.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",s),n.addEventListener("error",a),n.addEventListener("timeout",a),n.addEventListener("abort",a),t.reportProgress&&(n.addEventListener("progress",c),null!==i&&n.upload&&n.upload.addEventListener("progress",u)),n.send(i),e.next({type:k.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("abort",a),n.removeEventListener("load",s),n.removeEventListener("timeout",a),t.reportProgress&&(n.removeEventListener("progress",c),null!==i&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.JF))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const z=new r.OlP("XSRF_COOKIE_NAME"),F=new r.OlP("XSRF_HEADER_NAME");class R{}let j=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.Mx)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0),r.LFG(r.Lbi),r.LFG(z))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const i=this.tokenService.getToken();return null!==i&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(R),r.LFG(F))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(I,[]);this.chain=t.reduceRight((t,e)=>new A(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(h),r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),$=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:B,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:z,useValue:e.cookieName}:[],e.headerName?{provide:F,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[B,{provide:I,useExisting:B,multi:!0},{provide:R,useClass:j},{provide:z,useValue:"XSRF-TOKEN"},{provide:F,useValue:"X-XSRF-TOKEN"}]}),t})(),Z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:[T,{provide:u,useClass:V},L,{provide:h,useExisting:L}],imports:[[$.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},74788:function(t,e,n){"use strict";n.d(e,{deG:function(){return ln},tb:function(){return rc},AFp:function(){return Kl},ip1:function(){return Ql},CZH:function(){return Wl},hGG:function(){return Jc},z2F:function(){return jc},sBO:function(){return qa},Sil:function(){return gc},_Vd:function(){return fa},EJc:function(){return ac},SBq:function(){return _a},qLn:function(){return sr},vpe:function(){return Al},gxx:function(){return Co},tBr:function(){return Dn},XFs:function(){return A},OlP:function(){return an},zs3:function(){return Fo},ZZ4:function(){return Fa},aQg:function(){return ja},soG:function(){return sc},YKP:function(){return tl},v3s:function(){return Vc},h0i:function(){return Ka},PXZ:function(){return Nc},R0b:function(){return _c},FiY:function(){return Nn},Lbi:function(){return ic},g9A:function(){return nc},n_E:function(){return Dl},Qsj:function(){return wa},FYo:function(){return ba},JOm:function(){return Fn},Tiy:function(){return xa},q3G:function(){return tr},PiD:function(){return Ln},tp0:function(){return zn},EAV:function(){return qc},Rgc:function(){return Ja},dDg:function(){return Oc},DyG:function(){return cn},GfV:function(){return ka},s_b:function(){return nl},ifc:function(){return F},eFA:function(){return Lc},Ez6:function(){return C},Gpc:function(){return p},f3M:function(){return Pn},X6Q:function(){return Ac},_c5:function(){return Hc},VLi:function(){return Pc},c2e:function(){return oc},zSh:function(){return ko},wAp:function(){return Ks},vHH:function(){return m},EiD:function(){return Wi},mCW:function(){return zi},qzn:function(){return Oi},JVY:function(){return Si},pB0:function(){return Ai},eBb:function(){return Ei},L6k:function(){return Pi},LAX:function(){return Ti},cg1:function(){return Xs},Tjo:function(){return Uc},kL8:function(){return Qs},yhl:function(){return Mi},dqk:function(){return V},sIi:function(){return Ho},CqO:function(){return fs},QGY:function(){return ds},F4k:function(){return ps},RDi:function(){return Mt},AaK:function(){return u},z3N:function(){return ki},qOj:function(){return jo},TTD:function(){return _t},_Bn:function(){return ua},xp6:function(){return kr},uIk:function(){return Wo},Tol:function(){return Ts},ekj:function(){return Es},Suo:function(){return Yl},Xpm:function(){return W},lG2:function(){return ot},Yz7:function(){return w},cJS:function(){return x},oAB:function(){return nt},Yjl:function(){return st},Y36:function(){return es},_UZ:function(){return as},GkF:function(){return us},BQk:function(){return cs},ynx:function(){return ls},qZA:function(){return ss},TgZ:function(){return os},EpF:function(){return hs},n5z:function(){return en},Ikx:function(){return Ys},LFG:function(){return Sn},$8M:function(){return rn},$Z:function(){return ns},NdJ:function(){return gs},CRH:function(){return Ul},kcU:function(){return be},O4$:function(){return ye},oxw:function(){return _s},ALo:function(){return kl},lcZ:function(){return Ol},xi3:function(){return Ml},Dn7:function(){return Sl},Hsn:function(){return ws},F$t:function(){return bs},Q6J:function(){return is},DdM:function(){return vl},VKq:function(){return _l},WLB:function(){return yl},iGM:function(){return Zl},MAs:function(){return ts},evT:function(){return cr},Jf7:function(){return lr},CHM:function(){return Yt},oJD:function(){return er},LSH:function(){return nr},kYT:function(){return it},Udp:function(){return Ps},d8E:function(){return Us},YNc:function(){return Ko},W1O:function(){return Xl},_uU:function(){return Vs},Oqu:function(){return $s},hij:function(){return Zs},AsE:function(){return qs},Gf:function(){return ql}});var i=n(79765),r=n(59178),o=n(29856),s=n(66682),a=n(9945);function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function u(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(u).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function h(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return u(this())},t}function f(t){return g(t)?t():t}function g(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}class m extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function v(t){return"string"==typeof t?t:null==t?"":String(t)}function _(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():v(t)}function y(t,e){const n=e?` in ${e}`:"";throw new m("201",`No provider for ${_(t)} found${n}`)}function b(t,e){null==t&&function(t,e,n,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${n} ${i} ${e} <=Actual]`))}(e,t,null,"!=")}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const C=w;function x(t){return{providers:t.providers||[],imports:t.imports||[]}}function k(t){return O(t,S)||O(t,E)}function O(t,e){return t.hasOwnProperty(e)?t[e]:null}function M(t){return t&&(t.hasOwnProperty(P)||t.hasOwnProperty(T))?t[P]:null}const S=l({"\u0275prov":l}),P=l({"\u0275inj":l}),E=l({ngInjectableDef:l}),T=l({ngInjectorDef:l});var A=(()=>((A=A||{})[A.Default=0]="Default",A[A.Host=1]="Host",A[A.Self=2]="Self",A[A.SkipSelf=4]="SkipSelf",A[A.Optional=8]="Optional",A))();let I;function D(t){const e=I;return I=t,e}function N(t,e,n){const i=k(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&A.Optional?null:void 0!==e?e:void y(u(t),"Injector")}function L(t){return{toString:t}.toString()}var z=(()=>((z=z||{})[z.OnPush=0]="OnPush",z[z.Default=1]="Default",z))(),F=(()=>((F=F||{})[F.Emulated=0]="Emulated",F[F.None=2]="None",F[F.ShadowDom=3]="ShadowDom",F))();const R="undefined"!=typeof globalThis&&globalThis,j="undefined"!=typeof window&&window,B="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,V=R||"undefined"!=typeof global&&global||j||B,$={},Z=[],q=l({"\u0275cmp":l}),Y=l({"\u0275dir":l}),U=l({"\u0275pipe":l}),H=l({"\u0275mod":l}),G=l({"\u0275loc":l}),J=l({"\u0275fac":l}),X=l({__NG_ELEMENT_ID__:l});let Q=0;function W(t){return L(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===z.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Z,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||F.Emulated,id:"c",styles:t.styles||Z,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,o=t.pipes;return n.id+=Q++,n.inputs=rt(t.inputs,e),n.outputs=rt(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(K):null,n.pipeDefs=o?()=>("function"==typeof o?o():o).map(tt):null,n})}function K(t){return at(t)||function(t){return t[Y]||null}(t)}function tt(t){return function(t){return t[U]||null}(t)}const et={};function nt(t){return L(()=>{const e={type:t.type,bootstrap:t.bootstrap||Z,declarations:t.declarations||Z,imports:t.imports||Z,exports:t.exports||Z,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(et[t.id]=t.type),e})}function it(t,e){return L(()=>{const n=lt(t,!0);n.declarations=e.declarations||Z,n.imports=e.imports||Z,n.exports=e.exports||Z})}function rt(t,e){if(null==t)return $;const n={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}const ot=W;function st(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function at(t){return t[q]||null}function lt(t,e){const n=t[H]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return n}function ct(t){return Array.isArray(t)&&"object"==typeof t[1]}function ut(t){return Array.isArray(t)&&!0===t[1]}function ht(t){return 0!=(8&t.flags)}function dt(t){return 2==(2&t.flags)}function pt(t){return 1==(1&t.flags)}function ft(t){return null!==t.template}function gt(t){return 0!=(512&t[2])}function mt(t,e){return t.hasOwnProperty(J)?t[J]:null}class vt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function _t(){return yt}function yt(t){return t.type.prototype.ngOnChanges&&(t.setInput=wt),bt}function bt(){const t=xt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===$)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function wt(t,e,n,i){const r=xt(t)||function(t,e){return t[Ct]=e}(t,{previous:$,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[n],l=s[a];o[a]=new vt(l&&l.currentValue,e,s===$),t[i]=e}_t.ngInherit=!0;const Ct="__ngSimpleChanges__";function xt(t){return t[Ct]||null}const kt="http://www.w3.org/2000/svg";let Ot;function Mt(t){Ot=t}function St(){return void 0!==Ot?Ot:"undefined"!=typeof document?document:void 0}function Pt(t){return!!t.listen}const Et={createRenderer:(t,e)=>St()};function Tt(t){for(;Array.isArray(t);)t=t[0];return t}function At(t,e){return Tt(e[t])}function It(t,e){return Tt(e[t.index])}function Dt(t,e){return t.data[e]}function Nt(t,e){return t[e]}function Lt(t,e){const n=e[t];return ct(n)?n:n[0]}function zt(t){return 4==(4&t[2])}function Ft(t){return 128==(128&t[2])}function Rt(t,e){return null==e?null:t[e]}function jt(t){t[18]=0}function Bt(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const Vt={lFrame:de(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function $t(){return Vt.bindingsEnabled}function Zt(){return Vt.lFrame.lView}function qt(){return Vt.lFrame.tView}function Yt(t){return Vt.lFrame.contextLView=t,t[8]}function Ut(){let t=Ht();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ht(){return Vt.lFrame.currentTNode}function Gt(t,e){const n=Vt.lFrame;n.currentTNode=t,n.isParent=e}function Jt(){return Vt.lFrame.isParent}function Xt(){Vt.lFrame.isParent=!1}function Qt(){return Vt.isInCheckNoChangesMode}function Wt(t){Vt.isInCheckNoChangesMode=t}function Kt(){const t=Vt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function te(){return Vt.lFrame.bindingIndex}function ee(){return Vt.lFrame.bindingIndex++}function ne(t){const e=Vt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function ie(t,e){const n=Vt.lFrame;n.bindingIndex=n.bindingRootIndex=t,re(e)}function re(t){Vt.lFrame.currentDirectiveIndex=t}function oe(t){const e=Vt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function se(){return Vt.lFrame.currentQueryIndex}function ae(t){Vt.lFrame.currentQueryIndex=t}function le(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function ce(t,e,n){if(n&A.SkipSelf){let i=e,r=t;for(;!(i=i.parent,null!==i||n&A.Host||(i=le(r),null===i||(r=r[15],10&i.type))););if(null===i)return!1;e=i,t=r}const i=Vt.lFrame=he();return i.currentTNode=e,i.lView=t,!0}function ue(t){const e=he(),n=t[1];Vt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function he(){const t=Vt.lFrame,e=null===t?null:t.child;return null===e?de(t):e}function de(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function pe(){const t=Vt.lFrame;return Vt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fe=pe;function ge(){const t=pe();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function me(){return Vt.lFrame.selectedIndex}function ve(t){Vt.lFrame.selectedIndex=t}function _e(){const t=Vt.lFrame;return Dt(t.tView,t.selectedIndex)}function ye(){Vt.lFrame.currentNamespace=kt}function be(){Vt.lFrame.currentNamespace=null}function we(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(s>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(s)}finally{}}}else try{o.call(s)}finally{}}class Se{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Pe(t,e,n){const i=Pt(t);let r=0;for(;re){s=o-1;break}}}for(;o>16}(t),i=e;for(;n>0;)i=i[15],n--;return i}let ze=!0;function Fe(t){const e=ze;return ze=t,e}let Re=0;function je(t,e){const n=Ve(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Be(i.data,t),Be(e,null),Be(i.blueprint,null));const r=$e(t,e),o=t.injectorIndex;if(De(r)){const t=Ne(r),n=Le(r,e),i=n[1].data;for(let r=0;r<8;r++)e[o+r]=n[t+r]|i[t+r]}return e[o+8]=r,o}function Be(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ve(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function $e(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,i=null,r=e;for(;null!==r;){const t=r[1],e=t.type;if(i=2===e?t.declTNode:1===e?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Ze(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(X)&&(i=n[X]),null==i&&(i=n[X]=Re++);const r=255&i;e.data[t+(r>>5)]|=1<=0?255&e:Ge:e}(n);if("function"==typeof o){if(!ce(e,t,i))return i&A.Host?qe(r,n,i):Ye(e,n,i,r);try{const t=o(i);if(null!=t||i&A.Optional)return t;y(n)}finally{fe()}}else if("number"==typeof o){let r=null,s=Ve(t,e),a=-1,l=i&A.Host?e[16][6]:null;for((-1===s||i&A.SkipSelf)&&(a=-1===s?$e(t,e):e[s+8],-1!==a&&Ke(i,!1)?(r=e[1],s=Ne(a),e=Le(a,e)):s=-1);-1!==s;){const t=e[1];if(We(o,s,t.data)){const t=Je(s,e,n,r,i,l);if(t!==He)return t}a=e[s+8],-1!==a&&Ke(i,e[1].data[s+8]===l)&&We(o,s,e)?(r=t,s=Ne(a),e=Le(a,e)):s=-1}}}return Ye(e,n,i,r)}const He={};function Ge(){return new tn(Ut(),Zt())}function Je(t,e,n,i,r,o){const s=e[1],a=s.data[t+8],l=Xe(a,s,n,null==i?dt(a)&&ze:i!=s&&0!=(3&a.type),r&A.Host&&o===a);return null!==l?Qe(e,s,l,a):He}function Xe(t,e,n,i,r){const o=t.providerIndexes,s=e.data,a=1048575&o,l=t.directiveStart,c=o>>20,u=r?a+c:t.directiveEnd;for(let h=i?a:a+c;h=l&&t.type===n)return h}if(r){const t=s[l];if(t&&ft(t)&&t.type===n)return l}return null}function Qe(t,e,n,i){let r=t[n];const o=e.data;if(function(t){return t instanceof Se}(r)){const s=r;s.resolving&&function(t,e){throw new m("200",`Circular dependency in DI detected for ${t}`)}(_(o[n]));const a=Fe(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?D(s.injectImpl):null;ce(t,i,A.Default);try{r=t[n]=s.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=e.type.prototype;if(i){const i=yt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&D(l),Fe(a),s.resolving=!1,fe()}}return r}function We(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[J]||nn(e),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const t=r[J]||nn(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function nn(t){return g(t)?()=>{const e=nn(f(t));return e&&e()}:mt(t)}function rn(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const t=n.length;let i=0;for(;i{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function r(...t){if(this instanceof r)return i.apply(this,t),this;const e=new r(...t);return n.annotation=e,n;function n(t,n,i){const r=t.hasOwnProperty(on)?t[on]:Object.defineProperty(t,on,{value:[]})[on];for(;r.length<=i;)r.push(null);return(r[i]=r[i]||[]).push(e),t}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class an{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=w({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ln=new an("AnalyzeForEntryComponents"),cn=Function;function un(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?hn(t,e):e(t))}function dn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function pn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function fn(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function mn(t,e){const n=vn(t,e);if(n>=0)return t[1|n]}function vn(t,e){return function(t,e,n){let i=0,r=t.length>>n;for(;r!==i;){const o=i+(r-i>>1),s=t[o<e?r=o:i=o+1}return~(r< ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):u(i)))}r=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${t.replace(wn,"\n ")}`}("\n"+t.message,r,n,i),t.ngTokenPath=r,t[bn]=null,t}const Dn=Tn(sn("Inject",t=>({token:t})),-1),Nn=Tn(sn("Optional"),8),Ln=Tn(sn("Self"),2),zn=Tn(sn("SkipSelf"),4);var Fn=(()=>((Fn=Fn||{})[Fn.Important=1]="Important",Fn[Fn.DashCase=2]="DashCase",Fn))();const Rn="__ngContext__";function jn(t,e){t[Rn]=e}function Bn(t){const e=function(t){return t[Rn]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Vn(t,e){return undefined(t,e)}function $n(t){const e=t[3];return ut(e)?e[3]:e}function Zn(t){return Yn(t[13])}function qn(t){return Yn(t[4])}function Yn(t){for(;null!==t&&!ut(t);)t=t[4];return t}function Un(t,e,n,i,r){if(null!=i){let o,s=!1;ut(i)?o=i:ct(i)&&(s=!0,i=i[0]);const a=Tt(i);0===t&&null!==n?null==r?ti(e,n,a):Kn(e,n,a,r||null,!0):1===t&&null!==n?Kn(e,n,a,r||null,!0):2===t?function(t,e,n){const i=ni(t,e);i&&function(t,e,n,i){Pt(t)?t.removeChild(e,n,i):e.removeChild(n)}(t,i,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=o&&function(t,e,n,i,r){const o=n[7];o!==Tt(n)&&Un(e,t,i,o,r);for(let s=10;s0&&(t[n-1][4]=i[4]);const o=pn(t,10+e);!function(t,e){di(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Xn(t,e){if(!(256&e[2])){const n=e[11];Pt(n)&&n.destroyNode&&di(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Qn(t[1],t);for(;e;){let n=null;if(ct(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ct(e)&&Qn(e[1],e),e=e[3];null===e&&(e=t),ct(e)&&Qn(e[1],e),n=e&&e[4]}e=n}}(e)}}function Qn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let i=0;i=0?i[r=l]():i[r=-l].unsubscribe(),o+=2}else{const t=i[r=n[o+1]];n[o].call(t)}if(null!==i){for(let t=r+1;tt,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return ri}())||void 0===e?void 0:e.createHTML(t))||t}function vi(t){var e;return(null===(e=function(){if(void 0===oi&&(oi=null,V.trustedTypes))try{oi=V.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch(t){}return oi}())||void 0===e?void 0:e.createHTML(t))||t}class _i{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class yi extends _i{getTypeName(){return"HTML"}}class bi extends _i{getTypeName(){return"Style"}}class wi extends _i{getTypeName(){return"Script"}}class Ci extends _i{getTypeName(){return"URL"}}class xi extends _i{getTypeName(){return"ResourceURL"}}function ki(t){return t instanceof _i?t.changingThisBreaksApplicationSecurity:t}function Oi(t,e){const n=Mi(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}function Mi(t){return t instanceof _i&&t.getTypeName()||null}function Si(t){return new yi(t)}function Pi(t){return new bi(t)}function Ei(t){return new wi(t)}function Ti(t){return new Ci(t)}function Ai(t){return new xi(t)}class Ii{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(mi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(e){return null}}}class Di{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=mi(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=mi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0zi(t.trim())).join(", ")),this.buf.push(" ",e,'="',Xi(s),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();$i.hasOwnProperty(e)&&!ji.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Xi(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const Gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ji=/([^\#-~ |!])/g;function Xi(t){return t.replace(/&/g,"&").replace(Gi,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ji,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Qi;function Wi(t,e){let n=null;try{Qi=Qi||function(t){const e=new Di(t);return function(){try{return!!(new window.DOMParser).parseFromString(mi(""),"text/html")}catch(t){return!1}}()?new Ii(e):e}(t);let i=e?String(e):"";n=Qi.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=Qi.getInertBodyElement(i)}while(i!==o);return mi((new Hi).sanitizeChildren(Ki(n)||n))}finally{if(n){const t=Ki(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Ki(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var tr=(()=>((tr=tr||{})[tr.NONE=0]="NONE",tr[tr.HTML=1]="HTML",tr[tr.STYLE=2]="STYLE",tr[tr.SCRIPT=3]="SCRIPT",tr[tr.URL=4]="URL",tr[tr.RESOURCE_URL=5]="RESOURCE_URL",tr))();function er(t){const e=ir();return e?vi(e.sanitize(tr.HTML,t)||""):Oi(t,"HTML")?vi(ki(t)):Wi(St(),v(t))}function nr(t){const e=ir();return e?e.sanitize(tr.URL,t)||"":Oi(t,"URL")?ki(t):zi(v(t))}function ir(){const t=Zt();return t&&t[12]}function rr(t){return t.ngOriginalError}function or(t,...e){t.error(...e)}class sr{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=(r=t)&&r.ngErrorLogger||or;var r;i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?t.ngDebugContext||this._findContext(rr(t)):null}_findOriginalError(t){let e=t&&rr(t);for(;e&&rr(e);)e=rr(e);return e||null}}const ar=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(V))();function lr(t){return t.ownerDocument.defaultView}function cr(t){return t.ownerDocument}function ur(t){return t instanceof Function?t():t}function hr(t,e,n){let i=t.length;for(;;){const r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const n=e.length;if(r+n===i||t.charCodeAt(r+n)<=32)return r}n=r+1}}const dr="ng-template";function pr(t,e,n){let i=0;for(;io?"":r[u+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==hr(e,c,0)||2&i&&c!==t){if(vr(i))return!1;s=!0}}}}else{if(!s&&!vr(i)&&!vr(l))return!1;if(s&&vr(l))continue;s=!1,i=l|1&i}}return vr(i)||s}function vr(t){return 0==(1&t)}function _r(t,e,n,i){if(null===e)return-1;let r=0;if(i||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!vr(s)&&(e+=wr(o,r),r=""),i=s,o=o||!vr(i);n++}return""!==r&&(e+=wr(o,r)),e}const xr={};function kr(t){Or(qt(),Zt(),me()+t,Qt())}function Or(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ce(e,i,n)}else{const i=t.preOrderHooks;null!==i&&xe(e,i,0,n)}ve(n)}function Mr(t,e){return t<<17|e<<2}function Sr(t){return t>>17&32767}function Pr(t){return 2|t}function Er(t){return(131068&t)>>2}function Tr(t,e){return-131069&t|e<<2}function Ar(t){return 1|t}function Ir(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Or(t,e,20,Qt()),n(i,r)}finally{ve(o)}}function Br(t,e,n){if(ht(e)){const i=e.directiveEnd;for(let r=e.directiveStart;r0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(n)!=o&&n.push(o),n.push(i,r,s)}}function Xr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Qr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Wr(t,e,n){if(n){if(e.exportAs)for(let i=0;i0&&ao(n)}}function ao(t){for(let n=Zn(t);null!==n;n=qn(n))for(let t=10;t0&&ao(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&ao(i)}}function lo(t,e){const n=Lt(e,t),i=n[1];(function(t,e){for(let n=e.length;nPromise.resolve(null))();function mo(t){return t[7]||(t[7]=[])}function vo(t){return t.cleanup||(t.cleanup=[])}function _o(t,e){const n=t[9],i=n?n.get(sr,null):null;i&&i.handleError(e)}function yo(t,e,n,i,r){for(let o=0;othis.processProvider(n,t,e)),hn([t],t=>this.processInjectorType(t,[],r)),this.records.set(Co,Do(void 0,this));const o=this.records.get(ko);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof t?null:u(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=_n,n=A.Default){this.assertNotDestroyed();const i=On(this),r=D(void 0);try{if(!(n&A.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(o=t)||"object"==typeof o&&o instanceof an)&&k(t);e=n&&this.injectableDefInScope(n)?Do(Ao(t),Oo):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&A.Self?Po():this.parent).get(t,e=n&A.Optional&&e===_n?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[bn]=s[bn]||[]).unshift(u(t)),i)throw s;return In(s,t,"R3InjectorError",this.source)}throw s}finally{D(r),On(i)}var o}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(u(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=f(t)))return!1;let i=M(t);const r=null==i&&t.ngModule||void 0,o=void 0===r?t:r,s=-1!==n.indexOf(o);if(void 0!==r&&(i=M(r)),null==i)return!1;if(null!=i.imports&&!s){let t;n.push(o);try{hn(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||Z))}}this.injectorDefTypes.add(o);const a=mt(o)||(()=>new o);this.records.set(o,Do(a,Oo));const l=i.providers;if(null!=l&&!s){const e=t;hn(l,t=>this.processProvider(t,e,l))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let i=Lo(t=f(t))?t:f(t&&t.provide);const r=(o=t,No(o)?Do(void 0,o.useValue):Do(Io(o),Oo));var o;if(Lo(t)||!0!==t.multi)this.records.get(i);else{let e=this.records.get(i);e||(e=Do(void 0,Oo,!0),e.factory=()=>En(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,r)}hydrate(t,e){return e.value===Oo&&(e.value=Mo,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value;var n}injectableDefInScope(t){if(!t.providedIn)return!1;const e=f(t.providedIn);return"string"==typeof e?"any"===e||e===this.scope:this.injectorDefTypes.has(e)}}function Ao(t){const e=k(t),n=null!==e?e.factory:mt(t);if(null!==n)return n;if(t instanceof an)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=fn(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[S]||t[E]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Io(t,e,n){let i;if(Lo(t)){const e=f(t);return mt(e)||Ao(e)}if(No(t))i=()=>f(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...En(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>Sn(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return mt(e)||Ao(e);i=()=>new e(...En(t.deps))}return i}function Do(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function No(t){return null!==t&&"object"==typeof t&&xn in t}function Lo(t){return"function"==typeof t}const zo=function(t,e,n){return function(t,e=null,n=null,i){const r=Eo(t,e,n,i);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let Fo=(()=>{class t{static create(t,e){return Array.isArray(t)?zo(t,e,""):zo(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=_n,t.NULL=new xo,t.\u0275prov=w({token:t,providedIn:"any",factory:()=>Sn(Co)}),t.__NG_ELEMENT_ID__=-1,t})();function Ro(t,e){we(Bn(t)[1],Ut())}function jo(t){let e=function(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const i=[t];for(;e;){let r;if(ft(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);const e=t;e.inputs=Bo(t.inputs),e.declaredInputs=Bo(t.declaredInputs),e.outputs=Bo(t.outputs);const n=r.hostBindings;n&&Zo(t,n);const o=r.viewQuery,s=r.contentQueries;if(o&&Vo(t,o),s&&$o(t,s),c(t.inputs,r.inputs),c(t.declaredInputs,r.declaredInputs),c(t.outputs,r.outputs),ft(r)&&r.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(r.data.animation)}}const e=r.features;if(e)for(let i=0;i=0;i--){const r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Ae(r.hostAttrs,n=Ae(n,r.hostAttrs))}}(i)}function Bo(t){return t===$?{}:t===Z?[]:t}function Vo(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function $o(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,r)=>{e(t,i,r),n(t,i,r)}:e}function Zo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}let qo=null;function Yo(){if(!qo){const t=V.Symbol;if(t&&t.iterator)qo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Tt(t[i.index])):i.index;if(Pt(n)){let s=null;if(!a&&l&&(s=function(t,e,n,i){const r=t.cleanup;if(null!=r)for(let o=0;on?t[n]:null}"string"==typeof t&&(o+=2)}return null}(t,e,r,i.index)),null!==s)(s.__ngLastListenerFn__||s).__ngNextListenerFn__=o,s.__ngLastListenerFn__=o,d=!1;else{o=vs(i,e,u,o,!1);const t=n.listen(f,r,o);h.push(o,t),c&&c.push(r,m,g,g+1)}}else o=vs(i,e,u,o,!0),f.addEventListener(r,o,s),h.push(o),c&&c.push(r,m,g,s)}else o=vs(i,e,u,o,!1);const p=i.outputs;let f;if(d&&null!==p&&(f=p[r])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Vt.lFrame.contextLView))[8]}(t)}function ys(t,e){let n=null;const i=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}const ks={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Os(t){return t.substring(ks.key,ks.keyEnd)}function Ms(t,e){const n=ks.textEnd;return n===e?-1:(e=ks.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,ks.key=e,n),Ss(t,e,n))}function Ss(t,e,n){for(;e=0;n=Ms(e,n))gn(t,Os(e),!0)}function Is(t,e,n,i){const r=Zt(),o=qt(),s=ne(2);o.firstUpdatePass&&Ns(o,t,s,i),e!==xr&&Xo(r,s,e)&&Fs(o,o.data[me()],r,r[11],t,r[s+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(ki(t)))),t}(e,n),i,s)}function Ds(t,e){return e>=t.expandoStartIndex}function Ns(t,e,n,i){const r=t.data;if(null===r[n+1]){const o=r[me()],s=Ds(t,n);Bs(o,i)&&null===e&&!s&&(e=!1),e=function(t,e,n,i){const r=oe(t);let o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=zs(n=Ls(null,t,e,n,i),e.attrs,i),o=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==r)if(n=Ls(r,t,e,n,i),null===o){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Er(i))return t[Sr(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Ls(null,t,e,n[1],i),n=zs(n,e.attrs,i),function(t,e,n,i){t[Sr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else o=function(t,e,n){let i;const r=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=Sr(t[a+1]);t[i+1]=Mr(e,a),0!==e&&(t[e+1]=Tr(t[e+1],i)),t[a+1]=function(t,e){return 131071&t|e<<17}(t[a+1],i)}else t[i+1]=Mr(a,0),0!==a&&(t[a+1]=Tr(t[a+1],i)),a=i;else t[i+1]=Mr(l,0),0===a?a=i:t[l+1]=Tr(t[l+1],i),l=i;u&&(t[i+1]=Pr(t[i+1])),Cs(t,c,i,!0),Cs(t,c,i,!1),function(t,e,n,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&vn(o,e)>=0&&(n[i+1]=Ar(n[i+1]))}(e,c,t,i,o),s=Mr(a,l),o?e.classBindings=s:e.styleBindings=s}(r,o,e,n,s,i)}}function Ls(t,e,n,i,r){let o=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],o=Array.isArray(e),l=o?e[1]:e,c=null===l;let u=n[r+1];u===xr&&(u=c?Z:void 0);let h=c?mn(u,i):l===i?u:void 0;if(o&&!js(h)&&(h=mn(e,i)),js(h)&&(a=h,s))return a;const d=t[r+1];r=s?Sr(d):Er(d)}if(null!==e){let t=o?e.residualClasses:e.residualStyles;null!=t&&(a=mn(t,i))}return a}function js(t){return void 0!==t}function Bs(t,e){return 0!=(t.flags&(e?16:32))}function Vs(t,e=""){const n=Zt(),i=qt(),r=t+20,o=i.firstCreatePass?Nr(i,r,1,e,null):i.data[r],s=n[r]=function(t,e){return Pt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);ai(i,n,s,o),Gt(o,!1)}function $s(t){return Zs("",t,""),$s}function Zs(t,e,n){const i=Zt(),r=function(t,e,n,i){return Xo(t,ee(),n)?e+v(n)+i:xr}(i,t,e,n);return r!==xr&&bo(i,me(),r),Zs}function qs(t,e,n,i,r){const o=Zt(),s=function(t,e,n,i,r,o){const s=Qo(t,te(),n,r);return ne(2),s?e+v(n)+i+v(r)+o:xr}(o,t,e,n,i,r);return s!==xr&&bo(o,me(),s),qs}function Ys(t,e,n){const i=Zt();return Xo(i,ee(),e)&&Hr(qt(),_e(),i,t,e,i[11],n,!0),Ys}function Us(t,e,n){const i=Zt();if(Xo(i,ee(),e)){const r=qt(),o=_e();Hr(r,o,i,t,e,function(t,e,n){return(null===t||ft(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}(oe(r.data),o,i),n,!0)}return Us}const Hs=void 0;var Gs=["en",[["a","p"],["AM","PM"],Hs],[["AM","PM"],Hs,Hs],[["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"]],Hs,[["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"]],Hs,[["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}",Hs,"{1} 'at' {0}",Hs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Js={};function Xs(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Ws(e);if(n)return n;const i=e.split("-")[0];if(n=Ws(i),n)return n;if("en"===i)return Gs;throw new Error(`Missing locale data for the locale "${t}".`)}function Qs(t){return Xs(t)[Ks.PluralCase]}function Ws(t){return t in Js||(Js[t]=V.ng&&V.ng.common&&V.ng.common.locales&&V.ng.common.locales[t]),Js[t]}var Ks=(()=>((Ks=Ks||{})[Ks.LocaleId=0]="LocaleId",Ks[Ks.DayPeriodsFormat=1]="DayPeriodsFormat",Ks[Ks.DayPeriodsStandalone=2]="DayPeriodsStandalone",Ks[Ks.DaysFormat=3]="DaysFormat",Ks[Ks.DaysStandalone=4]="DaysStandalone",Ks[Ks.MonthsFormat=5]="MonthsFormat",Ks[Ks.MonthsStandalone=6]="MonthsStandalone",Ks[Ks.Eras=7]="Eras",Ks[Ks.FirstDayOfWeek=8]="FirstDayOfWeek",Ks[Ks.WeekendRange=9]="WeekendRange",Ks[Ks.DateFormat=10]="DateFormat",Ks[Ks.TimeFormat=11]="TimeFormat",Ks[Ks.DateTimeFormat=12]="DateTimeFormat",Ks[Ks.NumberSymbols=13]="NumberSymbols",Ks[Ks.NumberFormats=14]="NumberFormats",Ks[Ks.CurrencyCode=15]="CurrencyCode",Ks[Ks.CurrencySymbol=16]="CurrencySymbol",Ks[Ks.CurrencyName=17]="CurrencyName",Ks[Ks.Currencies=18]="Currencies",Ks[Ks.Directionality=19]="Directionality",Ks[Ks.PluralCase=20]="PluralCase",Ks[Ks.ExtraData=21]="ExtraData",Ks))();const ta="en-US";let ea=ta;function na(t){b(t,"Expected localeId to be defined"),"string"==typeof t&&(ea=t.toLowerCase().replace(/_/g,"-"))}function ia(t,e,n,i,r){if(t=f(t),Array.isArray(t))for(let o=0;o>20;if(Lo(t)||!t.multi){const i=new Se(l,r,es),p=sa(a,e,r?u:u+d,h);-1===p?(Ze(je(c,s),o,a),ra(o,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(i),s.push(i)):(n[p]=i,s[p]=i)}else{const p=sa(a,e,u+d,h),f=sa(a,e,u,u+d),g=p>=0&&n[p],m=f>=0&&n[f];if(r&&!m||!r&&!g){Ze(je(c,s),o,a);const u=function(t,e,n,i,r){const o=new Se(t,n,es);return o.multi=[],o.index=e,o.componentProviders=0,oa(o,r,i&&!n),o}(r?la:aa,n.length,r,i,l);!r&&m&&(n[f].providerFactory=u),ra(o,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),s.push(u)}else ra(o,t,p>-1?p:f,oa(n[r?f:p],l,!r&&i));!r&&i&&m&&n[f].componentProviders++}}}function ra(t,e,n,i){const r=Lo(e);if(r||function(t){return!!t.useClass}(e)){const o=(e.useClass||e).prototype.ngOnDestroy;if(o){const s=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){const t=s.indexOf(n);-1===t?s.push(n,[i,o]):s[t+1].push(i,o)}else s.push(n,o)}}}function oa(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function sa(t,e,n,i){for(let r=n;r{n.providersResolver=(n,i)=>function(t,e,n){const i=qt();if(i.firstCreatePass){const r=ft(t);ia(n,i.data,i.blueprint,r,!0),ia(e,i.data,i.blueprint,r,!1)}}(n,i?i(t):t,e)}}class ha{}const da="ngComponent";class pa{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e[da]=t,e}(t)}}let fa=(()=>{class t{}return t.NULL=new pa,t})();function ga(...t){}function ma(t,e){return new _a(It(t,e))}const va=function(){return ma(Ut(),Zt())};let _a=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=va,t})();function ya(t){return t instanceof _a?t.nativeElement:t}class ba{}let wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ca(),t})();const Ca=function(){const t=Zt(),e=Lt(Ut().index,t);return function(t){return t[11]}(ct(e)?e:t)};let xa=(()=>{class t{}return t.\u0275prov=w({token:t,providedIn:"root",factory:()=>null}),t})();class ka{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Oa=new ka("12.2.17");class Ma{constructor(){}supports(t){return Ho(t)}create(t){return new Pa(t)}}const Sa=(t,e)=>e;class Pa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Sa}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,r=null;for(;e||n;){const o=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==r&&Object.is(r.trackById,i)?(o&&(r=this._verifyReinsertion(r,t,i,e)),Object.is(r.item,t)||this._addIdentityChange(r,t)):(r=this._mismatch(r,t,i,e),o=!0),r=r._next,e++}),this.length=e;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let r;return null===t?r=this._itTail:(r=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,r,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,r,i)):t=this._addAfter(new Ea(e,n),r,i),t}_verifyReinsertion(t,e,n,i){let r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?t=this._reinsertAfter(r,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,r=t._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Aa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Aa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ea{constructor(t,e){this.item=t,this.trackById=e,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 Ta{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Aa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ta,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ia(t,e,n){const i=t.previousIndex;if(null===i)return i;let r=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}const n=new La(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class La{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function za(){return new Fa([new Ma])}let Fa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||za()),deps:[[t,new zn,new Nn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(t){return t.name||typeof t}(t)}'`)}}return t.\u0275prov=w({token:t,providedIn:"root",factory:za}),t})();function Ra(){return new ja([new Da])}let ja=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>t.create(e,n||Ra()),deps:[[t,new zn,new Nn]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=w({token:t,providedIn:"root",factory:Ra}),t})();function Ba(t,e,n,i,r=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&i.push(Tt(o)),ut(o))for(let t=10;t-1&&(Jn(t,n),pn(e,n))}this._attachedToViewContainer=!1}Xn(this._lView[1],this._lView)}onDestroy(t){Yr(this._lView[1],this._lView,null,t)}markForCheck(){uo(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ho(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Wt(!0);try{ho(t,e,n)}finally{Wt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,di(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class $a extends Va{constructor(t){super(t),this._view=t}detectChanges(){po(this._view)}checkNoChanges(){!function(t){Wt(!0);try{po(t)}finally{Wt(!1)}}(this._view)}get context(){return null}}const Za=function(t){return function(t,e,n){if(dt(t)&&!n){const n=Lt(t.index,e);return new Va(n,n)}return 47&t.type?new Va(e[16],e):null}(Ut(),Zt(),16==(16&t))};let qa=(()=>{class t{}return t.__NG_ELEMENT_ID__=Za,t})();const Ya=[new Da],Ua=new Fa([new Ma]),Ha=new ja(Ya),Ga=function(){return Wa(Ut(),Zt())};let Ja=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ga,t})();const Xa=Ja,Qa=class extends Xa{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Dr(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),zr(e,n,t),new Va(n)}};function Wa(t,e){return 4&t.type?new Qa(e,t,ma(t,e)):null}class Ka{}class tl{}const el=function(){return al(Ut(),Zt())};let nl=(()=>{class t{}return t.__NG_ELEMENT_ID__=el,t})();const il=nl,rl=class extends il{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return ma(this._hostTNode,this._hostLView)}get injector(){return new tn(this._hostTNode,this._hostLView)}get parentInjector(){const t=$e(this._hostTNode,this._hostLView);if(De(t)){const e=Le(t,this._hostLView),n=Ne(t);return new tn(e[1].data[n+8],e)}return new tn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=ol(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,r){const o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){const t=o.get(Ka,null);t&&(r=t)}const s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s}insert(t,e){const n=t._lView,i=n[1];if(ut(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new rl(e,e[6],e[3]);i.detach(i.indexOf(t))}}const r=this._adjustIndex(e),o=this._lContainer;!function(t,e,n,i){const r=10+i,o=n.length;i>0&&(n[r-1][4]=e),iar});class dl extends ha{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Cr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ul(this.componentDef.inputs)}get outputs(){return ul(this.componentDef.outputs)}create(t,e,n,i){const r=(i=i||this.ngModule)?function(t,e){return{get:(n,i,r)=>{const o=t.get(n,ll,r);return o!==ll||i===ll?o:e.get(n,i,r)}}}(t,i.injector):t,o=r.get(ba,Et),s=r.get(xa,null),a=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Pt(t))return t.selectRootElement(e,n===F.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Hn(o.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?kt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),u=this.componentDef.onPush?576:528,h=function(t,e){return{components:[],scheduler:t||ar,clean:go,playerHandler:e||null,flags:0}}(),d=qr(0,null,null,1,0,null,null,null,null,null),p=Dr(null,d,h,u,null,null,o,a,s,r);let f,g;ue(p);try{const t=function(t,e,n,i,r,o){const s=n[1];n[20]=t;const a=Nr(s,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(wo(a,l,!0),null!==t&&(Pe(r,t,l),null!==a.classes&&gi(r,t,a.classes),null!==a.styles&&fi(r,t,a.styles)));const c=i.createRenderer(t,e),u=Dr(n,Zr(e),null,e.onPush?64:16,n[20],a,i,c,o||null,null);return s.firstCreatePass&&(Ze(je(a,n),s,e.type),Qr(s,a),Kr(a,n.length,1)),co(n,u),n[20]=u}(c,this.componentDef,p,o,a);if(c)if(n)Pe(a,c,["ng-version",Oa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,r=2;for(;i0&&gi(a,c,e.join(" "))}if(g=Dt(d,20),void 0!==e){const t=g.projection=[];for(let n=0;nt(s,e)),e.contentQueries){const t=Ut();e.contentQueries(1,s,t.directiveStart)}const a=Ut();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(ve(a.index),Jr(n[1],a,0,a.directiveStart,a.directiveEnd,e),Xr(e,s)),s}(t,this.componentDef,p,h,[Ro]),zr(d,p,null)}finally{ge()}return new pl(this.componentType,f,ma(g,p),p,g)}}class pl extends class{}{constructor(t,e,n,i,r){super(),this.location=n,this._rootLView=i,this._tNode=r,this.instance=e,this.hostView=this.changeDetectorRef=new $a(i),this.componentType=t}get injector(){return new tn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const fl=new Map;class gl extends Ka{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new cl(this);const n=lt(t),i=t[G]||null;i&&na(i),this._bootstrapComponents=ur(n.bootstrap),this._r3Injector=Eo(t,e,[{provide:Ka,useValue:this},{provide:fa,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Fo.THROW_IF_NOT_FOUND,n=A.Default){return t===Fo||t===Ka||t===Co?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ml extends tl{constructor(t){super(),this.moduleType=t,null!==lt(t)&&function(t){const e=new Set;!function t(n){const i=lt(n,!0),r=i.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(r,fl.get(r),n),fl.set(r,n));const o=ur(i.imports);for(const s of o)e.has(s)||(e.add(s),t(s))}(t)}(t)}create(t){return new gl(this.moduleType,t)}}function vl(t,e,n){const i=Kt()+t,r=Zt();return r[i]===xr?Jo(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function _l(t,e,n,i){return wl(Zt(),Kt(),t,e,n,i)}function yl(t,e,n,i,r){return Cl(Zt(),Kt(),t,e,n,i,r)}function bl(t,e){const n=t[e];return n===xr?void 0:n}function wl(t,e,n,i,r,o){const s=e+n;return Xo(t,s,r)?Jo(t,s+1,o?i.call(o,r):i(r)):bl(t,s+1)}function Cl(t,e,n,i,r,o,s){const a=e+n;return Qo(t,a,r,o)?Jo(t,a+2,s?i.call(s,r,o):i(r,o)):bl(t,a+2)}function xl(t,e,n,i,r,o,s,a){const l=e+n;return function(t,e,n,i,r){const o=Qo(t,e,n,i);return Xo(t,e+2,r)||o}(t,l,r,o,s)?Jo(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):bl(t,l+3)}function kl(t,e){const n=qt();let i;const r=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new m("302",`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const o=i.factory||(i.factory=mt(i.type)),s=D(es);try{const t=Fe(!1),e=o();return Fe(t),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(n,Zt(),r,e),e}finally{D(s)}}function Ol(t,e,n){const i=t+20,r=Zt(),o=Nt(r,i);return El(r,Pl(r,i)?wl(r,Kt(),e,o.transform,n,o):o.transform(n))}function Ml(t,e,n,i){const r=t+20,o=Zt(),s=Nt(o,r);return El(o,Pl(o,r)?Cl(o,Kt(),e,s.transform,n,i,s):s.transform(n,i))}function Sl(t,e,n,i,r){const o=t+20,s=Zt(),a=Nt(s,o);return El(s,Pl(s,o)?xl(s,Kt(),e,a.transform,n,i,r,a):a.transform(n,i,r))}function Pl(t,e){return t[1].data[e].pure}function El(t,e){return Uo.isWrapped(e)&&(e=Uo.unwrap(e),t[te()]=xr),e}function Tl(t){return e=>{setTimeout(t,void 0,e)}}const Al=class extends i.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){var i,o,s;let a=t,l=e||(()=>null),c=n;if(t&&"object"==typeof t){const e=t;a=null===(i=e.next)||void 0===i?void 0:i.bind(e),l=null===(o=e.error)||void 0===o?void 0:o.bind(e),c=null===(s=e.complete)||void 0===s?void 0:s.bind(e)}this.__isAsync&&(l=Tl(l),a&&(a=Tl(a)),c&&(c=Tl(c)));const u=super.subscribe({next:a,error:l,complete:c});return t instanceof r.w&&t.add(u),u}};function Il(){return this._results[Yo()]()}class Dl{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Yo(),n=Dl.prototype;n[e]||(n[e]=Il)}get changes(){return this._changes||(this._changes=new Al)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const n=this;n.dirty=!1;const i=un(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(let i=0;i0)i.push(s[t/2]);else{const r=o[t+1],s=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=ga,this.reject=ga,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e.subscribe({complete:t,error:n})});t.push(n)}}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Sn(Ql,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();const Kl=new an("AppId"),tc={provide:Kl,useFactory:function(){return`${ec()}${ec()}${ec()}`},deps:[]};function ec(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const nc=new an("Platform Initializer"),ic=new an("Platform ID"),rc=new an("appBootstrapListener");let oc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();const sc=new an("LocaleId"),ac=new an("DefaultCurrencyCode");class lc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const cc=function(t){return new ml(t)},uc=cc,hc=function(t){return Promise.resolve(cc(t))},dc=function(t){const e=cc(t),n=ur(lt(t).declarations).reduce((t,e)=>{const n=at(e);return n&&t.push(new dl(n)),t},[]);return new lc(e,n)},pc=dc,fc=function(t){return Promise.resolve(dc(t))};let gc=(()=>{class t{constructor(){this.compileModuleSync=uc,this.compileModuleAsync=hc,this.compileModuleAndAllComponentsSync=pc,this.compileModuleAndAllComponentsAsync=fc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();const mc=(()=>Promise.resolve(0))();function vc(t){"undefined"==typeof Zone?mc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class _c{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Al(!1),this.onMicrotaskEmpty=new Al(!1),this.onStable=new Al(!1),this.onError=new Al(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&e,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=V.requestAnimationFrame,e=V.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(V,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,wc(t),t.isCheckStableRunning=!0,bc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),wc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,o,s,a)=>{try{return Cc(t),n.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),xc(t)}},onInvoke:(n,i,r,o,s,a,l)=>{try{return Cc(t),n.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),xc(t)}},onHasTask:(e,n,i,r)=>{e.hasTask(i,r),n===i&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,wc(t),bc(t)):"macroTask"==r.change&&(t.hasPendingMacrotasks=r.macroTask))},onHandleError:(e,n,i,r)=>(e.handleError(i,r),t.runOutsideAngular(()=>t.onError.emit(r)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_c.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_c.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,i){const r=this._inner,o=r.scheduleEventTask("NgZoneEvent: "+i,t,yc,ga,ga);try{return r.runTask(o,e,n)}finally{r.cancelTask(o)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}const yc={};function bc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function wc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Cc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xc(t){t._nesting--,bc(t)}class kc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Al,this.onMicrotaskEmpty=new Al,this.onStable=new Al,this.onError=new Al}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,i){return t.apply(e,n)}}let Oc=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{_c.assertNotInAngularZone(),vc(()=>{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())vc(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}whenStable(t,e,n){if(n&&!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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Sn(_c))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})(),Mc=(()=>{class t{constructor(){this._applications=new Map,Ec.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ec.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();class Sc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Pc(t){Ec=t}let Ec=new Sc,Tc=!1;function Ac(){return Tc=!0,true}let Ic;const Dc=new an("AllowMultipleToken");class Nc{constructor(t,e){this.name=t,this.token=e}}function Lc(t,e,n=[]){const i=`Platform: ${e}`,r=new an(i);return(e=[])=>{let o=zc();if(!o||o.injector.get(Dc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:ko,useValue:"platform"});!function(t){if(Ic&&!Ic.destroyed&&!Ic.injector.get(Dc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ic=t.get(Fc);const e=t.get(nc,null);e&&e.forEach(t=>t())}(Fo.create({providers:t,name:i}))}return function(t){const e=zc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(r)}}function zc(){return Ic&&!Ic.destroyed?Ic:null}let Fc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new kc:("zone.js"===t?void 0:t)||new _c({enableLongStackTrace:Ac(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(e?e.ngZone:void 0,{ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1}),i=[{provide:_c,useValue:n}];return n.run(()=>{const r=Fo.create({providers:i,parent:this.injector,name:t.moduleType.name}),o=t.create(r),s=o.injector.get(sr,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.runOutsideAngular(()=>{const t=n.onError.subscribe({next:t=>{s.handleError(t)}});o.onDestroy(()=>{Bc(this._modules,o),t.unsubscribe()})}),function(t,n,i){try{const e=i();return ds(e)?e.catch(e=>{throw n.runOutsideAngular(()=>t.handleError(e)),e}):e}catch(e){throw n.runOutsideAngular(()=>t.handleError(e)),e}}(s,n,()=>{const t=o.injector.get(Wl);return t.runInitializers(),t.donePromise.then(()=>(na(o.injector.get(sc,ta)||ta),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,e=[]){const n=Rc({},e);return function(t,e,n){const i=new ml(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(jc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Sn(Fo))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();function Rc(t,e){return Array.isArray(e)?e.reduce(Rc,t):Object.assign(Object.assign({},t),e)}let jc=(()=>{class t{constructor(t,e,n,i,r){this._zone=t,this._injector=e,this._exceptionHandler=n,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new o.y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),c=new o.y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{_c.assertNotInAngularZone(),vc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{_c.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=(0,s.T)(l,c.pipe((0,a.B)()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof ha?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=function(t){return t.isBoundToModule}(n)?void 0:this._injector.get(Ka),r=n.create(Fo.NULL,[],e||n.selector,i),o=r.location.nativeElement,s=r.injector.get(Oc,null),a=s&&r.injector.get(Mc);return s&&a&&a.registerApplication(o,s),r.onDestroy(()=>{this.detachView(r.hostView),Bc(this.components,r),a&&a.unregisterApplication(o)}),this._loadComponent(r),r}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(rc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Sn(_c),Sn(Fo),Sn(sr),Sn(fa),Sn(Wl))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Vc{}class $c{}const Zc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let qc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Zc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n(69153)(e).then(t=>t[i]).then(t=>Yc(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),r="NgFactory";return void 0===i&&(i="default",r=""),n(69153)(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+r]).then(t=>Yc(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(Sn(gc),Sn($c,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t})();function Yc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const Uc=function(t){return null},Hc=Lc(null,"core",[{provide:ic,useValue:"unknown"},{provide:Fc,deps:[Fo]},{provide:Mc,deps:[]},{provide:oc,deps:[]}]),Gc=[{provide:jc,useClass:jc,deps:[_c,Fo,sr,fa,Wl]},{provide:hl,deps:[_c],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Wl,useClass:Wl,deps:[[new Nn,Ql]]},{provide:gc,useClass:gc,deps:[]},tc,{provide:Fa,useFactory:function(){return Ua},deps:[]},{provide:ja,useFactory:function(){return Ha},deps:[]},{provide:sc,useFactory:function(t){return na(t=t||"undefined"!=typeof $localize&&$localize.locale||ta),t},deps:[[new Dn(sc),new Nn,new zn]]},{provide:ac,useValue:"USD"}];let Jc=(()=>{class t{constructor(t){}}return t.\u0275fac=function(e){return new(e||t)(Sn(jc))},t.\u0275mod=nt({type:t}),t.\u0275inj=x({providers:Gc}),t})()},87862:function(t,e,n){"use strict";n.d(e,{gN:function(){return N},Fj:function(){return m},NI:function(){return ot},oH:function(){return gt},u:function(){return yt},cw:function(){return st},sg:function(){return vt},u5:function(){return wt},JU:function(){return p},a5:function(){return L},JJ:function(){return F},JL:function(){return R},On:function(){return ut},UX:function(){return Ct},_Y:function(){return ht}});var i=n(74788),r=n(12057),o=n(29856),s=n(59796),a=n(88002),l=n(81555),c=n(97968);function u(t,e){return new o.y(n=>{const i=t.length;if(0===i)return void n.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{u||(u=!0,s++),r[a]=t},error:t=>n.error(t),complete:()=>{o++,(o===i||!u)&&(s===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}let h=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}setProperty(t,e){this._renderer.setProperty(this._elementRef.nativeElement,t,e)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t}),t})(),d=(()=>{class t extends h{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const p=new i.OlP("NgValueAccessor"),f={provide:p,useExisting:(0,i.Gpc)(()=>m),multi:!0},g=new i.OlP("CompositionEventMode");let m=(()=>{class t extends h{constructor(t,e,n){super(t,e),this._compositionMode=n,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=(0,r.q)()?(0,r.q)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(i.SBq),i.Y36(g,8))},t.\u0275dir=i.lG2({type:t,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(t,e){1&t&&i.NdJ("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[i._Bn([f]),i.qOj]}),t})();const v=new i.OlP("NgValidators"),_=new i.OlP("NgAsyncValidators");function y(t){return null!=t}function b(t){const e=(0,i.QGY)(t)?(0,c.D)(t):t;return(0,i.CqO)(e),e}function w(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function C(t,e){return e.map(e=>e(t))}function x(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function k(t){return null!=t?function(t){if(!t)return null;const e=t.filter(y);return 0==e.length?null:function(t){return w(C(t,e))}}(x(t)):null}function O(t){return null!=t?function(t){if(!t)return null;const e=t.filter(y);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if((0,s.k)(e))return u(e,null);if((0,l.K)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return u(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return u(t=1===t.length&&(0,s.k)(t[0])?t[0]:t,null).pipe((0,a.U)(t=>e(...t)))}return u(t,null)}(C(t,e).map(b)).pipe((0,a.U)(w))}}(x(t)):null}function M(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function S(t){return t._rawValidators}function P(t){return t._rawAsyncValidators}function E(t){return t?Array.isArray(t)?t:[t]:[]}function T(t,e){return Array.isArray(t)?t.includes(e):t===e}function A(t,e){const n=E(e);return E(t).forEach(t=>{T(n,t)||n.push(t)}),n}function I(t,e){return E(e).filter(e=>!T(t,e))}let D=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=k(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=O(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t}),t})(),N=(()=>{class t extends D{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();class L extends D{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class z{constructor(t){this._cd=t}is(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}let F=(()=>{class t extends z{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(L,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[i.qOj]}),t})(),R=(()=>{class t extends z{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(N,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&i.ekj("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[i.qOj]}),t})();function j(t,e){return[...e.path,t]}function B(t,e){Z(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Y(t,e)})}(t,e),function(t,e){const n=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Y(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const n=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function V(t,e,n=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),q(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function $(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Z(t,e){const n=S(t);null!==e.validator?t.setValidators(M(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const i=P(t);null!==e.asyncValidator?t.setAsyncValidators(M(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();$(e._rawValidators,r),$(e._rawAsyncValidators,r)}function q(t,e){let n=!1;if(null!==t){if(null!==e.validator){const i=S(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.validator);r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){const i=P(t);if(Array.isArray(i)&&i.length>0){const r=i.filter(t=>t!==e.asyncValidator);r.length!==i.length&&(n=!0,t.setAsyncValidators(r))}}}const i=()=>{};return $(e._rawValidators,i),$(e._rawAsyncValidators,i),n}function Y(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function U(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}function H(t,e){if(!e)return null;let n,i,r;return Array.isArray(e),e.forEach(t=>{t.constructor===m?n=t:function(t){return Object.getPrototypeOf(t.constructor)===d}(t)?i=t:r=t}),r||i||n||null}function G(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const J="VALID",X="INVALID",Q="PENDING",W="DISABLED";function K(t){return(it(t)?t.validators:t)||null}function tt(t){return Array.isArray(t)?k(t):t||null}function et(t,e){return(it(e)?e.asyncValidators:t)||null}function nt(t){return Array.isArray(t)?O(t):t||null}function it(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class rt{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=tt(this._rawValidators),this._composedAsyncValidatorFn=nt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===J}get invalid(){return this.status===X}get pending(){return this.status==Q}get disabled(){return this.status===W}get enabled(){return this.status!==W}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=tt(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=nt(t)}addValidators(t){this.setValidators(A(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(A(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(I(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(I(t,this._rawAsyncValidators))}hasValidator(t){return T(this._rawValidators,t)}hasAsyncValidator(t){return T(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Q,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=W,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=J,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===J||this.status===Q)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?W:J}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Q,this._hasOwnPendingAsyncValidator=!0;const e=b(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length))return null;let i=t;return e.forEach(t=>{i=i instanceof st?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof at&&i.at(t)||null}),i}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new i.vpe,this.statusChanges=new i.vpe}_calculateStatus(){return this._allControlsDisabled()?W:this.errors?X:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Q)?Q:this._anyControlsHaveStatus(X)?X:J}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){it(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ot extends rt{constructor(t=null,e,n){super(K(e),et(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){G(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){G(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class st extends rt{constructor(t,e,n){super(K(e),et(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof ot?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,i)=>{n=e(n,t,i)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class at extends rt{constructor(t,e,n){super(K(e),et(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ot?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error(`Cannot find form control at index ${t}`)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const lt={provide:L,useExisting:(0,i.Gpc)(()=>ut)},ct=(()=>Promise.resolve(null))();let ut=(()=>{class t extends L{constructor(t,e,n,r){super(),this.control=new ot,this._registered=!1,this.update=new i.vpe,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=H(0,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),U(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?j(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_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(){B(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(t){ct.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;ct.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(N,9),i.Y36(v,10),i.Y36(_,10),i.Y36(p,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i._Bn([lt]),i.qOj,i.TTD]}),t})(),ht=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),dt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const pt=new i.OlP("NgModelWithFormControlWarning"),ft={provide:L,useExisting:(0,i.Gpc)(()=>gt)};let gt=(()=>{class t extends L{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new i.vpe,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=H(0,n)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const e=t.form.previousValue;e&&V(e,this,!1),B(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}U(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&V(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(v,10),i.Y36(_,10),i.Y36(p,10),i.Y36(pt,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i._Bn([ft]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})();const mt={provide:N,useExisting:(0,i.Gpc)(()=>vt)};let vt=(()=>{class t extends N{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.vpe,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(q(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return B(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){V(t.control||null,t,!1),G(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,function(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=t.control,n=this.form.get(t.path);e!==n&&(V(e||null,t),n instanceof ot&&(B(n,t),t.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const e=this.form.get(t.path);(function(t,e){Z(t,e)})(e,t),e.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const e=this.form.get(t.path);e&&function(t,e){return q(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Z(this.form,this),this._oldForm&&q(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(v,10),i.Y36(_,10))},t.\u0275dir=i.lG2({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.NdJ("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i._Bn([mt]),i.qOj,i.TTD]}),t})();const _t={provide:L,useExisting:(0,i.Gpc)(()=>yt)};let yt=(()=>{class t extends L{constructor(t,e,n,r,o){super(),this._ngModelWarningConfig=o,this._added=!1,this.update=new i.vpe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=H(0,r)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),U(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return j(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.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(N,13),i.Y36(v,10),i.Y36(_,10),i.Y36(p,10),i.Y36(pt,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i._Bn([_t]),i.qOj,i.TTD]}),t._ngModelWarningSentOnce=!1,t})(),bt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[dt]]}),t})(),wt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[bt]}),t})(),Ct=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:pt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[bt]}),t})()},91211:function(t,e,n){"use strict";n.d(e,{b2:function(){return F},H7:function(){return D},s3:function(){return p},Dx:function(){return j},q6:function(){return L},se:function(){return x}});var i=n(12057),r=n(74788);class o extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class s extends o{static makeCurrent(){(0,i.HT)(new s)}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=(l=l||document.querySelector("base"),l?l.getAttribute("href"):null);return null==e?null:function(t){a=a||document.createElement("a"),a.setAttribute("href",t);const e=a.pathname;return"/"===e.charAt(0)?e:`/${e}`}(e)}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return(0,i.Mx)(document.cookie,t)}}let a,l=null;const c=new r.OlP("TRANSITION_ID"),u=[{provide:r.ip1,useFactory:function(t,e,n){return()=>{n.get(r.CZH).donePromise.then(()=>{const n=(0,i.q)(),r=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let t=0;t{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},r.dqk.getAllAngularTestabilities=()=>t.getAllTestabilities(),r.dqk.getAllAngularRootElements=()=>t.getAllRootElements(),r.dqk.frameworkStabilizers||(r.dqk.frameworkStabilizers=[]),r.dqk.frameworkStabilizers.push(t=>{const e=r.dqk.getAllAngularTestabilities();let n=e.length,i=!1;const o=function(e){i=i||e,n--,0==n&&t(i)};e.forEach(function(t){t.whenStable(o)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?(0,i.q)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}let d=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const p=new r.OlP("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,e,n){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,n.push(e.appendChild(i))})}addHost(t){const e=[];this._addStylesToHost(this._stylesSet,t,e),this._hostNodes.set(t,e)}removeHost(t){const e=this._hostNodes.get(t);e&&e.forEach(_),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((e,n)=>{this._addStylesToHost(t,n,e)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(_))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function _(t){(0,i.q)().remove(t)}const y={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/"},b=/%COMP%/g;function w(t,e,n){for(let i=0;i{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let x=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new k(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case r.ifc.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new O(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case 1:case r.ifc.ShadowDom:return new M(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=w(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(f),r.LFG(v),r.LFG(r.AFp))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();class k{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,i){if(i){e=i+":"+e;const r=y[i];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=y[n];i?t.removeAttributeNS(i,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,i){i&(r.JOm.DashCase|r.JOm.Important)?t.style.setProperty(e,n,i&r.JOm.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.JOm.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,C(n)):this.eventManager.addEventListener(t,e,C(n))}}class O extends k{constructor(t,e,n,i){super(t),this.component=n;const r=w(i+"-"+n.id,n.styles,[]);e.addStyles(r),this.contentAttr="_ngcontent-%COMP%".replace(b,i+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(b,i+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class M extends k{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const r=w(i.id,i.styles,[]);for(let o=0;o{class t extends g{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const P=["alt","control","meta","shift"],E={"\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"},T={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},A={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let I=(()=>{class t extends g{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,r){const o=t.parseEventName(n),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const r=t._normalizeKey(n.pop());let o="";if(P.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=r,0!=n.length||0===r.length)return null;const s={};return s.domEventName=i,s.fullKey=o,s}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&T.hasOwnProperty(e)&&(e=T[e]))}return E[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),P.forEach(i=>{i!=n&&A[i](t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return r=>{t.getEventFullKey(r)===e&&i.runGuarded(()=>n(r))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=(0,r.Yz7)({factory:function(){return(0,r.LFG)(N)},token:t,providedIn:"root"}),t})(),N=(()=>{class t extends D{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.q3G.NONE:return e;case r.q3G.HTML:return(0,r.qzn)(e,"HTML")?(0,r.z3N)(e):(0,r.EiD)(this._doc,String(e)).toString();case r.q3G.STYLE:return(0,r.qzn)(e,"Style")?(0,r.z3N)(e):e;case r.q3G.SCRIPT:if((0,r.qzn)(e,"Script"))return(0,r.z3N)(e);throw new Error("unsafe value used in a script context");case r.q3G.URL:return(0,r.yhl)(e),(0,r.qzn)(e,"URL")?(0,r.z3N)(e):(0,r.mCW)(String(e));case r.q3G.RESOURCE_URL:if((0,r.qzn)(e,"ResourceURL"))return(0,r.z3N)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,r.JVY)(t)}bypassSecurityTrustStyle(t){return(0,r.L6k)(t)}bypassSecurityTrustScript(t){return(0,r.eBb)(t)}bypassSecurityTrustUrl(t){return(0,r.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,r.pB0)(t)}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=(0,r.Yz7)({factory:function(){return function(t){return new N(t.get(i.K0))}((0,r.LFG)(r.gxx))},token:t,providedIn:"root"}),t})();const L=(0,r.eFA)(r._c5,"browser",[{provide:r.Lbi,useValue:i.bD},{provide:r.g9A,useValue:function(){s.makeCurrent(),h.init()},multi:!0},{provide:i.K0,useFactory:function(){return(0,r.RDi)(document),document},deps:[]}]),z=[[],{provide:r.zSh,useValue:"root"},{provide:r.qLn,useFactory:function(){return new r.qLn},deps:[]},{provide:p,useClass:S,multi:!0,deps:[i.K0,r.R0b,r.Lbi]},{provide:p,useClass:I,multi:!0,deps:[i.K0]},[],{provide:x,useClass:x,deps:[f,v,r.AFp]},{provide:r.FYo,useExisting:x},{provide:m,useExisting:v},{provide:v,useClass:v,deps:[i.K0]},{provide:r.dDg,useClass:r.dDg,deps:[r.R0b]},{provide:f,useClass:f,deps:[p,r.R0b]},{provide:i.JF,useClass:d,deps:[]},[]];let F=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:r.AFp,useValue:e.appId},{provide:c,useExisting:r.AFp},u]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(t,12))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:z,imports:[i.ez,r.hGG]}),t})();function R(){return new j((0,r.LFG)(i.K0))}let j=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(i.K0))},t.\u0275prov=(0,r.Yz7)({factory:R,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},86561:function(t,e,n){"use strict";n.d(e,{gz:function(){return Gt},m2:function(){return $},F0:function(){return vn},Od:function(){return Cn},yS:function(){return bn},Bz:function(){return Dn},lC:function(){return xn},Hx:function(){return Ot}});var i=n(12057),r=n(74788),o=n(97968),s=n(25917),a=n(26215),l=n(9112),c=n(29856),u=n(13410),h=n(22416),d=n(41439),p=n(59193),f=n(52441),g=n(79765),m=n(77393);function v(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new _(t,e,n))}}class _{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new y(t,this.accumulator,this.seed,this.hasSeed))}}class y extends m.L{constructor(t,e,n,i){super(t),this.accumulator=e,this._seed=n,this.hasSeed=i,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let n;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)}}var b=n(45435),w=n(7108);function C(t){return function(e){return 0===t?(0,p.c)():e.lift(new x(t))}}class x{constructor(t){if(this.total=t,this.total<0)throw new w.W}call(t,e){return e.subscribe(new k(t,this.total))}}class k extends m.L{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let r=0;rt.length||"full"===n.pathMatch&&(e.hasChildren()||i.lengthi[e]===t)}return t===e}function ht(t){return Array.prototype.concat.apply([],t)}function dt(t){return t.length>0?t[t.length-1]:null}function pt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ft(t){return(0,r.CqO)(t)?t:(0,r.QGY)(t)?(0,o.D)(Promise.resolve(t)):(0,s.of)(t)}const gt={exact:function t(e,n,i){if(!kt(e.segments,n.segments)||!bt(e.segments,n.segments,i)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!t(e.children[r],n.children[r],i))return!1;return!0},subset:_t},mt={exact:function(t,e){return ct(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>ut(t[n],e[n]))},ignored:()=>!0};function vt(t,e,n){return gt[n.paths](t.root,e.root,n.matrixParams)&&mt[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function _t(t,e,n){return yt(t,e,e.segments,n)}function yt(t,e,n,i){if(t.segments.length>n.length){const r=t.segments.slice(0,n.length);return!(!kt(r,n)||e.hasChildren()||!bt(r,n,i))}if(t.segments.length===n.length){if(!kt(t.segments,n)||!bt(t.segments,n,i))return!1;for(const n in e.children)if(!t.children[n]||!_t(t.children[n],e.children[n],i))return!1;return!0}{const r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!(kt(t.segments,r)&&bt(t.segments,r,i)&&t.children[it])&&yt(t.children[it],e,o,i)}}function bt(t,e,n){return e.every((e,i)=>mt[n](t[i].parameters,e.parameters))}class wt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ot(this.queryParams)),this._queryParamMap}toString(){return St.serialize(this)}}class Ct{constructor(t,e){this.segments=t,this.children=e,this.parent=null,pt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pt(this)}}class xt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=ot(this.parameters)),this._parameterMap}toString(){return Lt(this)}}function kt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}class Ot{}class Mt{parse(t){const e=new Bt(t);return new wt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Et(t.root,!0)}`,n=function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${At(e)}=${At(t)}`).join("&"):`${At(e)}=${At(n)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(t.queryParams);var i;return`${e}${n}${"string"==typeof t.fragment?`#${i=t.fragment,encodeURI(i)}`:""}`}}const St=new Mt;function Pt(t){return t.segments.map(t=>Lt(t)).join("/")}function Et(t,e){if(!t.hasChildren())return Pt(t);if(e){const e=t.children[it]?Et(t.children[it],!1):"",n=[];return pt(t.children,(t,e)=>{e!==it&&n.push(`${e}:${Et(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=function(t,e){let n=[];return pt(t.children,(t,i)=>{i===it&&(n=n.concat(e(t,i)))}),pt(t.children,(t,i)=>{i!==it&&(n=n.concat(e(t,i)))}),n}(t,(e,n)=>n===it?[Et(t.children[it],!1)]:[`${n}:${Et(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[it]?`${Pt(t)}/${e[0]}`:`${Pt(t)}/(${e.join("//")})`}}function Tt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function At(t){return Tt(t).replace(/%3B/gi,";")}function It(t){return Tt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Dt(t){return decodeURIComponent(t)}function Nt(t){return Dt(t.replace(/\+/g,"%20"))}function Lt(t){return`${It(t.path)}${function(t){return Object.keys(t).map(e=>`;${It(e)}=${It(t[e])}`).join("")}(t.parameters)}`}const zt=/^[^\/()?;=#]+/;function Ft(t){const e=t.match(zt);return e?e[0]:""}const Rt=/^[^=?&#]+/,jt=/^[^?&#]+/;class Bt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ct([],{}):new Ct([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[it]=new Ct(t,e)),n}parseSegment(){const t=Ft(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new xt(Dt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Ft(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Ft(this.remaining);t&&(n=t,this.capture(n))}t[Dt(e)]=Dt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Rt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(jt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const i=Nt(e),r=Nt(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(r)}else t[i]=r}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Ft(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let r;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=it);const o=this.parseChildren();e[r]=1===Object.keys(o).length?o[it]:new Ct([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Vt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=$t(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=$t(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Zt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Zt(t,this._root).map(t=>t.value)}}function $t(t,e){if(t===e.value)return e;for(const n of e.children){const e=$t(t,n);if(e)return e}return null}function Zt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=Zt(t,n);if(i.length)return i.unshift(e),i}return[]}class qt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Yt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ut extends Vt{constructor(t,e){super(t),this.snapshot=e,Wt(this,t)}toString(){return this.snapshot.toString()}}function Ht(t,e){const n=function(t,e){const n=new Xt([],{},{},"",{},it,e,null,t.root,-1,{});return new Qt("",new qt(n,[]))}(t,e),i=new a.X([new xt("",{})]),r=new a.X({}),o=new a.X({}),s=new a.X({}),l=new a.X(""),c=new Gt(i,r,s,l,o,it,e,n.root);return c.snapshot=n.root,new Ut(new qt(c,[]),n)}class Gt{constructor(t,e,n,i,r,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this._futureSnapshot=a}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,P.U)(t=>ot(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,P.U)(t=>ot(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Jt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(i))}class Xt{constructor(t,e,n,i,r,o,s,a,l,c,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=s,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=c,this._resolve=u}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=ot(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ot(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Qt extends Vt{constructor(t,e){super(e),this.url=t,Wt(this,e)}toString(){return Kt(this._root)}}function Wt(t,e){e.value._routerState=t,e.children.forEach(e=>Wt(t,e))}function Kt(t){const e=t.children.length>0?` { ${t.children.map(Kt).join(", ")} } `:"";return`${t.value}${e}`}function te(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ct(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ct(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nct(t.parameters,e[n].parameters))}(t.url,e.url);return n&&!(!t.parent!=!e.parent)&&(!t.parent||ee(t.parent,e.parent))}function ne(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const i=n.value;i._futureSnapshot=e.value;const r=function(t,e,n){return e.children.map(e=>{for(const i of n.children)if(t.shouldReuseRoute(e.value,i.value.snapshot))return ne(t,e,i);return ne(t,e)})}(t,e,n);return new qt(i,r)}{if(t.shouldAttach(e.value)){const n=t.retrieve(e.value);if(null!==n){const t=n.route;return ie(e,t),t}}const n=function(t){return new Gt(new a.X(t.url),new a.X(t.params),new a.X(t.queryParams),new a.X(t.fragment),new a.X(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(e=>ne(t,e));return new qt(n,i)}}function ie(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{o[e]=Array.isArray(t)?t.map(t=>`${t}`):`${t}`}),new wt(n.root===t?e:ae(n.root,t,e),o,r)}function ae(t,e,n){const i={};return pt(t.children,(t,r)=>{i[r]=t===e?n:ae(t,e,n)}),new Ct(t.segments,i)}class le{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&re(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(oe);if(i&&i!==dt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ce{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ue(t,e,n){if(t||(t=new Ct([],{})),0===t.segments.length&&t.hasChildren())return he(t,e,n);const i=function(t,e,n){let i=0,r=e;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return o;const e=t.segments[r],s=n[i];if(oe(s))break;const a=`${s}`,l=i0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ge(a,l,e))return o;i+=2}else{if(!ge(a,{},e))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof n&&(n=[n]),null!==n&&(r[i]=ue(t.children[i],e,n))}),pt(t.children,(t,e)=>{void 0===i[e]&&(r[e]=t)}),new Ct(t.segments,r)}}function de(t,e,n){const i=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=de(new Ct([],{}),0,t))}),e}function fe(t){const e={};return pt(t,(t,n)=>e[n]=`${t}`),e}function ge(t,e,n){return t==n.path&&ct(e,n.parameters)}class me{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),te(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Yt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),pt(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(i===r)if(i.component){const r=n.getContext(i.outlet);r&&this.deactivateChildRoutes(t,e,r.children)}else this.deactivateChildRoutes(t,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet),i=n&&t.value.component?n.children:e,r=Yt(t);for(const o of Object.keys(r))this.deactivateRouteAndItsChildren(r[o],i);n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}activateChildRoutes(t,e,n){const i=Yt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new et(t.value.snapshot))}),t.children.length&&this.forwardEvent(new K(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,r=e?e.value:null;if(te(i),i===r)if(i.component){const r=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,r.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),ve(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(i.snapshot),r=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=r,e.outlet&&e.outlet.activateWith(i,r),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function ve(t){te(t.value),t.children.forEach(ve)}class _e{constructor(t,e){this.routes=t,this.module=e}}function ye(t){return"function"==typeof t}function be(t){return t instanceof wt}const we=Symbol("INITIAL_VALUE");function Ce(){return(0,E.w)(t=>(0,l.aj)(t.map(t=>t.pipe((0,T.q)(1),(0,A.O)(we)))).pipe(v((t,e)=>{let n=!1;return e.reduce((t,i,r)=>t!==we?t:(i===we&&(n=!0),n||!1!==i&&r!==e.length-1&&!be(i)?t:i),t)},we),(0,b.h)(t=>t!==we),(0,P.U)(t=>be(t)?t:!0===t),(0,T.q)(1)))}let xe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r._UZ(0,"router-outlet")},directives:function(){return[xn]},encapsulation:2}),t})();function ke(t,e=""){for(let n=0;nPe(t)===e);return n.push(...t.filter(t=>Pe(t)!==e)),n}const Te={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Ae(t,e,n){var i;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},Te):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const r=(e.matcher||lt)(n,t,e);if(!r)return Object.assign({},Te);const o={};pt(r.posParams,(t,e)=>{o[e]=t.path});const s=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:s,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function Ie(t,e,n,i,r="corrected"){if(n.length>0&&function(t,e,n){return n.some(n=>De(t,e,n)&&Pe(n)!==it)}(t,n,i)){const r=new Ct(e,function(t,e,n,i){const r={};r[it]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const o of n)if(""===o.path&&Pe(o)!==it){const n=new Ct([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[Pe(o)]=n}return r}(t,e,i,new Ct(n,t.children)));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>De(t,e,n))}(t,n,i)){const o=new Ct(t.segments,function(t,e,n,i,r,o){const s={};for(const a of i)if(De(t,n,a)&&!r[Pe(a)]){const n=new Ct([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Pe(a)]=n}return Object.assign(Object.assign({},r),s)}(t,e,n,i,t.children,r));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const o=new Ct(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function De(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function Ne(t,e,n,i){return!!(Pe(t)===i||i!==it&&De(e,n,t))&&("**"===t.path||Ae(e,t,n).matched)}function Le(t,e,n){return 0===e.length&&!t.children[n]}class ze{constructor(t){this.segmentGroup=t||null}}class Fe{constructor(t){this.urlTree=t}}function Re(t){return new c.y(e=>e.error(new ze(t)))}function je(t){return new c.y(e=>e.error(new Fe(t)))}function Be(t){return new c.y(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ve{constructor(t,e,n,i,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(r.h0i)}apply(){const t=Ie(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ct(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,e,it).pipe((0,P.U)(t=>this.createUrlTree($e(t),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,I.K)(t=>{if(t instanceof Fe)return this.allowRedirects=!1,this.match(t.urlTree);throw t instanceof ze?this.noMatchError(t):t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,it).pipe((0,P.U)(e=>this.createUrlTree($e(e),t.queryParams,t.fragment))).pipe((0,I.K)(t=>{throw t instanceof ze?this.noMatchError(t):t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new Ct([],{[it]:t}):t;return new wt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe((0,P.U)(t=>new Ct([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){const i=[];for(const r of Object.keys(n.children))"primary"===r?i.unshift(r):i.push(r);return(0,o.D)(i).pipe((0,D.b)(i=>{const r=n.children[i],o=Ee(e,i);return this.expandSegmentGroup(t,o,r,i).pipe((0,P.U)(t=>({segment:t,outlet:i})))}),v((t,e)=>(t[e.outlet]=e.segment,t),{}),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?(0,b.h)((e,n)=>t(e,n,i)):S.y,C(1),n?(0,M.d)(e):(0,O.T)(()=>new u.K))}())}expandSegment(t,e,n,i,r,a){return(0,o.D)(n).pipe((0,D.b)(o=>this.expandSegmentAgainstRoute(t,e,n,o,i,r,a).pipe((0,I.K)(t=>{if(t instanceof ze)return(0,s.of)(null);throw t}))),(0,N.P)(t=>!!t),(0,I.K)((t,n)=>{if(t instanceof u.K||"EmptyError"===t.name){if(Le(e,i,r))return(0,s.of)(new Ct([],{}));throw new ze(e)}throw t}))}expandSegmentAgainstRoute(t,e,n,i,r,o,s){return Ne(i,e,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,o):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):Re(e):Re(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?je(r):this.lineralizeSegments(n,r).pipe((0,L.zg)(n=>{const r=new Ct(n,{});return this.expandSegment(t,r,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o){const{matched:s,consumedSegments:a,lastChild:l,positionalParamSegments:c}=Ae(e,i,r);if(!s)return Re(e);const u=this.applyRedirectCommands(a,i.redirectTo,c);return i.redirectTo.startsWith("/")?je(u):this.lineralizeSegments(i,u).pipe((0,L.zg)(i=>this.expandSegment(t,e,n,i.concat(r.slice(l)),o,!1)))}matchSegmentAgainstRoute(t,e,n,i,r){if("**"===n.path)return n.loadChildren?(n._loadedConfig?(0,s.of)(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe((0,P.U)(t=>(n._loadedConfig=t,new Ct(i,{})))):(0,s.of)(new Ct(i,{}));const{matched:o,consumedSegments:a,lastChild:l}=Ae(e,n,i);if(!o)return Re(e);const c=i.slice(l);return this.getChildConfig(t,n,i).pipe((0,L.zg)(t=>{const i=t.module,o=t.routes,{segmentGroup:l,slicedSegments:u}=Ie(e,a,c,o),h=new Ct(l.segments,l.children);if(0===u.length&&h.hasChildren())return this.expandChildren(i,o,h).pipe((0,P.U)(t=>new Ct(a,t)));if(0===o.length&&0===u.length)return(0,s.of)(new Ct(a,{}));const d=Pe(n)===r;return this.expandSegment(i,h,o,u,d?it:r,!0).pipe((0,P.U)(t=>new Ct(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?(0,s.of)(new _e(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?(0,s.of)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe((0,L.zg)(n=>{return n?this.configLoader.load(t.injector,e).pipe((0,P.U)(t=>(e._loadedConfig=t,t))):(i=e,new c.y(t=>t.error(at(`Cannot load children because the guard of the route "path: '${i.path}'" returned false`))));var i})):(0,s.of)(new _e([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;if(!i||0===i.length)return(0,s.of)(!0);const r=i.map(i=>{const r=t.get(i);let o;if((s=r)&&ye(s.canLoad))o=r.canLoad(e,n);else{if(!ye(r))throw new Error("Invalid CanLoad guard");o=r(e,n)}var s;return ft(o)});return(0,s.of)(r).pipe(Ce(),(0,z.b)(t=>{if(!be(t))return;const e=at(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(0,P.U)(t=>!0===t))}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return(0,s.of)(n);if(i.numberOfChildren>1||!i.children[it])return Be(t.redirectTo);i=i.children[it]}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const r=this.createSegmentGroup(t,e.root,n,i);return new wt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return pt(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const r=this.createSegments(t,e.segments,n,i);let o={};return pt(e.children,(e,r)=>{o[r]=this.createSegmentGroup(t,e,n,i)}),new Ct(r,o)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function $e(t){const e={};for(const n of Object.keys(t.children)){const i=$e(t.children[n]);(i.segments.length>0||i.hasChildren())&&(e[n]=i)}return function(t){if(1===t.numberOfChildren&&t.children[it]){const e=t.children[it];return new Ct(t.segments.concat(e.segments),e.children)}return t}(new Ct(t.segments,e))}class Ze{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class qe{constructor(t,e){this.component=t,this.route=e}}function Ye(t,e,n){const i=t._root;return He(i,e?e._root:null,n,[i.value])}function Ue(t,e,n){const i=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function He(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Yt(e);return t.children.forEach(t=>{(function(t,e,n,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!kt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!kt(t.url,e.url)||!ct(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ee(t,e)||!ct(t.queryParams,e.queryParams);default:return!ee(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ze(i)):(o.data=s.data,o._resolvedData=s._resolvedData),He(t,e,o.component?a?a.children:null:n,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new qe(a.outlet.component,s))}else s&&Ge(e,a,r),r.canActivateChecks.push(new Ze(i)),He(t,null,o.component?a?a.children:null:n,i,r)})(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]}),pt(o,(t,e)=>Ge(t,n.getContext(e),r)),r}function Ge(t,e,n){const i=Yt(t),r=t.value;pt(i,(t,i)=>{Ge(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new qe(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}class Je{}function Xe(t){return new c.y(e=>e.error(t))}class Qe{constructor(t,e,n,i,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}recognize(){const t=Ie(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,it);if(null===e)return null;const n=new Xt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},it,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new qt(n,e),r=new Qt(this.url,i);return this.inheritParamsAndData(r._root),r}inheritParamsAndData(t){const e=t.value,n=Jt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=[];for(const r of Object.keys(e.children)){const i=e.children[r],o=Ee(t,r),s=this.processSegmentGroup(o,i,r);if(null===s)return null;n.push(...s)}const i=Ke(n);return i.sort((t,e)=>t.value.outlet===it?-1:e.value.outlet===it?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,n,i){for(const r of t){const t=this.processSegmentAgainstRoute(r,e,n,i);if(null!==t)return t}return Le(e,n,i)?[]:null}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo||!Ne(t,e,n,i))return null;let r,o=[],s=[];if("**"===t.path){const i=n.length>0?dt(n).parameters:{};r=new Xt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,nn(t),Pe(t),t.component,t,tn(e),en(e)+n.length,rn(t))}else{const i=Ae(e,t,n);if(!i.matched)return null;o=i.consumedSegments,s=n.slice(i.lastChild),r=new Xt(o,i.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,nn(t),Pe(t),t.component,t,tn(e),en(e)+o.length,rn(t))}const a=(u=t).children?u.children:u.loadChildren?u._loadedConfig.routes:[],{segmentGroup:l,slicedSegments:c}=Ie(e,o,s,a.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution);var u;if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return null===t?null:[new qt(r,t)]}if(0===a.length&&0===c.length)return[new qt(r,[])];const h=Pe(t)===i,d=this.processSegment(a,l,c,h?it:i);return null===d?null:[new qt(r,d)]}}function We(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function Ke(t){const e=[],n=new Set;for(const i of t){if(!We(i)){e.push(i);continue}const t=e.find(t=>i.value.routeConfig===t.value.routeConfig);void 0!==t?(t.children.push(...i.children),n.add(t)):e.push(i)}for(const i of n){const t=Ke(i.children);e.push(new qt(i.value,t))}return e.filter(t=>!n.has(t))}function tn(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function en(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function nn(t){return t.data||{}}function rn(t){return t.resolve||{}}function on(t){return(0,E.w)(e=>{const n=t(e);return n?(0,o.D)(n).pipe((0,P.U)(()=>e)):(0,s.of)(e)})}class sn extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const an=new r.OlP("ROUTES");class ln{constructor(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}load(t,e){if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);const n=this.loadModuleFactory(e.loadChildren).pipe((0,P.U)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new _e(ht(i.injector.get(an,void 0,r.XFs.Self|r.XFs.Optional)).map(Se),i)}),(0,I.K)(t=>{throw e._loader$=void 0,t}));return e._loader$=new f.c(n,()=>new g.xQ).pipe((0,F.x)()),e._loader$}loadModuleFactory(t){return"string"==typeof t?(0,o.D)(this.loader.load(t)):ft(t()).pipe((0,L.zg)(t=>t instanceof r.YKP?(0,s.of)(t):(0,o.D)(this.compiler.compileModuleAsync(t))))}}class cn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new un,this.attachRef=null}}class un{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null,e.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new cn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class hn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function dn(t){throw t}function pn(t,e,n){return e.parse("/")}function fn(t,e){return(0,s.of)(null)}const gn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let vn=(()=>{class t{constructor(t,e,n,i,o,s,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new g.xQ,this.errorHandler=dn,this.malformedUriErrorHandler=pn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:fn,afterPreactivation:fn},this.urlHandlingStrategy=new hn,this.routeReuseStrategy=new sn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(r.h0i),this.console=o.get(r.c2e);const u=o.get(r.R0b);this.isNgZoneEnabled=u instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(c),this.currentUrlTree=new wt(new Ct([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ln(s,l,t=>this.triggerEvent(new X(t)),t=>this.triggerEvent(new Q(t))),this.routerState=Ht(this.currentUrlTree,this.rootComponentType),this.transitions=new a.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(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const e=this.events;return t.pipe((0,b.h)(t=>0!==t.id),(0,P.U)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),(0,E.w)(t=>{let n=!1,i=!1;return(0,s.of)(t).pipe((0,z.b)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,E.w)(t=>{const n=this.browserUrlTree.toString(),r=!this.navigated||t.extractedUrl.toString()!==n||n!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||r)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return _n(t.source)&&(this.browserUrlTree=t.extractedUrl),(0,s.of)(t).pipe((0,E.w)(t=>{const n=this.transitions.getValue();return e.next(new V(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?p.E:Promise.resolve(t)}),function(t,e,n,i){return(0,E.w)(r=>function(t,e,n,i,r){return new Ve(t,e,n,i,r).apply()}(t,e,n,r.extractedUrl,i).pipe((0,P.U)(t=>Object.assign(Object.assign({},r),{urlAfterRedirects:t}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,z.b)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,o){return(0,L.zg)(a=>function(t,e,n,r,o="emptyOnly",a="legacy"){try{const i=new Qe(t,e,n,r,o,a).recognize();return null===i?Xe(new Je):(0,s.of)(i)}catch(i){return Xe(i)}}(t,e,a.urlAfterRedirects,n(a.urlAfterRedirects),r,o).pipe((0,P.U)(t=>Object.assign(Object.assign({},a),{targetSnapshot:t}))))}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,z.b)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,t),this.browserUrlTree=t.urlAfterRedirects);const n=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));if(r&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:r,restoredState:o,extras:a}=t,l=new V(n,this.serializeUrl(i),r,o);e.next(l);const c=Ht(i,this.rootComponentType).snapshot;return(0,s.of)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),p.E}),on(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})}),(0,z.b)(t=>{const e=new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,P.U)(t=>Object.assign(Object.assign({},t),{guards:Ye(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return(0,L.zg)(n=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?(0,s.of)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return(0,o.D)(t).pipe((0,L.zg)(t=>function(t,e,n,i,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return(0,s.of)(!0);const a=o.map(o=>{const s=Ue(o,e,r);let a;if(function(t){return t&&ye(t.canDeactivate)}(s))a=ft(s.canDeactivate(t,e,n,i));else{if(!ye(s))throw new Error("Invalid CanDeactivate guard");a=ft(s(t,e,n,i))}return a.pipe((0,N.P)())});return(0,s.of)(a).pipe(Ce())}(t.component,t.route,n,e,i)),(0,N.P)(t=>!0!==t,!0))}(l,i,r,t).pipe((0,L.zg)(n=>n&&function(t){return"boolean"==typeof t}(n)?function(t,e,n,i){return(0,o.D)(e).pipe((0,D.b)(e=>(0,h.z)(function(t,e){return null!==t&&e&&e(new W(t)),(0,s.of)(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new tt(t)),(0,s.of)(!0)}(e.route,i),function(t,e,n){const i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>(0,d.P)(()=>{const r=e.guards.map(r=>{const o=Ue(r,e.node,n);let s;if(function(t){return t&&ye(t.canActivateChild)}(o))s=ft(o.canActivateChild(i,t));else{if(!ye(o))throw new Error("Invalid CanActivateChild guard");s=ft(o(i,t))}return s.pipe((0,N.P)())});return(0,s.of)(r).pipe(Ce())}));return(0,s.of)(r).pipe(Ce())}(t,e.path,n),function(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return(0,s.of)(!0);const r=i.map(i=>(0,d.P)(()=>{const r=Ue(i,e,n);let o;if(function(t){return t&&ye(t.canActivate)}(r))o=ft(r.canActivate(e,t));else{if(!ye(r))throw new Error("Invalid CanActivate guard");o=ft(r(e,t))}return o.pipe((0,N.P)())}));return(0,s.of)(r).pipe(Ce())}(t,e.route,n))),(0,N.P)(t=>!0!==t,!0))}(i,a,t,e):(0,s.of)(n)),(0,P.U)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))})}(this.ngModule.injector,t=>this.triggerEvent(t)),(0,z.b)(t=>{if(be(t.guardsResult)){const e=at(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),(0,b.h)(t=>!!t.guardsResult||(this.restoreHistory(t),this.cancelNavigationTransition(t,""),!1)),on(t=>{if(t.guards.canActivateChecks.length)return(0,s.of)(t).pipe((0,z.b)(t=>{const e=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),(0,E.w)(t=>{let e=!1;return(0,s.of)(t).pipe(function(t,e){return(0,L.zg)(n=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=n;if(!r.length)return(0,s.of)(n);let a=0;return(0,o.D)(r).pipe((0,D.b)(n=>function(t,e,n,i){return function(t,e,n,i){const r=Object.keys(t);if(0===r.length)return(0,s.of)({});const a={};return(0,o.D)(r).pipe((0,L.zg)(r=>function(t,e,n,i){const r=Ue(t,e,i);return ft(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe((0,z.b)(t=>{a[r]=t}))),C(1),(0,L.zg)(()=>Object.keys(a).length===r.length?(0,s.of)(a):p.E))}(t._resolve,t,e,i).pipe((0,P.U)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Jt(t,n).resolve),null)))}(n.route,i,t,e)),(0,z.b)(()=>a++),C(1),(0,L.zg)(t=>a===r.length?(0,s.of)(n):p.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,z.b)({next:()=>e=!0,complete:()=>{e||(this.restoreHistory(t),this.cancelNavigationTransition(t,"At least one route resolver didn't emit any value."))}}))}),(0,z.b)(t=>{const e=new J(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),on(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:r,extras:{skipLocationChange:o,replaceUrl:s}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:r,skipLocationChange:!!o,replaceUrl:!!s})}),(0,P.U)(t=>{const e=function(t,e,n){const i=ne(t,e._root,n?n._root:void 0);return new Ut(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),(0,z.b)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(t.urlAfterRedirects,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,t),this.browserUrlTree=t.urlAfterRedirects)}),((t,e,n)=>(0,P.U)(i=>(new me(e,i.targetRouterState,i.currentRouterState,n).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,t=>this.triggerEvent(t)),(0,z.b)({next(){n=!0},complete(){n=!0}}),(0,R.x)(()=>{var e;if(!n&&!i){const e=`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(t),this.cancelNavigationTransition(t,e)):this.cancelNavigationTransition(t,e)}(null===(e=this.currentNavigation)||void 0===e?void 0:e.id)===t.id&&(this.currentNavigation=null)}),(0,I.K)(n=>{if(i=!0,function(t){return t&&t[st]}(n)){const i=be(n.url);i||(this.navigated=!0,this.restoreHistory(t,!0));const r=new Z(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),i?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree),i={skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||_n(t.source)};this.scheduleNavigation(e,"imperative",null,i,{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.restoreHistory(t,!0);const i=new q(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}return p.E}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:i}=e,r={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,delete t.\u0275routerPageId,0!==Object.keys(t).length&&(r.state=t)}this.scheduleNavigation(i,t,n,r)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return e.transitionId!==t.transitionId||!n||!("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){ke(t),this.config=t.map(Se),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(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,queryParamsHandling:o,preserveFragment:s}=e,a=n||this.routerState.root,l=s?this.currentUrlTree.fragment:r;let c=null;switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,i,r){if(0===n.length)return se(e.root,e.root,e,i,r);const o=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new le(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,r)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return pt(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===r?(i.split("/").forEach((i,r)=>{0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new le(n,e,i)}(n);if(o.toRoot())return se(e.root,new Ct([],{}),e,i,r);const s=function(t,e,n){if(t.isAbsolute)return new ce(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ce(t,t===e.root,0)}const i=re(t.commands[0])?0:1;return function(t,e,n){let i=t,r=e,o=n;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Error("Invalid number of '../'");r=i.segments.length}return new ce(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(o,e,t),a=s.processChildren?he(s.segmentGroup,s.index,o.commands):ue(s.segmentGroup,s.index,o.commands);return se(s.segmentGroup,a,e,i,r)}(a,this.currentUrlTree,t,c,null!=l?l:null)}navigateByUrl(t,e={skipLocationChange:!1}){const n=be(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,e,n,i,r){var o,s;if(this.disposed)return Promise.resolve(!1);const a=this.getTransition(),l=_n(e)&&a&&!_n(a.source),c=(this.lastSuccessfulId===a.id||this.currentNavigation?a.rawUrl:a.urlAfterRedirects).toString()===t.toString();if(l&&c)return Promise.resolve(!0);let u,h,d;r?(u=r.resolve,h=r.reject,d=r.promise):d=new Promise((t,e)=>{u=t,h=e});const p=++this.navigationId;let f;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(n=this.location.getState()),f=n&&n.\u0275routerPageId?n.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(o=this.browserPageId)&&void 0!==o?o:0:(null!==(s=this.browserPageId)&&void 0!==s?s:0)+1):f=0,this.setTransition({id:p,targetPageId:f,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:u,reject:h,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(t=>Promise.reject(t))}setBrowserUrl(t,e){const n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}restoreHistory(t,e=!1){var n,i;if("computed"===this.canceledNavigationResolution){const e=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(n=this.currentNavigation)||void 0===n?void 0:n.finalUrl)||0===e?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===e&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(e)}else"replace"===this.canceledNavigationResolution&&(e&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,e){const n=new Z(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}generateNgRouterState(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.DyG),r.LFG(Ot),r.LFG(un),r.LFG(i.Ye),r.LFG(r.zs3),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function _n(t){return"imperative"!==t}let yn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new g.xQ,null==n&&i.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:wn(this.skipLocationChange),replaceUrl:wn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:wn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(vn),r.Y36(Gt),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})(),bn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new g.xQ,this.subscription=t.events.subscribe(t=>{t instanceof $&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,i,r){if(0!==t||e||n||i||r||"string"==typeof this.target&&"_self"!=this.target)return!0;const o={skipLocationChange:wn(this.skipLocationChange),replaceUrl:wn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:wn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(vn),r.Y36(Gt),r.Y36(i.S$))},t.\u0275dir=r.lG2({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Ikx("href",e.href,r.LSH),r.uIk("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[r.TTD]}),t})();function wn(t){return""===t||!!t}let Cn=(()=>{class t{constructor(t,e,n,i,r,o){this.router=t,this.element=e,this.renderer=n,this.cdr=i,this.link=r,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof $&&this.update()})}ngAfterContentInit(){(0,s.of)(this.links.changes,this.linksWithHrefs.changes,(0,s.of)(null)).pipe((0,j.J)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=(0,o.D)(e).pipe((0,j.J)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){const e=function(t){return!!t.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return n=>t.isActive(n.urlTree,e)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(vn),r.Y36(r.SBq),r.Y36(r.Qsj),r.Y36(r.sBO),r.Y36(yn,8),r.Y36(bn,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Suo(n,yn,5),r.Suo(n,bn,5)),2&t){let t;r.iGM(t=r.CRH())&&(e.links=t),r.iGM(t=r.CRH())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.TTD]}),t})(),xn=(()=>{class t{constructor(t,e,n,i,o){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.name=i||it,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new kn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(un),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},t.\u0275dir=r.lG2({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class kn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Gt?this.route:t===un?this.childContexts:this.parent.get(t,e)}}class On{}class Mn{preload(t,e){return(0,s.of)(null)}}let Sn=(()=>{class t{constructor(t,e,n,i,r){this.router=t,this.injector=i,this.preloadingStrategy=r,this.loader=new ln(e,n,e=>t.triggerEvent(new X(e)),e=>t.triggerEvent(new Q(e)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,b.h)(t=>t instanceof $),(0,D.b)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(r.h0i);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return(0,o.D)(n).pipe((0,j.J)(),(0,P.U)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>(e._loadedConfig?(0,s.of)(e._loadedConfig):this.loader.load(t.injector,e)).pipe((0,L.zg)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(vn),r.LFG(r.v3s),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(On))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),Pn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.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(t=>{t instanceof V?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof $&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof nt&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new nt(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(vn),r.LFG(i.EM),r.LFG(void 0))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const En=new r.OlP("ROUTER_CONFIGURATION"),Tn=new r.OlP("ROUTER_FORROOT_GUARD"),An=[i.Ye,{provide:Ot,useClass:Mt},{provide:vn,useFactory:function(t,e,n,i,r,o,s,a={},l,c){const u=new vn(null,t,e,n,i,r,o,ht(s));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(t=>{var e,n;null===(e=console.group)||void 0===e||e.call(console,`Router Event: ${t.constructor.name}`),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[Ot,un,i.Ye,r.zs3,r.v3s,r.Sil,an,En,[class{},new r.FiY],[class{},new r.FiY]]},un,{provide:Gt,useFactory:function(t){return t.routerState.root},deps:[vn]},{provide:r.v3s,useClass:r.EAV},Sn,Mn,class{preload(t,e){return e().pipe((0,I.K)(()=>(0,s.of)(null)))}},{provide:En,useValue:{enableTracing:!1}}];function In(){return new r.PXZ("Router",vn)}let Dn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[An,Fn(e),{provide:Tn,useFactory:zn,deps:[[vn,new r.FiY,new r.tp0]]},{provide:En,useValue:n||{}},{provide:i.S$,useFactory:Ln,deps:[i.lw,[new r.tBr(i.mr),new r.FiY],En]},{provide:Pn,useFactory:Nn,deps:[vn,i.EM,En]},{provide:On,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Mn},{provide:r.PXZ,multi:!0,useFactory:In},[Rn,{provide:r.ip1,multi:!0,useFactory:jn,deps:[Rn]},{provide:Vn,useFactory:Bn,deps:[Rn]},{provide:r.tb,multi:!0,useExisting:Vn}]]}}static forChild(e){return{ngModule:t,providers:[Fn(e)]}}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(Tn,8),r.LFG(vn,8))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})();function Nn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Pn(t,e,n)}function Ln(t,e,n={}){return n.useHash?new i.Do(t,e):new i.b0(t,e)}function zn(t){return"guarded"}function Fn(t){return[{provide:r.deG,multi:!0,useValue:t},{provide:an,multi:!0,useValue:t}]}let Rn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new g.xQ}appInitializer(){return this.injector.get(i.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let t=null;const e=new Promise(e=>t=e),n=this.injector.get(vn),i=this.injector.get(En);return"disabled"===i.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?(0,s.of)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(En),n=this.injector.get(Sn),i=this.injector.get(Pn),o=this.injector.get(vn),s=this.injector.get(r.z2F);t===s.components[0]&&(("enabledNonBlocking"===e.initialNavigation||void 0===e.initialNavigation)&&o.initialNavigation(),n.setUpPreloading(),i.init(),o.resetRootComponentType(s.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(r.LFG(r.zs3))},t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();function jn(t){return t.appInitializer.bind(t)}function Bn(t){return t.bootstrapListener.bind(t)}const Vn=new r.OlP("Router Initializer")},62579:function(t,e,n){"use strict";n.d(e,{L1:function(){return p},ux:function(){return f},UA:function(){return g},H3:function(){return m},Ct:function(){return v},s5:function(){return _},yZ:function(){return y},m9:function(){return d}});var i=n(74788),r=n(29856),o=n(22759),s=n(9945),a=n(39761),l=n(88002),c=n(87519),u=n(47349),h=n(12057);const d=new i.OlP("An abstraction over global window object",{factory:()=>{const{defaultView:t}=(0,i.f3M)(h.K0);if(!t)throw new Error("Window is not available");return t}}),p=new i.OlP("Shared Observable based on `window.requestAnimationFrame`",{factory:()=>{const{requestAnimationFrame:t,cancelAnimationFrame:e}=(0,i.f3M)(d);return new r.y(n=>{let i=NaN;const r=e=>{n.next(e),i=t(r)};return i=t(r),()=>{e(i)}}).pipe((0,s.B)())}}),f=(new i.OlP("An abstraction over window.caches object",{factory:()=>(0,i.f3M)(d).caches}),new i.OlP("An abstraction over window.crypto object",{factory:()=>(0,i.f3M)(d).crypto}),new i.OlP("An abstraction over window.CSS object",{factory:()=>(0,i.f3M)(d).CSS||{escape:t=>t,supports:()=>!1}})),g=new i.OlP("An abstraction over window.history object",{factory:()=>(0,i.f3M)(d).history}),m=new i.OlP("An abstraction over window.localStorage object",{factory:()=>(0,i.f3M)(d).localStorage}),v=new i.OlP("An abstraction over window.location object",{factory:()=>(0,i.f3M)(d).location}),_=new i.OlP("An abstraction over window.navigator object",{factory:()=>(0,i.f3M)(d).navigator}),y=(new i.OlP("An abstraction over window.navigator.mediaDevices object",{factory:()=>(0,i.f3M)(_).mediaDevices}),new i.OlP("An abstraction over window.navigator.connection object",{factory:()=>(0,i.f3M)(_).connection||null}),new i.OlP("Shared Observable based on `document visibility changed`",{factory:()=>{const t=(0,i.f3M)(h.K0);return(0,o.R)(t,"visibilitychange").pipe((0,a.O)(0),(0,l.U)(()=>"hidden"!==t.visibilityState),(0,c.x)(),(0,u.d)({refCount:!1,bufferSize:1}))}}),new i.OlP("An abstraction over window.performance object",{factory:()=>(0,i.f3M)(d).performance}),new i.OlP("An abstraction over window.screen object",{factory:()=>(0,i.f3M)(d).screen}),new i.OlP("An abstraction over window.sessionStorage object",{factory:()=>(0,i.f3M)(d).sessionStorage}),new i.OlP("An abstraction over SpeechRecognition class",{factory:()=>{const t=(0,i.f3M)(d);return t.speechRecognition||t.webkitSpeechRecognition||null}}),new i.OlP("An abstraction over window.speechSynthesis object",{factory:()=>(0,i.f3M)(d).speechSynthesis}),new i.OlP("An abstraction over window.navigator.userAgent object",{factory:()=>(0,i.f3M)(_).userAgent}))},68159:function(t,e,n){"use strict";n.d(e,{c0:function(){return ea},JF:function(){return ia},FU:function(){return ra},mG:function(){return oa},zb:function(){return ma},Lx:function(){return _a},B7:function(){return sa},f2:function(){return ka},u4:function(){return Oa},$5:function(){return ja},qn:function(){return Ba},qo:function(){return qa},Lq:function(){return Ya},nj:function(){return Za},hs:function(){return wa}});var i=n(74788),r=n(64548),o=n(44427),s=n(79765),a=n(41291),l=n(26215),c=n(66682),u=n(43190),h=n(88002),d=n(39761),p=n(46782),f=n(45435),g=n(19773),m=n(15257),v=n(87519),_=n(9945),y=n(97582);let b=(()=>{class t{constructor({nativeElement:t}){return new i.SBq(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiElement",""]],exportAs:["elementRef"]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var C=n(75675);let x=(()=>{class t extends b{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["","tuiResizeable",""]],features:[i.qOj]}),t})(),k=(()=>{class t{constructor(t){this.resizeable=t,this.tuiResizer=[0,0],this.tuiSizeChange=new i.vpe,this.x=NaN,this.y=NaN,this.width=0,this.height=0}get cursor(){return this.tuiResizer[0]?this.tuiResizer[1]?this.tuiResizer[0]*this.tuiResizer[1]>0?"nwse-resize":"nesw-resize":"ew-resize":"ns-resize"}onTouchStart({touches:t}){this.onMouseDown(t[0].clientX,t[0].clientY)}onMouseDown(t,e){this.x=t,this.y=e,this.width=this.resizeable.nativeElement.clientWidth,this.height=this.resizeable.nativeElement.clientHeight}onMouseMove({x:t,y:e,buttons:n}){n?this.onMove(t,e):this.onMouseUp()}onTouchMove({touches:t}){this.onMove(t[0].clientX,t[0].clientY)}onMouseUp(){this.x=NaN}onMove(t,e){if(Number.isNaN(this.x))return;const{style:n}=this.resizeable.nativeElement,i=[this.width+this.tuiResizer[0]*(t-this.x),this.height+this.tuiResizer[1]*(e-this.y)];this.tuiResizer[0]&&(n.width=(0,C.O)(i[0])),this.tuiResizer[1]&&(n.height=(0,C.O)(i[1])),this.tuiSizeChange.emit(i)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(x))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiResizer",""]],hostVars:4,hostBindings:function(t,e){1&t&&i.NdJ("touchstart.silent.passive",function(t){return e.onTouchStart(t)})("mousedown.silent.prevent",function(t){return e.onMouseDown(t.x,t.y)})("mousemove.silent",function(t){return e.onMouseMove(t)},!1,i.evT)("touchmove.silent",function(t){return e.onTouchMove(t)},!1,i.evT)("mouseup.silent",function(){return e.onMouseUp()},!1,i.evT)("touchend.silent",function(){return e.onMouseUp()},!1,i.evT),2&t&&i.Udp("touch-action","none")("cursor",e.cursor)},inputs:{tuiResizer:"tuiResizer"},outputs:{tuiSizeChange:"tuiSizeChange"}}),t})(),O=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),M=(()=>{class t{transform(t,e,...n){return t.filter(t=>e(t,...n))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiFilter",type:t,pure:!0}),t})(),S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiItem",""]]}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),T=(()=>{class t{transform(t,e,...n){return e(t,...n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiMapper",type:t,pure:!0}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var I=n(27103),D=n(59796),N=n(56693),L=n(55197),z=n(96563);class F{call(t,e){return e.subscribe(new R(t))}}class R extends L.L{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;n{class t{constructor(t,e){this.focusable=t,this.el=e}get element(){var t;return(null===(t=this.focusable)||void 0===t?void 0:t.nativeFocusableElement)||this.el.nativeElement}get isTextFieldElement(){return this.element.matches("input, textarea, [contenteditable]")}}return t.\u0275fac=function(t){i.$Z()},t.\u0275dir=i.lG2({type:t}),t})(),G=(()=>{class t extends H{constructor(t,e,n){super(t,e),this.animationFrame$=n}setFocus(){this.isTextFieldElement?function(...t){if(1===t.length){if(!(0,D.k)(t[0]))return t[0];t=t[0]}return(0,N.n)(t,void 0).lift(new F)}((0,a.H)(1e3),this.animationFrame$.pipe((0,j.p)(U.Yg),(0,h.U)(()=>this.element.closest(".ng-animating")),function(t){return e=>e.lift(new V(t))}(Boolean),(0,m.q)(1))).subscribe(()=>this.element.focus({preventScroll:!0})):this.element.focus({preventScroll:!0})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(q.KZ,10),i.Y36(i.SBq),i.Y36(Z.L1))},t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const J=["type","inputMode","autocomplete","accept","min","max","step","pattern","size","maxlength"];let X=(()=>{class t extends H{constructor(t,e,n,i,r){super(t,e),this.renderer=n,this.zone=i,this.win=r,this.patchCssStyles()}setFocus(){this.isTextFieldElement?this.zone.runOutsideAngular(()=>this.iosWebkitAutofocus()):this.element.focus({preventScroll:!0})}iosWebkitAutofocus(){var t;const e=this.makeFakeInput(),n=this.getDurationTimeBeforeFocus();let i=0,r=0;const o=()=>e.focus({preventScroll:!0}),s=()=>{clearTimeout(i),i=this.win.setTimeout(()=>{clearTimeout(r),e.removeEventListener("blur",o),e.removeEventListener("focus",s),r=this.win.setTimeout(()=>{this.element.focus({preventScroll:!1}),e.remove()},n)})};e.addEventListener("blur",o,{once:!0}),e.addEventListener("focus",s),this.insideDialog()?this.win.document.body.appendChild(e):null===(t=this.element.parentElement)||void 0===t||t.appendChild(e),e.focus({preventScroll:!0})}makeFakeInput(){const t=this.renderer.createElement("input"),e=this.element.getBoundingClientRect();return this.patchFakeInputFromFocusableElement(t),t.style.height=(0,C.O)(e.height),t.style.width=(0,C.O)(e.width/2),t.style.position="fixed",t.style.zIndex="-99999999",t.style.caretColor="transparent",t.style.border="none",t.style.outline="none",t.style.color="transparent",t.style.background="transparent",t.style.cursor="none",t.style.fontSize=(0,C.O)(16),t.style.top=(0,C.O)(e.top),t.style.left=(0,C.O)(e.left),t}getDurationTimeBeforeFocus(){return parseFloat(this.win.getComputedStyle(this.element).getPropertyValue("--tui-duration"))||0}insideDialog(){return!!this.element.closest("tui-dialog")}patchCssStyles(){const t=this.win.document;for(const e of[t.documentElement,t.body])e.style.setProperty("overflow","auto"),e.style.setProperty("height","100%")}patchFakeInputFromFocusableElement(t){J.forEach(e=>{const n=this.element.getAttribute(e);(0,Y.Pc)(n)&&t.setAttribute(e,n)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(q.KZ,10),i.Y36(i.SBq),i.Y36(i.Qsj),i.Y36(i.R0b),i.Y36(Z.m9))},t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})();const Q=(0,Y.JN)({delay:NaN}),W=new i.OlP("[TUI_AUTOFOCUS_HANDLER]"),K=[{provide:W,useFactory:(t,e,n,i,r,o,s)=>s?new X(t,e,i,r,o):new G(t,e,n),deps:[[new i.FiY,new i.PiD,q.KZ],i.SBq,Z.L1,i.Qsj,i.R0b,Z.m9,q.FA]},I.a3];let tt=(()=>{class t{constructor(t,e,n){this.handler=t,this.options=e,this.destroy$=n,this.autoFocus=!0}ngAfterViewInit(){(function(t){return null!=t&&"false"!=`${t}`})(this.autoFocus)&&this.focus()}focus(){Number.isNaN(this.options.delay)?Promise.resolve().then(()=>this.handler.setFocus()):(0,a.H)(this.options.delay).pipe((0,p.R)(this.destroy$)).subscribe(()=>this.handler.setFocus())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(W),i.Y36(Q),i.Y36(I.a3,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiAutoFocus",""]],inputs:{autoFocus:["tuiAutoFocus","autoFocus"]},features:[i._Bn(K)]}),t})(),et=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),nt=(()=>{class t{transform(t,e,n){var i;return null!==(i=null==t?void 0:t.replace(e,n))&&void 0!==i?i:""}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiReplace",type:t,pure:!0}),t})(),it=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var rt=n(221);function ot(t){const e=t.replace("#","").split("").map((t,e,n)=>3===n.length?t+t:t).join("").match(/.{2}/g);return e?e.map(t=>Number.parseInt(t,16)):[0,0,0]}var st=n(44358),at=n(85648),lt=n(40946),ct=n(92668),ut=n(23917),ht=n(94853),dt=n(79588),pt=n(91489),ft=n(75111),gt=n(79456),mt=n(43631),vt=n(76480),_t=n(75046);let yt=(()=>{class t{constructor(t,e,n,i,r){this.host=t,this.control=e,this.el=n,this.idService=i,this.itemsHandlers=r,this.disabledItemHandler=null,this.datalist=null}get id(){return this.el.nativeElement.id||this.idService.generate()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(gt.S0),i.Y36(vt.M$),i.Y36(i.SBq),i.Y36(I.ll),i.Y36(_t.Ys))},t.\u0275dir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(ft.gX,7,i.Rgc),2&t){let t;i.iGM(t=i.CRH())&&(e.datalist=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.Ikx("id",e.id)},inputs:{disabledItemHandler:"disabledItemHandler"}}),t})();var bt=n(40719),wt=n(57179),Ct=n(12057),xt=n(89570);function kt(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function Ot(t,e){if(1&t&&(i.TgZ(0,"button",4,5),i.TgZ(2,"span",6),i.YNc(3,kt,2,1,"ng-container",7),i.qZA(),i.qZA()),2&t){const t=e.$implicit,n=i.MAs(1),r=i.oxw(2);i.Q6J("disabled",r.disabledItemHandler(t))("value",t),i.xp6(3),i.Q6J("polymorpheusOutlet",r.itemContent)("polymorpheusOutletContext",r.getContext(t,n))}}function Mt(t,e){if(1&t&&(i.TgZ(0,"tui-data-list",2),i.YNc(1,Ot,4,4,"button",3),i.qZA()),2&t){const t=i.oxw();i.Q6J("emptyContent",t.emptyContent)("size",t.size),i.xp6(1),i.Q6J("ngForOf",t.items)}}function St(t,e){1&t&&i._UZ(0,"tui-loader",8)}let Pt=(()=>{class t{constructor(t,e){this.itemsHandlers=t,this.defaultSize=e,this.optionsQuery=U.Mm,this.disabledItemHandler=this.itemsHandlers.disabledItemHandler,this.size=this.defaultSize,this.itemContent=({$implicit:t})=>this.itemsHandlers.stringify(t)}getContext(t,{nativeElement:e}){return{$implicit:t,active:(0,wt.V8)(e)}}getOptions(t=!1){return this.optionsQuery.filter(({disabled:e})=>t||!e).map(({value:t})=>t).filter(Y.Pc)}}return t.\u0275fac=function(t){i.$Z()},t.\u0275dir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(ft.vK,5),2&t){let t;i.iGM(t=i.CRH())&&(e.optionsQuery=t)}},inputs:{disabledItemHandler:"disabledItemHandler",emptyContent:"emptyContent",size:"size",itemContent:"itemContent"}}),t})(),Et=(()=>{class t extends Pt{constructor(t,e){super(t,(null==e?void 0:e.size)||"m"),this.items=[]}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(_t.Ys),i.Y36(dt.Cs,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-data-list-wrapper",3,"labels",""]],inputs:{items:"items"},features:[i._Bn([(0,gt.RB)(t),dt.Y0]),i.qOj],decls:3,vars:2,consts:[[3,"emptyContent","size",4,"ngIf","ngIfElse"],["loading",""],[3,"emptyContent","size"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value",4,"ngFor","ngForOf"],["automation-id","tui-data-list-wrapper__option","tuiElement","","tuiOption","",3,"disabled","value"],["elementRef","elementRef"],[1,"t-content"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-data-list-wrapper__loader",1,"t-loader"]],template:function(t,e){if(1&t&&(i.YNc(0,Mt,2,3,"tui-data-list",0),i.YNc(1,St,1,0,"ng-template",null,1,i.W1O)),2&t){const t=i.MAs(2);i.Q6J("ngIf",e.items)("ngIfElse",t)}},directives:[Ct.O5,ft.qi,Ct.sg,ft.vK,b,xt.Li,bt.kM],styles:["[_nghost-%COMP%]{display:block}.t-content[_ngcontent-%COMP%]{flex:1}.t-loader[_ngcontent-%COMP%]{margin:.75rem 0}"],changeDetection:0}),t})(),Tt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,xt.wq,w,ft.pc,bt.dS]]}),t})(),At=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var It=n(87862),Dt=n(54789),Nt=n(66640);function Lt(t,e){1&t&&i._UZ(0,"tui-svg",2),2&t&&i.Q6J("src",e.polymorpheusOutlet)}function zt(t,e){1&t&&i.GkF(0)}const Ft=(0,Y.JN)({iconSmall:"tuiIconChevronDown",iconLarge:"tuiIconChevronDownLarge"}),Rt=new xt.Al((()=>{class t{constructor(t,e,n){this.dropdown=t,this.textfieldSize=e,this.options=n}get rotated(){return this.dropdown.open}get arrowIcon(){return(0,Nt.R9)(this.textfieldSize.size)?this.options.iconLarge:this.options.iconSmall}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(ut.o1),i.Y36(dt.kI),i.Y36(Ft))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-arrow"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_rotated",e.rotated)},decls:3,vars:4,consts:[[3,"src",4,"polymorpheusOutlet"],[4,"ngIf"],[3,"src"]],template:function(t,e){1&t&&(i.YNc(0,Lt,1,1,"tui-svg",0),i.YNc(1,zt,1,0,"ng-container",1),i.ALo(2,"async")),2&t&&(i.Q6J("polymorpheusOutlet",e.arrowIcon),i.xp6(1),i.Q6J("ngIf",i.lcZ(2,2,e.dropdown.openChange)))},directives:[xt.Li,Ct.O5,Dt.PN],pipes:[Ct.Ov],styles:["[_nghost-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;cursor:pointer;pointer-events:none}._rotated[_nghost-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),t})());let jt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,Dt.EI,xt.wq]]}),t})();const Bt=(0,Y.JN)({interactive:Rt,disabled:Rt});var Vt=n(18269);let $t=(()=>{class t{constructor(t,e){this.el=t,this.destroy$=e}set tuiScrollIntoView(t){!t||(0,a.H)(0).pipe((0,p.R)(this.destroy$)).subscribe(()=>{this.el.nativeElement.dispatchEvent(new CustomEvent(Vt.fe,{bubbles:!0,detail:this.el.nativeElement}))})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(I.a3,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiScrollIntoView",""]],inputs:{tuiScrollIntoView:"tuiScrollIntoView"},features:[i._Bn([I.a3])]}),t})(),Zt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var qt=n(59193);function Yt(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=i.oxw();i.Q6J("src",t.icons.check)("tuiScrollIntoView",!0)}}function Ut(t,e){1&t&&i._UZ(0,"span",4)}const Ht=new xt.Al((()=>{class t{constructor(t,e,n,i,r,o,a,l){this.icons=t,this.context=e,this.host=n,this.el=i,this.option=r,this.dataList=o,this.control=a,this.abstractControl=l,this.changeDetection$=new s.xQ,this.selected$=(0,c.T)(this.changeDetection$,this.control.valueChanges||qt.E,(0,lt.mL)(this.el.nativeElement,"animationstart")).pipe((0,d.O)(null),(0,h.U)(()=>this.selected),(0,v.x)())}get matcher(){return this.host.identityMatcher||U.bg}ngDoCheck(){this.changeDetection$.next()}ngOnInit(){Promise.resolve().then(()=>{(0,Y.Pc)(this.option.value)&&this.host.checkOption&&this.host.checkOption(this.option.value)})}get value(){var t,e;return null!==(e=null===(t=this.abstractControl)||void 0===t?void 0:t.value)&&void 0!==e?e:this.control.value}get selected(){return(0,Y.Pc)(this.option.value)&&(0,Y.Pc)(this.value)&&this.matcher(this.value,this.option.value)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(gt.Gs),i.Y36(xt.yf),i.Y36(gt.N1),i.Y36(i.SBq),i.Y36(ft.vK),i.Y36(ft.qi,8),i.Y36(It.a5),i.Y36(vt.M$,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-select-option"]],decls:5,vars:5,consts:[[3,"ngTemplateOutlet"],["automation-id","tui-select-option__checkmark","class","t-checkmark",3,"src","tuiScrollIntoView",4,"ngIf","ngIfElse"],["dummy",""],["automation-id","tui-select-option__checkmark",1,"t-checkmark",3,"src","tuiScrollIntoView"],[1,"t-dummy"]],template:function(t,e){if(1&t&&(i.GkF(0,0),i.YNc(1,Yt,1,2,"tui-svg",1),i.ALo(2,"async"),i.YNc(3,Ut,1,0,"ng-template",null,2,i.W1O)),2&t){const t=i.MAs(4);i.Q6J("ngTemplateOutlet",e.context.$implicit),i.xp6(1),i.Q6J("ngIf",i.lcZ(2,3,e.selected$))("ngIfElse",t)}},directives:[Ct.tP,Ct.O5,Dt.PN,$t],pipes:[Ct.Ov],styles:['@keyframes retrigger{0%{left:1px}to{left:2px}}[_nghost-%COMP%]{display:flex;flex:1;align-items:center;max-width:100%;animation:retrigger 1s}.t-checkmark[_ngcontent-%COMP%]{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-border-start:.25rem solid transparent;border-inline-start:.25rem solid transparent}tui-data-list[data-list-size="s"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-list-size="s"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}tui-data-list[data-list-size="m"][_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%], tui-data-list[data-list-size="m"] [_nghost-%COMP%] .t-checkmark[_ngcontent-%COMP%]{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}.t-dummy[_ngcontent-%COMP%]{width:1.75rem}'],changeDetection:0}),t})());let Gt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,Dt.EI,Zt]]}),t})();var Jt=n(93213);function Xt(t,e){1&t&&i.Hsn(0,2,["*ngIf","isMobile"])}function Qt(t,e){if(1&t&&i.YNc(0,Xt,1,0,"ng-content",6),2&t){const t=i.oxw();i.Q6J("ngIf",t.isMobile)}}function Wt(t,e){1&t&&i.GkF(0,7)}function Kt(t,e){1&t&&i._UZ(0,"div",10),2&t&&i.Q6J("textContent",e.polymorpheusOutlet)}const te=function(t,e){return{$implicit:t,active:e}};function ee(t,e){if(1&t&&(i.TgZ(0,"div",8),i.YNc(1,Kt,1,1,"div",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.computedContent)("polymorpheusOutletContext",i.WLB(2,te,t.value,t.computedFocused))}}function ne(t,e){1&t&&i.GkF(0)}function ie(t,e){if(1&t&&(i.TgZ(0,"div",11),i.YNc(1,ne,1,0,"ng-container",12),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.arrow)}}const re=["*",[["input"]],[["select"]]],oe=["*","input","select"],se=(0,Y.JN)({valueContent:""});let ae=(()=>{class t extends vt.F9{constructor(t,e,n,i,r,o,s,a){super(t,e),this.textfieldCleaner=n,this.textfieldSize=i,this.arrowMode=r,this.itemsHandlers=o,this.options=s,this.isMobile=a,this.stringify=this.itemsHandlers.stringify,this.identityMatcher=this.itemsHandlers.identityMatcher,this.valueContent=this.options.valueContent}get size(){return this.textfieldSize.size}get arrow(){return this.interactive?this.arrowMode.interactive:this.arrowMode.disabled}get nativeFocusableElement(){return this.textfield?this.textfield.nativeFocusableElement:null}get focused(){return(0,wt.V8)(this.nativeFocusableElement)||!!this.hostedDropdown&&this.hostedDropdown.focused}get nativeDropdownMode(){return!!this.nativeSelect&&this.isMobile}get computedValue(){return null===this.value?"":this.stringify(this.value)||" "}get computedContent(){return this.valueContent||this.computedValue}onValueChange(t){this.value=t||null}onActiveZone(t){this.updateFocused(t)}onKeyDownDelete(){this.textfieldCleaner.cleaner&&(this.value=null)}handleOption(t){var e;this.focusInput(),this.value=t,null===(e=this.hostedDropdown)||void 0===e||e.updateOpen(!1)}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(It.a5,10),i.Y36(i.sBO),i.Y36(dt.Ym),i.Y36(dt.kI),i.Y36(Bt),i.Y36(_t.Ys),i.Y36(se),i.Y36(q.fL))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-select"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,yt,7),i.Suo(n,ft.gX,5,i.Rgc)),2&t){let t;i.iGM(t=i.CRH())&&(e.nativeSelect=t.first),i.iGM(t=i.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(i.Gf(ht.yc,5),i.Gf(ut.o1,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.textfield=t.first),i.iGM(t=i.CRH())&&(e.hostedDropdown=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},inputs:{stringify:"stringify",identityMatcher:"identityMatcher",valueContent:"valueContent"},features:[i._Bn([(0,q.FT)(t),(0,vt.wB)(t),(0,gt.oE)(t),(0,gt.P7)(Ht)],[Jt.yn]),i.qOj],ngContentSelectors:oe,decls:10,vars:15,consts:[[1,"t-hosted",3,"canOpen","content","tuiActiveZoneChange"],["automation-id","tui-select__textfield",1,"t-textfield",3,"disabled","editable","focusable","invalid","nativeId","pseudoActive","pseudoFocus","pseudoHover","readOnly","tuiTextfieldIcon","value","keydown.backspace.prevent","keydown.delete.prevent","valueChange"],["select",""],["ngProjectAs","select",5,["select"],4,"ngTemplateOutlet"],["automation-id","tui-select__value","ngProjectAs","tuiContent","class","t-value",5,["tuiContent"],4,"ngIf"],["icon",""],[4,"ngIf"],["ngProjectAs","select",5,["select"]],["automation-id","tui-select__value","ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value"],["class","t-primitive-value",3,"textContent",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-primitive-value",3,"textContent"],["appearance","icon","tuiWrapper","",1,"t-icon"],[4,"polymorpheusOutlet"]],template:function(t,e){if(1&t&&(i.F$t(re),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("tuiActiveZoneChange",function(t){return e.onActiveZone(t)}),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("keydown.backspace.prevent",function(){return e.onKeyDownDelete()})("keydown.delete.prevent",function(){return e.onKeyDownDelete()})("valueChange",function(t){return e.onValueChange(t)}),i.Hsn(2),i.Hsn(3,1,["ngProjectAs","input",5,["input"]]),i.YNc(4,Qt,1,1,"ng-template",null,2,i.W1O),i.YNc(6,Wt,1,0,"ng-container",3),i.YNc(7,ee,2,5,"div",4),i.qZA(),i.YNc(8,ie,2,1,"ng-template",null,5,i.W1O),i.qZA()),2&t){const t=i.MAs(5),n=i.MAs(9);i.Q6J("canOpen",e.interactive&&!e.nativeDropdownMode)("content",e.datalist||""),i.xp6(1),i.Q6J("disabled",e.computedDisabled)("editable",!1)("focusable",e.computedFocusable)("invalid",e.computedInvalid)("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("tuiTextfieldIcon",e.arrow?n:"")("value",e.computedValue),i.xp6(5),i.Q6J("ngTemplateOutlet",t),i.xp6(1),i.Q6J("ngIf",null!==e.value)}},directives:[ut.o1,rt.e,ht.yc,ht.B1,dt.AW,Ct.tP,Ct.O5,xt.Li,pt.o],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}[_nghost-%COMP%]:not(._readonly) input:not(:disabled){cursor:pointer}._readonly[_nghost-%COMP%] input{cursor:default}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}.t-value[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center}.t-primitive-value[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0}),t})(),le=(()=>{class t extends mt.D1{get readOnly(){return!0}get value(){return this.host.computedValue}get stringify(){return this.host.stringify}onValueChange(t){this.host.onValueChange(t)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["tui-select"]],features:[i._Bn([(0,gt.cp)(t)]),i.qOj]}),t})(),ce=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,xt.wq,rt.A,ht.KW,ut.jh,Gt,jt,pt.W,dt.cn,Tt,ft.pc,At]]}),t})();var ue=n(77320),he=n(75452),de=n(44541),pe=n(13633),fe=n(75059),ge=n(88491),me=n(49941);const ve=["*"];let _e=(()=>{class t{constructor(){this.name="tui-radio-group-"+t.index++}}return t.index=0,t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-radio-group"]],inputs:{name:"name"},ngContentSelectors:ve,decls:1,vars:0,template:function(t,e){1&t&&(i.F$t(),i.Hsn(0))},encapsulation:2,changeDetection:0}),t})();const ye=["focusableElement"];function be(t,e){if(1&t&&i._UZ(0,"div",4),2&t){const t=i.oxw();i.Q6J("@tuiScaleIn",t.animation)}}const we=(0,Y.JN)({size:"m",appearances:{unchecked:ue.Nm.Outline,checked:ue.Nm.Primary}});let Ce=(()=>{class t extends vt.F9{constructor(t,e,n,i,r){super(t,e),this.animation=n,this.options=i,this.radioGroup=r,this.identityMatcher=U.bg,this.name=null,this.size=this.options.size,this.pseudoDisabled=!1}get appearance(){return this.checked?this.options.appearances.checked:this.options.appearances.unchecked}get computedDisabled(){return this.disabled||this.pseudoDisabled}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return(0,wt.V8)(this.nativeFocusableElement)}get checked(){return null===this.value?null===this.item:null!=this.item&&this.identityMatcher(this.value,this.item)}get computedName(){return this.name||this.radioGroupName||this.controlName||""}get isFocusable(){return!this.readOnly&&this.computedFocusable}onChecked(t){t&&(this.value=void 0!==this.item?this.item:this.fallbackValue)}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}get radioGroupName(){return null===this.radioGroup?null:this.radioGroup.name}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(It.a5,10),i.Y36(i.sBO),i.Y36(gt.Pw),i.Y36(we),i.Y36(_e,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-radio"]],viewQuery:function(t,e){if(1&t&&i.Gf(ye,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:3,hostBindings:function(t,e){2&t&&(i.uIk("data-size",e.size),i.ekj("_disabled",e.computedDisabled))},inputs:{item:"item",identityMatcher:"identityMatcher",name:"name",size:"size",pseudoDisabled:"pseudoDisabled"},features:[i._Bn([(0,q.FT)(t),(0,vt.wB)(t)]),i.qOj],decls:4,vars:12,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid"],["class","t-mark",4,"ngIf"],["type","radio",1,"t-native",3,"disabled","id","tuiChecked","tuiFocusable","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"t-mark"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,be,1,1,"div",1),i.TgZ(2,"input",2,3),i.NdJ("tuiCheckedChange",function(t){return e.onChecked(t)})("tuiFocusedChange",function(t){return e.onFocused(t)})("tuiFocusVisibleChange",function(t){return e.onFocusVisible(t)}),i.qZA(),i.qZA()),2&t&&(i.Q6J("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover)("invalid",e.computedInvalid),i.xp6(1),i.Q6J("ngIf",e.checked),i.xp6(1),i.Q6J("disabled",e.computedDisabled)("id",e.id)("tuiChecked",e.checked)("tuiFocusable",e.isFocusable),i.uIk("name",e.computedName))},directives:[pt.o,Ct.O5,de.t,pe.t,fe.U,ge.q],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0;border-radius:100%}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem}._readonly[_nghost-%COMP%]{pointer-events:none}.t-mark[_ngcontent-%COMP%]{position:absolute;background-color:currentColor;border-radius:100%}[data-size=m][_nghost-%COMP%] .t-mark[_ngcontent-%COMP%]{margin:.25rem;width:.5rem;height:.5rem}[data-size=l][_nghost-%COMP%] .t-mark[_ngcontent-%COMP%]{margin:.4375rem;width:.625rem;height:.625rem}.t-native[_ngcontent-%COMP%]{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%] .t-native[_ngcontent-%COMP%]{cursor:default}"],data:{animation:[me.gI]},changeDetection:0}),t})(),xe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,de.S,pe.u,fe.F,ge.c,pt.W]]}),t})();function ke(t,e){1&t&&i.GkF(0)}const Oe=["*"];let Me=(()=>{class t extends vt.F9{constructor(t,e,n){super(t,e),this.modeDirective=n,this.identityMatcher=U.bg,this.contentAlign="right",this.size="l",this.hideRadio=!1,this.pseudoDisabled=!1}get nativeFocusableElement(){return this.radio?this.radio.nativeFocusableElement:null}get focused(){return!!this.radio&&this.radio.focused}get computedDisabled(){return this.disabled||this.pseudoDisabled}get checked(){var t;return!!(null===(t=this.radio)||void 0===t?void 0:t.checked)&&this.hideRadio}get checkboxSize(){return"l"===this.size?"l":"m"}get appearance(){var t;return(null===(t=this.modeDirective)||void 0===t?void 0:t.mode)?this.checked?ue.Nm.Primary:ue.Nm.Secondary:this.checked?ue.Nm.WhiteblockActive:ue.Nm.Whiteblock}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}onModelChange(t){this.value=t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(It.a5,10),i.Y36(i.sBO),i.Y36(he.w,8))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-radio-block"]],viewQuery:function(t,e){if(1&t&&i.Gf(Ce,5),2&t){let t;i.iGM(t=i.CRH())&&(e.radio=t.first)}},hostVars:8,hostBindings:function(t,e){2&t&&(i.uIk("data-align",e.contentAlign)("data-size",e.size),i.ekj("_hidden_input",e.hideRadio)("_disabled",e.computedDisabled)("_active",e.checked))},inputs:{item:"item",identityMatcher:"identityMatcher",contentAlign:"contentAlign",size:"size",hideRadio:"hideRadio",pseudoDisabled:"pseudoDisabled"},features:[i._Bn([(0,q.FT)(t),(0,vt.wB)(t)]),i.qOj],ngContentSelectors:Oe,decls:7,vars:22,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","focus","hover","invalid"],[1,"t-view",3,"focusable","identityMatcher","item","name","nativeId","pseudoActive","pseudoDisabled","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","size","ngModel","ngModelChange","focusedChange","focusVisibleChange"],[1,"t-label"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,ke,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"label",1),i.TgZ(3,"tui-radio",2),i.NdJ("ngModelChange",function(t){return e.value=t})("focusedChange",function(t){return e.onFocused(t)})("focusVisibleChange",function(t){return e.onFocusVisible(t)}),i.qZA(),i.TgZ(4,"div",3),i.TgZ(5,"div",4),i.Hsn(6),i.qZA(),i.qZA(),i.qZA()),2&t&&(i.Q6J("ngIf",e.modeDirective&&i.lcZ(1,20,e.modeDirective.change$)),i.xp6(2),i.Q6J("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover)("invalid",e.computedInvalid),i.xp6(1),i.Q6J("focusable",e.focusable)("identityMatcher",e.identityMatcher)("item",e.item)("name",e.computedName||"")("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoDisabled",e.computedDisabled)("pseudoFocus",!1)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.computedInvalid)("readOnly",e.readOnly)("size",e.checkboxSize)("ngModel",e.value))},directives:[Ct.O5,pt.o,Ce,It.JJ,It.On],pipes:[Ct.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);display:inline-block;vertical-align:top;align-items:flex-start;border-radius:var(--tui-radius-m)}[data-size=xs][_nghost-%COMP%]{font:var(--tui-font-text-xs)}[data-size=m][_nghost-%COMP%], [data-size=l][_nghost-%COMP%]{font:var(--tui-font-text-m)}._disabled[_nghost-%COMP%], ._readonly[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:inherit;box-sizing:border-box;border-radius:inherit;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:0 1rem 0 0}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding-right:.5rem}[data-align=right][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{flex-direction:row-reverse;padding:0 0 0 1rem}[data-align=right][data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding-left:.5rem}[data-size=xs]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 .5rem}[data-size=xs]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:not(._focused):after{border-width:1px}[data-size=s]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 1rem}[data-size=m]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 1.5rem}[data-size=l]._hidden_input[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 2.25rem}[data-size=xs][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-xs) / 2 - .5rem) .25rem;transform:scale(.75)}[data-size=s][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-s) / 2 - .5rem) .5rem}[data-size=m][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-m) / 2 - .5rem) .75rem}[data-size=l][_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{margin:calc(var(--tui-height-l) / 2 - .75rem) 1rem}._hidden_input[_nghost-%COMP%] .t-view[_ngcontent-%COMP%]{position:absolute;height:1px;width:1px;margin:-1px;border:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);-webkit-clip-path:inset(0);clip-path:inset(0)}.t-label[_ngcontent-%COMP%]{display:flex;flex-grow:1;align-self:flex-start;align-items:center;overflow:hidden}[data-size=xs][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-xs)}[data-size=s][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-s)}[data-size=m][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-m)}[data-size=l][_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{min-height:var(--tui-height-l)}._hidden_input[_nghost-%COMP%] .t-label[_ngcontent-%COMP%]{text-align:center;justify-content:center}.t-content[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0}),t})(),Se=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,It.u5,xe,pt.W]]}),t})();var Pe=n(12130);const Ee=["*"];let Te=(()=>{class t{constructor(t){this.mode$=t,this.size="m",this.status="default",this.hoverable=!1}get padding(){var t;return this.isEmpty?"none":(0,Y.dt)(null===(t=this.value)||void 0===t?void 0:t.valueOf())?"m":"l"}get outputValue(){var t;const e=null===(t=this.value)||void 0===t?void 0:t.valueOf();return(0,Y.dt)(e)&&e>99?"99+":(0,Y.Pc)(this.value)?String(this.value):""}get isEmpty(){return!this.value&&0!==this.value}titleText({offsetWidth:t,scrollWidth:e}){return t{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez]]}),t})(),Ie=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const De=["focusableElement"];function Ne(t,e){if(1&t&&i._UZ(0,"tui-loader",7),2&t){const t=i.oxw();i.Q6J("inheritColor",!0)("showLoader",t.value)("size",t.loaderSize)}}function Le(t,e){1&t&&i._UZ(0,"tui-svg",10),2&t&&i.Q6J("src",e.polymorpheusOutlet)}const ze=function(t){return{$implicit:t}};function Fe(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,Le,1,1,"tui-svg",9),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconOn)("polymorpheusOutletContext",i.VKq(2,ze,t.size))}}function Re(t,e){if(1&t&&i._UZ(0,"tui-loader",7),2&t){const t=i.oxw();i.Q6J("inheritColor",!0)("showLoader",!t.value)("size",t.loaderSize)}}function je(t,e){1&t&&i._UZ(0,"tui-svg",12),2&t&&i.Q6J("src",e.polymorpheusOutlet)}function Be(t,e){if(1&t&&(i.TgZ(0,"span",8),i.YNc(1,je,1,1,"tui-svg",11),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconOff)("polymorpheusOutletContext",i.VKq(2,ze,t.size))}}const Ve=(0,Y.JN)({icons:{toggleOff:({$implicit:t})=>"m"===t?"tuiIconToggleOff":"tuiIconToggleOffLarge",toggleOn:({$implicit:t})=>"m"===t?"tuiIconToggleOn":"tuiIconToggleOnLarge"},appearances:{checked:ue.Nm.Primary,unchecked:ue.Nm.Secondary},singleColor:!1,showIcons:!1,size:"m"});let $e=(()=>{class t extends vt.M${constructor(t,e,n,i){super(t,e),this.modeDirective=n,this.options=i,this.singleColor=this.options.singleColor,this.showIcons=this.options.showIcons,this.showLoader=!1,this.size=this.options.size}get iconOn(){return this.options.icons.toggleOn}get iconOff(){return this.options.icons.toggleOff}get nativeFocusableElement(){return this.focusableElement?this.focusableElement.nativeElement:null}get focused(){return(0,wt.V8)(this.nativeFocusableElement)}get appearance(){return this.singleColor||this.value?this.options.appearances.checked:this.options.appearances.unchecked}get sizeM(){return"m"===this.size}get loaderSize(){return this.sizeM?"xs":"s"}get hostMode(){return this.modeDirective?this.modeDirective.mode:null}onChecked(t){this.value=t}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}getFallbackValue(){return!1}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(It.a5,10),i.Y36(i.sBO),i.Y36(he.w,8),i.Y36(Ve))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-toggle"]],viewQuery:function(t,e){if(1&t&&i.Gf(De,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:4,hostBindings:function(t,e){2&t&&(i.uIk("data-size",e.size)("data-mode",e.hostMode),i.ekj("_checked",e.value))},inputs:{singleColor:"singleColor",showIcons:"showIcons",showLoader:"showLoader",size:"size"},features:[i._Bn([(0,q.FT)(t),(0,vt.wB)(t)]),i.qOj],decls:9,vars:16,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid","readOnly"],[1,"t-toggle"],["class","t-loader",3,"inheritColor","showLoader","size",4,"ngIf"],["class","t-icon-wrapper",4,"ngIf"],[1,"t-circle"],["automation-id","tui-toggle__checkbox","role","switch","type","checkbox",1,"t-checkbox",3,"disabled","id","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""],[1,"t-loader",3,"inheritColor","showLoader","size"],[1,"t-icon-wrapper"],["automation-id","tui-toggle__check-icon","class","t-icon",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__check-icon",1,"t-icon",3,"src"],["automation-id","tui-toggle__cancel-icon","class","t-icon t-icon_off",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-toggle__cancel-icon",1,"t-icon","t-icon_off",3,"src"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.TgZ(1,"div",1),i.YNc(2,Ne,1,3,"tui-loader",2),i.YNc(3,Fe,2,4,"span",3),i._UZ(4,"div",4),i.YNc(5,Re,1,3,"tui-loader",2),i.YNc(6,Be,2,4,"span",3),i.qZA(),i.TgZ(7,"input",5,6),i.NdJ("tuiCheckedChange",function(t){return e.value=t})("tuiFocusedChange",function(t){return e.onFocused(t)})("tuiFocusVisibleChange",function(t){return e.onFocusVisible(t)}),i.qZA(),i.qZA()),2&t&&(i.Q6J("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.computedDisabled)("focus",e.computedFocusVisible)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),i.xp6(2),i.Q6J("ngIf",e.showLoader),i.xp6(1),i.Q6J("ngIf",e.showIcons&&!e.showLoader),i.xp6(2),i.Q6J("ngIf",e.showLoader),i.xp6(1),i.Q6J("ngIf",e.showIcons&&!e.showLoader),i.xp6(1),i.Q6J("disabled",e.disabled)("id",e.id)("tuiFocusable",e.focusable)("tuiChecked",e.value),i.uIk("aria-checked",e.value))},directives:[pt.o,Ct.O5,de.t,pe.t,fe.U,ge.q,bt.kM,xt.Li,Dt.PN],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle;overflow:hidden;border-radius:6.25rem}[data-size=m][_nghost-%COMP%]{width:2rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:3rem;height:1.5rem}.t-checkbox[_ngcontent-%COMP%]{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;height:100%;width:100%;opacity:0;cursor:pointer}.t-checkbox[_ngcontent-%COMP%]:-webkit-autofill, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-checkbox[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}._disabled[_nghost-%COMP%] .t-checkbox[_ngcontent-%COMP%]{pointer-events:none;cursor:default}.t-toggle[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;align-items:center;justify-content:center}[data-size=m][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:3rem;height:1rem;transform:translate(-1rem)}[data-size=l][_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{width:4.5rem;height:1.5rem;transform:translate(-1.5rem)}._checked[_nghost-%COMP%] .t-toggle[_ngcontent-%COMP%]{transform:translate(0)}.t-circle[_ngcontent-%COMP%]{margin:.125rem 0;flex-shrink:0;border-radius:100%;background-color:var(--tui-base-01)}._disabled[_nghost-%COMP%] .t-circle_light[_ngcontent-%COMP%]{opacity:.24}[data-size=m][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:.75rem;height:.75rem}[data-size=l][_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{width:1rem;height:1rem}._disabled[_nghost-%COMP%] .t-circle[_ngcontent-%COMP%]{background-color:var(--tui-base-01)}[_nghost-%COMP%]:not(._checked) .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-06)}[_nghost-%COMP%]:not(._checked)._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-base-05)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[_nghost-%COMP%]:not(._checked)[data-mode=onDark]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight] .t-loader[_ngcontent-%COMP%]{color:var(--tui-text-03)}[_nghost-%COMP%]:not(._checked)[data-mode=onLight]._disabled .t-loader[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:.75rem;margin:0 .2rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-loader[_ngcontent-%COMP%]{width:1rem;margin:0 .25rem}.t-icon-wrapper[_ngcontent-%COMP%]{display:flex}.t-icon[_ngcontent-%COMP%]{opacity:.8}.t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-06)}._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-base-05)}[data-mode=onDark][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-inverse-active)}[data-mode=onLight][_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight]._disabled[_nghost-%COMP%] .t-icon_off[_ngcontent-%COMP%]{color:var(--tui-clear-active)}[data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;transform:scale(.75)}[data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{margin:0 .125rem;width:1.5rem;height:1.5rem}[_nghost-%COMP%]:hover .t-icon[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0}),t})(),Ze=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,fe.F,pe.u,Ie,ge.c,de.S,pt.W,Dt.EI,bt.dS,xt.wq]]}),t})();var qe=n(64916),Ye=n(12628);function Ue(t,e){const[,n=""]=function(t){const e=String(t),[n,i]=e.split("e-");let r=e;if(i){const[,e]=n.split("."),o=Number(i)+((null==e?void 0:e.length)||0);r=t.toFixed(o)}return r}(t).split(".");return(0,Y.dt)(e)?n.slice(0,Math.max(0,e)):n}let He=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiValueAccessor",""]],features:[i._Bn([Jt.E2])]}),t})(),Ge=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var Je=n(52494);function Xe(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function Qe(t,e){if(1&t&&(i.TgZ(0,"div",6),i.YNc(1,Xe,2,1,"ng-container",7),i.qZA()),2&t){i.oxw();const t=i.MAs(9);i.xp6(1),i.Q6J("polymorpheusOutlet",t)}}function We(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"section",8),i.TgZ(1,"button",9),i.NdJ("click.prevent",function(){i.CHM(t);const e=i.oxw();return e.onArrow(e.step)})("mousedown.prevent",function(){i.CHM(t);const e=i.oxw();return null==e.nativeFocusableElement?null:e.nativeFocusableElement.focus()}),i._uU(2," + "),i.qZA(),i.TgZ(3,"button",9),i.NdJ("click.prevent",function(){i.CHM(t);const e=i.oxw();return e.onArrow(-e.step)})("mousedown.prevent",function(){i.CHM(t);const e=i.oxw();return null==e.nativeFocusableElement?null:e.nativeFocusableElement.focus()}),i._uU(4," - "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(),e=i.MAs(1);i.xp6(1),i.Q6J("appearance",e.appearance)("disabled",!t.canIncrement)("focusable",!1)("icon",t.options.icons.up),i.xp6(2),i.Q6J("appearance",e.appearance)("disabled",!t.canDecrement)("focusable",!1)("icon",t.options.icons.down)}}function Ke(t,e){1&t&&i.GkF(0)}function tn(t,e){1&t&&i.Hsn(0,2)}const en=["*",[["input"]],[["tuiContent"]]],nn=["*","input","tuiContent"],rn=(0,Y.JN)({icons:{up:"tuiIconPlus",down:"tuiIconMinus"},min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,step:0,decimal:"not-zero",precision:2}),on=new i.OlP("");let sn=(()=>{class t extends vt.F9{constructor(t,e,n,i,r,o,s,a){super(t,e,n),this.options=i,this.numberFormat=r,this.isIOS=o,this.textfieldSize=s,this.controller=a,this.unfinishedValue="",this.min=this.options.min,this.max=this.options.max,this.decimal=this.options.decimal,this.precision=this.options.precision,this.step=this.options.step,this.prefix="",this.postfix="",this.polymorpheusValueContent=U.Mm}get size(){return this.textfieldSize.size}get computedMin(){return this.computeMin(this.min,this.max)}get computedMax(){return this.computeMax(this.min,this.max)}get nativeFocusableElement(){return!this.textfield||this.computedDisabled?null:this.textfield.nativeFocusableElement}get focused(){var t;return!!(null===(t=this.textfield)||void 0===t?void 0:t.focused)}get isNegativeAllowed(){return this.computedMin<0}get inputMode(){return this.isIOS&&this.isNegativeAllowed?"text":"never"===this.decimal?"numeric":"decimal"}get calculatedMaxLength(){return 18+("never"!==this.decimal&&this.nativeValue.includes(this.numberFormat.decimalSeparator)?Math.min(this.precision+1,20):0)+this.numberFormat.thousandSeparator.repeat(5).length}get formattedValue(){return null!==this.value?this.getFormattedValue(this.value||0):""}get computedValue(){return this.focused?this.nativeValue:this.formattedValue}get canDecrement(){return this.interactive&&(this.value||0)>this.computedMin}get canIncrement(){return this.interactive&&(this.value||0)this.computedMax||(this.value=e)}onFocused(t){this.updateFocused(t);const e=this.unfinishedValue?(0,qe.vZ)(this.unfinishedValue,this.numberFormat.decimalSeparator):this.nativeNumberValue;if(this.unfinishedValue=null,Number.isNaN(e))return this.nativeValue=t?this.computedPrefix+this.computedPostfix:"",void(this.value=null);t||(this.value=e,this.nativeValue=this.formattedValue)}getFormattedValue(t){const e=Math.abs(t)%1>0;let n="always"===this.decimal||e&&"never"!==this.decimal?this.precision:0;const i=e?Ue(t,this.precision):"";return this.focused&&"always"!==this.decimal&&(n=i.length),this.computedPrefix+function(t,e={}){const{decimalLimit:n,decimalSeparator:i,thousandSeparator:r,zeroPadding:o,rounding:s}=Object.assign(Object.assign({},Vt.Jl),e),a=Number.isFinite(n)?(0,at.h0)({value:t,precision:n,method:s}):t,l=String(Math.floor(Math.abs(a)));let c=Ue(a,n);if(Number.isFinite(n))if(o){const t=Math.max(n-c.length,0);c=`${c}${"0".repeat(t)}`}else c=c.replace(/0*$/,"");const u=l.length%3;let h=(t<0?U.fv:"")+l.charAt(0);for(let d=1;d3&&(h+=r),h+=l.charAt(d);return c?h+i+c:h}(t,Object.assign(Object.assign({},this.numberFormat),{decimalLimit:n})).replace(U.fv,U.em)+this.computedPostfix}get isNativeValueNotFinished(){const t=this.nativeNumberValue;return t<0?t>this.computedMax:t[s.length,t.length-a.length])]})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(It.a5,10),i.Y36(i.sBO),i.Y36(on,8),i.Y36(rn),i.Y36(gt.HO),i.Y36(q.FA),i.Y36(dt.kI),i.Y36(dt.Cs))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-input-number"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,xt.Li,5),2&t){let t;i.iGM(t=i.CRH())&&(e.polymorpheusValueContent=t)}},viewQuery:function(t,e){if(1&t&&i.Gf(ht.yc,5),2&t){let t;i.iGM(t=i.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&i.NdJ("keydown.arrowDown",function(){return e.onArrow(-e.step)})("keydown.arrowUp",function(){return e.onArrow(e.step)}),2&t&&i.uIk("data-size",e.size)},inputs:{min:"min",max:"max",decimal:"decimal",precision:"precision",step:"step",prefix:"prefix",postfix:"postfix"},features:[i._Bn([(0,q.FT)(t),(0,vt.wB)(t),dt.Y0]),i.qOj],ngContentSelectors:nn,decls:10,vars:14,consts:[["tuiTextfieldPostfix","","tuiTextfieldPrefix","","tuiValueAccessor","",1,"t-textfield",3,"disabled","focusable","invalid","maskito","pseudoActive","pseudoFocus","pseudoHover","readOnly","value","focusedChange","valueChange"],["textfield",""],["ngProjectAs","tuiContent","class","t-value-content",5,["tuiContent"],4,"ngIf"],["class","t-buttons",4,"ngIf"],[4,"ngIf"],["valueContent",""],["ngProjectAs","tuiContent",5,["tuiContent"],1,"t-value-content"],[4,"polymorpheusOutlet"],[1,"t-buttons"],["size","s","tuiIconButton","","type","button",1,"t-button",3,"appearance","disabled","focusable","icon","click.prevent","mousedown.prevent"]],template:function(t,e){1&t&&(i.F$t(en),i.TgZ(0,"tui-primitive-textfield",0,1),i.NdJ("focusedChange",function(t){return e.onFocused(t)})("valueChange",function(t){return e.onValueChange(t)}),i.Hsn(2),i.Hsn(3,1,["ngProjectAs","input",5,["input"]]),i.YNc(4,Qe,2,1,"div",2),i.qZA(),i.YNc(5,We,5,8,"section",3),i.YNc(6,Ke,1,0,"ng-container",4),i.ALo(7,"async"),i.YNc(8,tn,1,0,"ng-template",null,5,i.W1O)),2&t&&(i.Q6J("disabled",e.computedDisabled)("focusable",e.focusable)("invalid",e.computedInvalid)("maskito",e.mask)("pseudoActive",e.pseudoActive)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("value",e.computedValue),i.xp6(4),i.Q6J("ngIf",e.polymorpheusValueContent.length),i.xp6(1),i.Q6J("ngIf",e.step),i.xp6(1),i.Q6J("ngIf",i.lcZ(7,12,e.polymorpheusValueContent.changes)))},directives:[ht.yc,ht.B1,dt.Tq,dt.A7,He,Je.ro,Ct.O5,xt.Li,Ye.v0],pipes:[Ct.Ov],styles:["[_nghost-%COMP%]{display:flex;border-radius:var(--tui-radius-m);text-align:left}.t-textfield[_ngcontent-%COMP%]{flex:1;max-width:100%;border-radius:inherit;text-align:inherit}.t-textfield[_ngcontent-%COMP%]:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.t-value-content[_ngcontent-%COMP%]{width:100%}.t-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;margin-left:.125rem;border-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%]{flex-direction:row-reverse}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:first-child{margin:0 0 0 .125rem;border-top-right-radius:inherit;border-bottom-right-radius:inherit}[data-size=s][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]:last-child{border-radius:0}[data-size=m][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-m) * .75)}[data-size=l][_ngcontent-%COMP%] + .t-buttons[_ngcontent-%COMP%] .t-button[_ngcontent-%COMP%]{width:calc(var(--tui-height-l) * .75)}.t-button[_ngcontent-%COMP%]{display:flex;flex:1;height:auto;border-radius:0}.t-button[_ngcontent-%COMP%]:first-child{margin-bottom:.125rem;border-top-right-radius:inherit}.t-button[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:inherit}"],changeDetection:0}),(0,y.gn)([st.UM],t.prototype,"computeMin",null),(0,y.gn)([st.UM],t.prototype,"computeMax",null),(0,y.gn)([st.UM],t.prototype,"calculateMask",null),t})(),an=(()=>{class t extends mt.D1{get value(){return this.host.computedValue}onValueChange(t){this.host.onValueChange(t)}ngDoCheck(){!this.host.nativeFocusableElement||(this.host.nativeFocusableElement.inputMode=this.host.inputMode,this.host.nativeFocusableElement.maxLength=this.host.nativeFocusableElement.maxLength>0?this.host.nativeFocusableElement.maxLength:this.host.calculatedMaxLength)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["tui-input-number"]],features:[i._Bn([(0,gt.cp)(t)]),i.qOj]}),t})(),ln=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,Je.U5,ht.KW,dt.cn,Ge,xt.wq,Ye.fN]]}),t})();var cn=n(86561),un=n(64493),hn=n(87941),dn=n(98952),pn=n(29856);const fn=new i.OlP("MutationObserver config");let gn=(()=>{class t extends pn.y{constructor({nativeElement:t},e){super(n=>{const i=new MutationObserver(t=>{n.next(t)});return i.observe(t,e),()=>{i.disconnect()}})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(fn))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();var mn=n(54487),vn=n(74235),_n=n(25917),yn=n(54395),bn=n(68307),wn=n(11557);const Cn=["tuiTab",""];function xn(t,e){1&t&&i.GkF(0)}const kn=["*"];function On(t,e){1&t&&i.GkF(0)}function Mn(t,e){if(1&t&&i._UZ(0,"tui-underline",2),2&t){const t=i.oxw();i.Q6J("element",t.activeElement)}}function Sn(t,e){1&t&&i.GkF(0)}function Pn(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function En(t,e){if(1&t&&(i.TgZ(0,"div"),i.GkF(1,12),i.qZA()),2&t){const t=i.oxw(),e=t.index,n=t.$implicit,r=i.oxw();i.ekj("t-overflown",r.isOverflown(e)),i.xp6(1),i.Q6J("ngTemplateOutlet",n)}}function Tn(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Pn,1,1,"ng-container",10),i.YNc(2,En,2,3,"ng-template",null,11,i.W1O),i.BQk()),2&t){const t=e.index,n=i.MAs(3),r=i.oxw();i.xp6(1),i.Q6J("ngIf",t<=r.lastVisibleIndex)("ngIfElse",n)}}function An(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function In(t,e){if(1&t&&(i._uU(0),i.ALo(1,"async"),i._UZ(2,"tui-svg",13)),2&t){const t=i.oxw();i.hij(" ",i.lcZ(1,4,t.moreWord$)," "),i.xp6(2),i.ekj("t-icon_rotated",t.open),i.Q6J("src",t.arrowOptions.iconSmall)}}function Dn(t,e){if(1&t&&i.GkF(0,12),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t)}}function Nn(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",17),i.NdJ("tui-tab-activate",function(){const e=i.CHM(t).index;return i.oxw(2).onClick(e)}),i.YNc(1,Dn,1,1,"ng-container",18),i.qZA()}if(2&t){const t=e.index,n=i.oxw(2);i.xp6(1),i.Q6J("ngIf",n.shouldShow(t))}}function Ln(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",14,15),i.NdJ("keydown.arrowDown.prevent",function(e){i.CHM(t);const n=i.MAs(1);return i.oxw().onWrapperArrow(e,n,!1)})("keydown.arrowUp.prevent",function(e){i.CHM(t);const n=i.MAs(1);return i.oxw().onWrapperArrow(e,n,!0)}),i.YNc(2,Nn,2,1,"div",16),i.qZA()}if(2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngForOf",t.items)}}function zn(t,e){if(1&t&&i._UZ(0,"tui-underline",19),2&t){const t=i.oxw();i.Q6J("element",t.activeElement)}}const Fn=new i.OlP("[TUI_TAB_EVENT]"),Rn=[I.a3,I.ku,hn.Ok,{provide:Fn,deps:[i.SBq,hn.Ok,[new i.FiY,gn],[new i.FiY,cn.Od]],useFactory:({nativeElement:t},e,n,i)=>{const r=i&&n?n.pipe((0,f.h)(()=>i.isActive)):qt.E;return(0,c.T)(r,e.pipe((0,f.h)(mn.y)),t.matches("button")?(0,lt.mL)(t,"click"):qt.E).pipe((0,h.U)(()=>t.dispatchEvent(new CustomEvent("tui-tab-activate",{bubbles:!0}))))}},Pe.CV];let jn=(()=>{class t{constructor(t,e,n,i,r,o){this.routerLinkActive=t,this.el=e,this.mode$=n,this.event$=i,this.margin=r,this.focusVisible=!1,o.subscribe(t=>{this.focusVisible=t})}get isActive(){return!!this.routerLinkActive&&this.routerLinkActive.isActive}ngOnDestroy(){(0,wt.V8)(this.el.nativeElement)&&this.el.nativeElement.blur()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(cn.Od,8),i.Y36(i.SBq),i.Y36(gt.Au),i.Y36(Fn),i.Y36(_t.WO),i.Y36(I.ku))},t.\u0275cmp=i.Xpm({type:t,selectors:[["a","tuiTab","",3,"routerLink",""],["a","tuiTab","","routerLink","","routerLinkActive",""],["button","tuiTab",""]],hostAttrs:["type","button"],hostVars:8,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",function(){return e.mode$}),2&t&&(i.Udp("cursor","pointer")("--tui-tab-margin",e.margin,"px"),i.ekj("_focus-visible",e.focusVisible)("_active",e.isActive))},features:[i._Bn(Rn)],attrs:Cn,ngContentSelectors:kn,decls:4,vars:3,consts:[[4,"ngIf"],[1,"t-highlight"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,xn,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"span",1),i.Hsn(3),i.qZA()),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.event$))},directives:[Ct.O5],pipes:[Ct.Ov],styles:['._underline[_nghost-%COMP%]:hover, ._underline [_nghost-%COMP%]:hover{box-shadow:inset 0 -2px var(--tui-base-03)}tui-tabs > [_nghost-%COMP%]:first-child, tui-tabs > [_nghost-%COMP%]:first-child, [tuiTabs] > [_nghost-%COMP%]:first-child, [tuiTabs] > [_nghost-%COMP%]:first-child, tui-tabs > :first-child[_nghost-%COMP%], tui-tabs > :first-child [_nghost-%COMP%], [tuiTabs] > :first-child[_nghost-%COMP%], [tuiTabs] > :first-child [_nghost-%COMP%]{margin-left:0}[_nghost-%COMP%]{transition-property:color,box-shadow,opacity,background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;position:relative;display:flex;flex-shrink:0;height:100%;box-sizing:border-box;justify-content:space-between;align-items:center;white-space:nowrap;cursor:pointer;outline:none;text-decoration:none;color:inherit;margin-left:var(--tui-tab-margin, 1.5rem)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);pointer-events:none}[_nghost-%COMP%]:not([data-mode])._active{opacity:1;color:var(--tui-text-01);box-shadow:none}[data-mode=onDark][_nghost-%COMP%]{color:#ffffffb8}[data-mode=onDark][_nghost-%COMP%]:hover, [data-mode=onDark]._active[_nghost-%COMP%]{color:#fff}[data-mode=onDark]._focus-visible[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{background:var(--tui-clear-inverse);color:var(--tui-text-01)}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight][_nghost-%COMP%]:hover, [data-mode=onLight]._active[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._focus-visible[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{background:var(--tui-text-01);color:#fff}._focus-visible[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{background:var(--tui-selection)}._android[_nghost-%COMP%]{transition-property:opacity;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;height:3rem;flex:1;flex-shrink:0;justify-content:center;margin:0;text-transform:uppercase;color:var(--tui-base-09);opacity:.5;font-size:.875rem;font-weight:500;letter-spacing:-.008125rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif}._android[_nghost-%COMP%]:hover{box-shadow:none}._android._active[_nghost-%COMP%]{opacity:1;color:var(--tui-base-09)}._android[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{width:auto}._ios[_nghost-%COMP%]{height:1.75rem;flex:1;flex-shrink:0;justify-content:center;margin:0;color:var(--tui-base-01);opacity:1;font-size:.8125rem;font-weight:500;letter-spacing:-.005rem;font-family:-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif}._ios[_nghost-%COMP%]:hover{box-shadow:none}._ios._active[_nghost-%COMP%]{font-size:.875rem;font-weight:600;color:var(--tui-link)}._ios[_nghost-%COMP%] .t-highlight[_ngcontent-%COMP%]{width:auto}@media (hover: hover){[_nghost-%COMP%]:hover{color:var(--tui-text-01)}}.t-highlight[_ngcontent-%COMP%]{display:inline-flex;width:100%;align-items:center;justify-content:inherit}.t-highlight[_ngcontent-%COMP%] >*{flex-shrink:0}tui-tabs[data-vertical][_nghost-%COMP%], tui-tabs[data-vertical] [_nghost-%COMP%], [tuiTabs][data-vertical][_nghost-%COMP%], [tuiTabs][data-vertical] [_nghost-%COMP%]{min-height:2.75rem;height:auto;white-space:normal;margin:0;text-align:left;padding:.25rem 1.25rem .25rem 0}tui-tabs[data-vertical][_nghost-%COMP%]:after, tui-tabs[data-vertical] [_nghost-%COMP%]:after, [tuiTabs][data-vertical][_nghost-%COMP%]:after, [tuiTabs][data-vertical] [_nghost-%COMP%]:after{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;content:"";position:absolute;top:0;bottom:0;right:0;width:2px;background:var(--tui-primary);transform:scaleX(0);transform-origin:right}tui-tabs[data-vertical][_nghost-%COMP%]:hover, tui-tabs[data-vertical] [_nghost-%COMP%]:hover, [tuiTabs][data-vertical][_nghost-%COMP%]:hover, [tuiTabs][data-vertical] [_nghost-%COMP%]:hover{box-shadow:inset -2px 0 var(--tui-base-03)}tui-tabs[data-vertical]._active[_nghost-%COMP%]:after, tui-tabs[data-vertical] ._active[_nghost-%COMP%]:after, [tuiTabs][data-vertical]._active[_nghost-%COMP%]:after, [tuiTabs][data-vertical] ._active[_nghost-%COMP%]:after{transform:none}tui-tabs[data-vertical="right"][_nghost-%COMP%], tui-tabs[data-vertical="right"] [_nghost-%COMP%], [tuiTabs][data-vertical="right"][_nghost-%COMP%], [tuiTabs][data-vertical="right"] [_nghost-%COMP%]{text-align:right;padding:.25rem 0 .25rem 1.25rem}tui-tabs[data-vertical="right"][_nghost-%COMP%]:after, tui-tabs[data-vertical="right"] [_nghost-%COMP%]:after, [tuiTabs][data-vertical="right"][_nghost-%COMP%]:after, [tuiTabs][data-vertical="right"] [_nghost-%COMP%]:after{right:auto;left:0;transform-origin:left}tui-tabs[data-vertical="right"][_nghost-%COMP%]:hover, tui-tabs[data-vertical="right"] [_nghost-%COMP%]:hover, [tuiTabs][data-vertical="right"][_nghost-%COMP%]:hover, [tuiTabs][data-vertical="right"] [_nghost-%COMP%]:hover{box-shadow:inset 2px 0 var(--tui-base-03)}'],changeDetection:0}),t})(),Bn=(()=>{class t{constructor(t){this.el=t,this.activeItemIndex=0,this.activeItemIndexChange=new i.vpe}get tabs(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiTab]"))}get activeElement(){return this.tabs[this.activeItemIndex]||null}onActivate(t,e){const n=this.tabs.findIndex(t=>t===e);t.stopPropagation(),n!==this.activeItemIndex&&(this.activeItemIndexChange.emit(n),this.activeItemIndex=n)}moveFocus(t,e){const{tabs:n}=this;(0,wt.VR)(n.indexOf(t),n,e)}ngAfterViewChecked(){const{tabs:t,activeElement:e}=this;t.forEach(t=>{const n=t===e;t.classList.toggle("_active",n),t.setAttribute("tabIndex",n?"0":"-1")})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["tui-tabs"],["nav","tuiTabs",""]],hostBindings:function(t,e){1&t&&i.NdJ("tui-tab-activate",function(t){return e.onActivate(t,t.target)})},inputs:{activeItemIndex:"activeItemIndex"},outputs:{activeItemIndexChange:"activeItemIndexChange"}}),t})();const Vn=(0,Y.JN)({underline:!0,exposeActive:!0,itemsLimit:1/0,minMoreWidth:0});let $n=(()=>{class t{constructor({nativeElement:t},e,n,i){this.zone=e,this.animationFrame$=n,this.mode$=i,this.el$=new vn.t(1),this.refresh$=this.el$.pipe((0,u.w)(t=>t?this.animationFrame$.pipe((0,h.U)(()=>t),(0,lt.fL)(this.zone)):(0,_n.of)(null)),(0,_.B)()),this.transition$=(0,wn.Gt)(this.el$.pipe((0,h.U)(t=>t&&"all"),(0,yn.b)(50))),this.transform$=(0,wn.Gt)(this.refresh$.pipe((0,h.U)(t=>t?`translate3d(${t.offsetLeft}px, 0, 0)`:null))),this.width$=(0,wn.Gt)(this.refresh$.pipe((0,h.U)(t=>(null==t?void 0:t.clientWidth)||0))),t["$.style.transitionProperty"]=this.transition$,t["$.style.transform"]=this.transform$,t["$.style.width.px"]=this.width$}set element(t){this.el$.next(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Z.L1),i.Y36(gt.Au))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-underline"]],hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",function(){return e.mode$})("$.style.transitionProperty",function(){return e.transition$()})("$.style.transform",function(){return e.transform$()})("$.style.width.px",function(){return e.width$()})},inputs:{element:"element"},features:[i._Bn([Pe.CV])],decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%]{transition-property:all;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;left:0;height:100%;color:var(--tui-primary);transform:scale(0);box-shadow:inset 0 -.1875rem 0 -.0625rem;transition-property:none;pointer-events:none}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}"],changeDetection:0}),t})(),Zn=(()=>{class t{constructor(t,e,n,i,r){this.options=t,this.el=e,this.tabs=n,this.children=U.Mm,this.underline=this.options.underline,r.pipe((0,f.h)(()=>this.underline)).subscribe(()=>{i.detectChanges()})}get activeItemIndex(){return this.tabs.activeItemIndex}set activeItemIndex(t){this.tabs.activeItemIndex=t}get activeElement(){return this.tabs.activeElement}onKeyDownArrow(t,e){this.tabs.moveFocus(t,e)}ngAfterViewChecked(){this.scrollTo(this.tabs.activeItemIndex)}scrollTo(t){const e=this.tabs.tabs[t];if(!e)return;const{offsetLeft:n,offsetWidth:i}=e,{nativeElement:r}=this.el;nr.scrollLeft+r.offsetWidth&&(r.scrollLeft=n+i-r.offsetWidth)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Vn),i.Y36(i.SBq),i.Y36(Bn),i.Y36(i.sBO),i.Y36(I.tl))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-tabs",3,"vertical",""],["nav","tuiTabs","",3,"vertical",""]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,jn,4),2&t){let t;i.iGM(t=i.CRH())&&(e.children=t)}},hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("keydown.arrowRight.prevent",function(t){return e.onKeyDownArrow(t.target,1)})("keydown.arrowLeft.prevent",function(t){return e.onKeyDownArrow(t.target,-1)}),2&t&&i.ekj("_underline",e.underline)},inputs:{underline:"underline"},features:[i._Bn([I.a3,I.tl,gn,{provide:fn,useValue:{childList:!0}}])],ngContentSelectors:kn,decls:4,vars:4,consts:[[4,"ngIf"],["class","t-underline",3,"element",4,"ngIf"],[1,"t-underline",3,"element"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,On,1,0,"ng-container",0),i.ALo(1,"async"),i.Hsn(2),i.YNc(3,Mn,1,1,"tui-underline",1)),2&t&&(i.Q6J("ngIf",i.lcZ(1,2,e.children.changes)),i.xp6(3),i.Q6J("ngIf",e.underline))},directives:[Ct.O5,$n],pipes:[Ct.Ov],styles:["[_nghost-%COMP%]{scrollbar-width:none;-ms-overflow-style:none;position:relative;z-index:0;display:flex;font:var(--tui-font-text-m);height:var(--tui-height-l);color:var(--tui-text-02);box-shadow:inset 0 -1px var(--tui-base-03);overflow:auto}[_nghost-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.t-underline[_ngcontent-%COMP%]{z-index:-1}"],changeDetection:0}),(0,y.gn)([st.UM],t.prototype,"scrollTo",null),t})();const qn=new i.OlP("[TUI_TABS_REFRESH]"),Yn=[I.tl,I.a3,gn,(0,dn.fx)({align:"right"}),{provide:fn,useValue:{childList:!0,subtree:!0,characterData:!0}},{provide:qn,deps:[I.tl,gn,I.a3,Ct.K0,i.SBq,i.sBO],useFactory:(t,e,n,{body:i},{nativeElement:r},o)=>(0,c.T)(t,e.pipe((0,bn.b)(()=>o.detectChanges()))).pipe((0,f.h)(()=>i.contains(r)),(0,yn.b)(0),(0,d.O)(null),(0,p.R)(n))}];let Un=(()=>{class t{constructor(t,e,n,r,o,s,a){this.options=t,this.margin=e,this.refresh$=n,this.el=r,this.cdr=o,this.moreWord$=s,this.arrowOptions=a,this.maxIndex=1/0,this.underline=this.options.underline,this.itemsLimit=this.options.itemsLimit,this.activeItemIndexChange=new i.vpe,this.items=U.Mm,this.activeItemIndex=0,this.open=!1}set itemIndex(t){this.activeItemIndex=t,this.maxIndex=this.getMaxIndex()}get tabs(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiTab]"))}get activeElement(){var t;const{tabs:e}=this,n=(0,at.Ki)(this.activeItemIndex||0,0,e.length-2);return this.options.exposeActive||this.lastVisibleIndex>=n?e[n]||null:(null===(t=this.moreButton)||void 0===t?void 0:t.nativeElement)||null}get isMoreAlone(){return this.lastVisibleIndex<0&&!this.options.exposeActive}get isMoreVisible(){return this.lastVisibleIndex=this.items.length?this.maxIndex:Math.min(this.itemsLimit-(this.itemsLimit-1>this.activeItemIndex||!this.options.exposeActive?1:2),this.maxIndex)}ngAfterViewInit(){this.refresh$.pipe((0,h.U)(()=>this.getMaxIndex()),(0,f.h)(t=>this.maxIndex!==t)).subscribe(t=>{this.maxIndex=t,this.cdr.detectChanges()})}onActiveItemIndexChange(t){this.updateActiveItemIndex(t)}onClick(t){this.open=!1,this.focusMore(),this.updateActiveItemIndex(t)}onArrowRight(t){(0,un.ve)(t.target)&&(0,wt.V8)(t.target)&&this.focusMore()}onArrowLeft(){const{tabs:t}=this;let e=t.length-2;for(;e>=0;){if(t[e].focus(),(0,wt.V8)(t[e]))return;e--}}onWrapperArrow(t,e,n){const i=(0,wt.BW)({initial:t.target,root:e,previous:n});i&&i.focus()}isOverflown(t){return t!==this.activeItemIndex||!this.options.exposeActive}shouldShow(t){return t>this.lastVisibleIndex&&this.isOverflown(t)}focusMore(){this.moreButton&&this.moreButton.nativeElement.focus()}getMaxIndex(){const{tabs:t,activeItemIndex:e,margin:n}=this;if(t.length<2)return 0;const{exposeActive:i,minMoreWidth:r}=this.options,{clientWidth:o}=this.el.nativeElement,s=t[e]?t[e].scrollWidth:0,a=Math.max(t[t.length-1].scrollWidth,r);let l=t.length-2,c=t.reduce((t,{scrollWidth:e})=>t+e,0)+l*n-t[t.length-1].scrollWidth;if(c<=o)return 1/0;for(;l;)if(c-=t[l].scrollWidth+n,l--,c+(i&&e>l?s+n:0)+a+n+(0,at.HW)(this.maxIndex===l-1){class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,xt.wq,ut.jh,Dt.EI,pe.u,E]]}),t})();var Gn=n(59328);const Jn=["wrapper"];function Xn(t,e){if(1&t&&(i.TgZ(0,"tui-loader",4),i.GkF(1,5),i.qZA()),2&t){const t=i.oxw(2);i.Q6J("overlay",!0)("showLoader",t.loading),i.xp6(1),i.Q6J("ngTemplateOutlet",t.content)}}function Qn(t,e){if(1&t&&(i.ynx(0),i.Hsn(1),i.YNc(2,Xn,2,3,"tui-loader",3),i.BQk()),2&t){const t=i.oxw();i.xp6(2),i.Q6J("ngIf",t.async)("ngIfElse",t.content)}}const Wn=["*"];let Kn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiExpandContent",""]]}),t})();let ti=(()=>{class t{constructor(t){this.cdr=t,this.state=0,this.async=!1,this.content=null,this.expanded=null}set expandedSetter(t){if(null!==this.expanded)return 0!==this.state?(this.expanded=t,void(this.state=3)):(this.expanded=t,void this.retrigger(this.async&&t?1:3));this.expanded=t}get overflow(){return 0!==this.state}get loading(){return!!this.expanded&&this.async&&1===this.state}get height(){const{expanded:t,state:e,contentWrapper:n}=this;return t&&2===e||!t&&3===e?0:n&&(!t&&2===e||t&&3===e)?n.nativeElement.offsetHeight:n&&t&&1===e?Math.max(n.nativeElement.offsetHeight,48):null}get contentVisible(){return this.expanded||0!==this.state}onTransitionEnd({propertyName:t}){"opacity"===t&&3===this.state&&(this.state=0)}onExpandLoaded(t){t.stopPropagation(),1===this.state&&this.retrigger(3)}retrigger(t){this.state=2,setTimeout(()=>{2===this.state&&(this.state=t,this.cdr.markForCheck())})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-expand"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,Kn,5,i.Rgc),2&t){let t;i.iGM(t=i.CRH())&&(e.content=t.first)}},viewQuery:function(t,e){if(1&t&&i.Gf(Jn,5),2&t){let t;i.iGM(t=i.CRH())&&(e.contentWrapper=t.first)}},hostVars:9,hostBindings:function(t,e){1&t&&i.NdJ("transitionend.self",function(t){return e.onTransitionEnd(t)})("tui-expand-loaded",function(t){return e.onExpandLoaded(t)}),2&t&&(i.uIk("aria-expanded",e.expanded),i.Udp("height",e.height,"px"),i.ekj("_expanded",e.expanded)("_overflow",e.overflow)("_loading",e.loading))},inputs:{async:"async",expandedSetter:["expanded","expandedSetter"]},ngContentSelectors:Wn,decls:3,vars:3,consts:[[1,"t-wrapper"],["wrapper",""],[4,"ngIf"],["size","l",3,"overlay","showLoader",4,"ngIf","ngIfElse"],["size","l",3,"overlay","showLoader"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0,1),i.YNc(2,Qn,3,2,"ng-container",2),i.qZA()),2&t&&(i.Q6J("@tuiParentAnimation",void 0)("@.disabled",e.overflow),i.xp6(2),i.Q6J("ngIf",e.contentVisible))},directives:[Ct.O5,bt.kM,Ct.tP],styles:['[_nghost-%COMP%]{display:block;transition-property:opacity,height,visibility;transition-duration:var(--tui-duration, .3s);opacity:0}._overflow[_nghost-%COMP%]{overflow:hidden}._expanded[_nghost-%COMP%]{opacity:1;transform:translate(0)}._loading[_nghost-%COMP%]{opacity:.99}.t-wrapper[_ngcontent-%COMP%]:before, .t-wrapper[_ngcontent-%COMP%]:after{content:"";display:table}'],data:{animation:[U.Kx]},changeDetection:0}),t})(),ei=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,bt.dS]]}),t})();var ni=n(95974);const ii=["focusableElement"];function ri(t,e){if(1&t&&i._UZ(0,"tui-svg",9),2&t){const t=e.polymorpheusOutlet,n=i.oxw(2);i.ekj("t-icon_open",n.open),i.Q6J("src",t)}}function oi(t,e){if(1&t&&(i.ynx(0),i.YNc(1,ri,1,3,"tui-svg",8),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.options.iconLarge)}}function si(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function ai(t,e){if(1&t&&(i.TgZ(0,"div",11),i.YNc(1,si,2,1,"ng-container",12),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("polymorpheusOutlet",t.lazyContent)}}function li(t,e){if(1&t&&i.YNc(0,ai,2,1,"div",10),2&t){const t=i.oxw();i.Q6J("ngIf",t.lazyContent)}}function ci(t,e){1&t&&(i.TgZ(0,"div",13),i.Hsn(1,1),i.qZA())}const ui=["*",[["","tuiAccordionItemContent",""]]],hi=["*","[tuiAccordionItemContent]"],di=[[["tui-accordion-item"]]],pi=["tui-accordion-item"];let fi=(()=>{class t extends xt.GL{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Rgc,2),i.Y36(i.sBO))},t.\u0275dir=i.lG2({type:t,selectors:[["ng-template","tuiAccordionItemContent",""]],features:[i.qOj]}),t})(),gi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiAccordionItemContent","",5,"ng-template"]]}),t})(),mi=(()=>{class t extends vt.Xn{constructor(t,e,n){super(),this.cdr=t,this.mode$=e,this.options=n,this.noPadding=!1,this.showArrow=!0,this.borders="all",this.size="m",this.disabled=!1,this.disableHover=!1,this.open=!1,this.async=!1,this.openChange=new i.vpe}get nativeFocusableElement(){return this.disabled||!this.focusableElement?null:this.focusableElement.nativeElement}get focused(){return(0,wt.V8)(this.nativeFocusableElement)}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}onRowToggle(){this.disabled||this.updateOpen(!this.open)}onItemKeyDownEsc(t){!this.open||(t.stopPropagation(),this.updateOpen(!1))}close(){this.updateOpen(!1),this.cdr.markForCheck()}updateOpen(t){this.open!==t&&(this.open=t,this.openChange.emit(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(gt.Au),i.Y36(Ft))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-accordion-item"]],contentQueries:function(t,e,n){if(1&t&&(i.Suo(n,gi,5),i.Suo(n,fi,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.eagerContent=t.first),i.iGM(t=i.CRH())&&(e.lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&i.Gf(ii,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:8,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",function(){return e.mode$}),2&t&&(i.uIk("data-borders",e.borders)("data-size",e.size),i.ekj("_no-padding",e.noPadding)("_has-arrow",e.showArrow)("_disabled",e.disabled))},inputs:{noPadding:"noPadding",showArrow:"showArrow",borders:"borders",size:"size",disabled:"disabled",disableHover:"disableHover",open:"open",async:"async"},outputs:{openChange:"openChange"},features:[i._Bn([(0,q.FT)(t),Pe.CV]),i.qOj],ngContentSelectors:hi,decls:9,vars:10,consts:[["automation-id","tui-accordion__item-wrapper",1,"t-wrapper"],["automation-id","tui-accordion__item-header","type","button",1,"t-header",3,"disabled","tuiFocusable","click","keydown.esc","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""],["automation-id","tui-accordion__item-title",1,"t-title"],[4,"ngIf"],[3,"async","expanded"],["tuiExpandContent",""],["class","t-content",4,"ngIf"],["automation-id","tui-accordion__item-arrow","class","t-icon",3,"t-icon_open","src",4,"polymorpheusOutlet"],["automation-id","tui-accordion__item-arrow",1,"t-icon",3,"src"],["automation-id","tui-accordion__item-content","class","t-content",4,"ngIf"],["automation-id","tui-accordion__item-content",1,"t-content"],[4,"polymorpheusOutlet"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(ui),i.TgZ(0,"div",0),i.TgZ(1,"button",1,2),i.NdJ("click",function(){return e.onRowToggle()})("keydown.esc",function(t){return e.onItemKeyDownEsc(t)})("tuiFocusedChange",function(t){return e.onFocused(t)})("tuiFocusVisibleChange",function(t){return e.onFocusVisible(t)}),i.TgZ(3,"span",3),i.Hsn(4),i.qZA(),i.YNc(5,oi,2,1,"ng-container",4),i.qZA(),i.TgZ(6,"tui-expand",5),i.YNc(7,li,1,1,"ng-template",6),i.YNc(8,ci,2,0,"div",7),i.qZA(),i.qZA()),2&t&&(i.xp6(1),i.ekj("t-header_hoverable",!e.disableHover)("t-header_open",e.open),i.Q6J("disabled",e.computedDisabled)("tuiFocusable",e.computedFocusable),i.xp6(4),i.Q6J("ngIf",e.showArrow),i.xp6(1),i.Q6J("async",e.async)("expanded",e.open),i.xp6(2),i.Q6J("ngIf",e.eagerContent))},directives:[pe.t,fe.U,ge.q,Ct.O5,ti,Kn,xt.Li,Dt.PN],styles:['[_nghost-%COMP%]{position:relative;display:block;overflow:hidden;border-radius:var(--tui-radius-l)}[data-borders=top-bottom][_nghost-%COMP%]{border-radius:0!important}.t-wrapper[_ngcontent-%COMP%]{position:relative;border-radius:inherit}.t-wrapper[_ngcontent-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-sizing:border-box;border-radius:inherit;border:1px solid var(--tui-base-04);pointer-events:none}[_nghost-%COMP%]:not([data-borders]) .t-wrapper[_ngcontent-%COMP%]:after{border-width:0}[data-borders=all][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-width:1px}[data-borders=top-bottom][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-left-width:0;border-right-width:0}[data-borders=top][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-left-width:0;border-right-width:0;border-bottom-width:0}[data-borders=bottom][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-left-width:0;border-right-width:0;border-top-width:0}[data-mode=onDark][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-color:var(--tui-base-03)}[data-mode=onLight][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-color:var(--tui-text-01)}._focus-visible[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border:2px solid var(--tui-focus)}[_nghost-%COMP%]:not([data-mode]) .t-wrapper[_ngcontent-%COMP%]{background:var(--tui-base-01)}.t-header[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;width:100%;font:var(--tui-font-text-l);align-items:center;box-sizing:border-box;border-bottom:1px solid var(--tui-base-04);min-height:var(--tui-height-l);padding:.75rem 1.25rem;color:var(--tui-text-01);cursor:pointer;text-align:left;outline:none}[data-mode=onDark][_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{color:var(--tui-text-01-night);border-color:var(--tui-base-03)}[data-mode=onLight][_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{border-color:var(--tui-text-01)}[_nghost-%COMP%]:not([data-borders]) .t-header[_ngcontent-%COMP%]{border-bottom-width:0;box-shadow:none}._has-arrow[_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{padding-right:.75rem}[data-mode=onDark][_nghost-%COMP%] .t-header_open[_ngcontent-%COMP%]{background:var(--tui-clear-inverse)}[data-mode=onLight][_nghost-%COMP%] .t-header_open[_ngcontent-%COMP%]{background:var(--tui-clear)}[data-size=s][_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{font:var(--tui-font-text-m);min-height:var(--tui-height-m);padding:.625rem .75rem .625rem 1rem}._no-padding[_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{padding-left:0;padding-right:0}._disabled[_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{cursor:default}[_nghost-%COMP%]:hover:not([data-mode]) .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-base-02)}[_nghost-%COMP%]:hover[data-mode=onDark] .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-clear-inverse)}[_nghost-%COMP%]:hover[data-mode=onLight] .t-header_hoverable[_ngcontent-%COMP%]{background:var(--tui-clear)}.t-title[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:0;flex-grow:1}._has-arrow[_nghost-%COMP%] .t-title[_ngcontent-%COMP%]{margin-right:.5rem}.t-icon[_ngcontent-%COMP%]{transition-property:transform,color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:1.5rem;height:1.5rem;margin-left:auto;color:var(--tui-base-06)}.t-icon_open[_ngcontent-%COMP%]{transform:rotate(180deg)}[data-mode][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[_nghost-%COMP%]:hover[data-mode] .t-icon[_ngcontent-%COMP%]{opacity:.8}[data-mode=onDark][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onLight][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{color:var(--tui-text-01)}[_nghost-%COMP%]:hover:not([data-mode]) .t-icon[_ngcontent-%COMP%]{color:var(--tui-base-07)}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-m);padding:1.25rem;word-wrap:break-word}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);padding:1rem}'],changeDetection:0}),t})(),vi=(()=>{class t{constructor(t){this.destroy$=t,this.closeOthers=!0,this.rounded=!0,this.accordionItems=U.Mm}ngAfterContentInit(){const{accordionItems:t}=this,e=(0,lt.ll)(t),n=e.pipe((0,Gn.G)(),(0,h.U)(([t,e])=>e.find(e=>!t.includes(e)&&e.open)),(0,f.h)(Y.Pc));(0,c.T)(e.pipe((0,u.w)(t=>(0,c.T)(...t.map(t=>t.openChange.pipe((0,f.h)(mn.y),(0,h.U)(()=>t)))))),n).pipe((0,f.h)(()=>this.closeOthers),(0,p.R)(this.destroy$)).subscribe(e=>{t.forEach(t=>{e!==t&&t.close()})})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(I.a3,2))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-accordion"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,mi,4),2&t){let t;i.iGM(t=i.CRH())&&(e.accordionItems=t)}},inputs:{closeOthers:"closeOthers",rounded:"rounded"},features:[i._Bn([I.a3])],ngContentSelectors:pi,decls:2,vars:2,consts:[["automation-id","tui-accordion__group","orientation","vertical","size","l","tuiGroup","",1,"t-group",3,"collapsed","rounded"]],template:function(t,e){1&t&&(i.F$t(di),i.TgZ(0,"div",0),i.Hsn(1),i.qZA()),2&t&&i.Q6J("collapsed",!0)("rounded",e.rounded)},directives:[ni.gZ],styles:["[_nghost-%COMP%]{display:block}.t-group[_ngcontent-%COMP%]{display:flex}"],changeDetection:0}),t})(),_i=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,fe.F,ge.c,pe.u,xt.wq,Dt.EI,ni.n6,ei]]}),t})();const yi=["input"];function bi(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function wi(t,e){if(1&t&&(i.TgZ(0,"div",6),i.YNc(1,bi,2,1,"ng-container",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.leftContent)}}function Ci(t,e){if(1&t&&i._UZ(0,"tui-loader",8),2&t){const t=i.oxw();i.Q6J("inheritColor",!0)("size",t.loaderSize)}}function xi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-svg",9),i.NdJ("click",function(e){return i.CHM(t),i.oxw().remove(e)})("mousedown.stop.prevent.silent",function(){return 0}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("src",t.icons.close)}}function ki(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"input",10,11),i.NdJ("blur",function(){return i.CHM(t),i.oxw().onBlur()})("keydown",function(e){return i.CHM(t),i.oxw().onKeyDown(e)})("ngModelChange",function(e){return i.CHM(t),i.oxw().onInput(e)}),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("ngModel",t.editedText),i.uIk("maxLength",t.maxLength)}}const Oi=(0,Y.JN)({size:"m",status:"default",autoColor:!1});let Mi=(()=>{class t{constructor(t,e,n,r){this.el=t,this.mode$=e,this.options=n,this.icons=r,this.value="",this.editable=!1,this.separator=",",this.maxLength=null,this.size=this.options.size,this.showLoader=!1,this.status=this.options.status,this.hoverable=!1,this.removable=!1,this.disabled=!1,this.autoColor=this.options.autoColor,this.edited=new i.vpe,this.editing=!1,this.editedText=null}set input(t){t&&t.nativeElement.focus()}get backgroundColor(){return this.autoColor?function(t){if(""===t)return"";let e=0;for(let n=0;n1?this.save(String(e)):this.editedText=t}onKeyDown(t){switch(t.stopPropagation(),t.key.toLowerCase()){case"enter":t.preventDefault(),this.save(this.editedText||"");break;case"escape":case"esc":t.preventDefault(),this.stopEditing(),this.el.nativeElement.focus()}}onBlur(){null!==this.editedText&&this.save(this.editedText)}get canEdit(){return this.editable&&!this.disabled&&!this.showLoader}stopEditing(){this.editing=!1,this.editedText=null}save(t){this.stopEditing(),this.edited.emit(t.trim())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(gt.Au),i.Y36(Oi),i.Y36(gt.Gs))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-tag"],["a","tuiTag",""],["button","tuiTag",""]],viewQuery:function(t,e){if(1&t&&i.Gf(yi,5,i.SBq),2&t){let t;i.iGM(t=i.CRH())&&(e.input=t.first)}},hostVars:10,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",function(){return e.mode$})("keydown.enter",function(t){return e.edit(t)})("keydown.delete",function(t){return e.remove(t)})("keydown.backspace",function(t){return e.remove(t)}),2&t&&(i.uIk("data-size",e.size)("data-status",e.status),i.ekj("_hoverable",e.hoverable)("_disabled",e.disabled)("_autocolor",e.autoColor)("_editing",e.editing))},inputs:{value:"value",editable:"editable",separator:"separator",maxLength:"maxLength",size:"size",showLoader:"showLoader",status:"status",hoverable:"hoverable",removable:"removable",disabled:"disabled",autoColor:"autoColor",leftContent:"leftContent"},outputs:{edited:"edited"},features:[i._Bn([Pe.CV])],decls:6,vars:7,consts:[[1,"t-tag",3,"dblclick"],["class","t-content",4,"ngIf"],["automation-id","tui-tag__text",1,"t-text",3,"textContent"],["class","t-content",3,"inheritColor","size",4,"ngIf"],["automation-id","tui-tag__remove","class","t-icon",3,"src","click","mousedown.stop.prevent.silent",4,"ngIf"],["automation-id","tui-tag__edit","type","text","class","t-edit",3,"ngModel","blur","keydown","ngModelChange",4,"ngIf"],[1,"t-content"],[4,"polymorpheusOutlet"],[1,"t-content",3,"inheritColor","size"],["automation-id","tui-tag__remove",1,"t-icon",3,"src","click","mousedown.stop.prevent.silent"],["automation-id","tui-tag__edit","type","text",1,"t-edit",3,"ngModel","blur","keydown","ngModelChange"],["input",""]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.NdJ("dblclick",function(t){return e.edit(t)}),i.YNc(1,wi,2,1,"div",1),i._UZ(2,"span",2),i.YNc(3,Ci,1,2,"tui-loader",3),i.YNc(4,xi,1,1,"tui-svg",4),i.qZA(),i.YNc(5,ki,2,2,"input",5)),2&t&&(i.Udp("background-color",e.backgroundColor),i.xp6(1),i.Q6J("ngIf",e.leftContent),i.xp6(1),i.Q6J("textContent",e.displayText),i.xp6(1),i.Q6J("ngIf",e.showLoader),i.xp6(1),i.Q6J("ngIf",e.canRemove),i.xp6(1),i.Q6J("ngIf",e.editing))},directives:[Ct.O5,xt.Li,bt.kM,Dt.PN,It.Fj,It.JJ,It.On],styles:['[_nghost-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;font:var(--tui-font-text-s);line-height:1.25rem;max-width:100%;cursor:default;outline:none;text-decoration:none;padding:0;border:0}[_nghost-%COMP%]:after{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:absolute;top:0;left:0;width:100%;height:100%;content:"";box-sizing:border-box;border-radius:inherit;pointer-events:none}._hoverable[_nghost-%COMP%]:hover[data-status=custom]:after, ._hoverable[_nghost-%COMP%]:active[data-status=custom]:after{background-color:var(--tui-clear)}[_nghost-%COMP%]:focus:after{border:2px solid var(--tui-focus)}[data-size=s][_nghost-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;border-radius:var(--tui-radius-xs)}[data-size=m][_nghost-%COMP%]{border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{border-radius:var(--tui-radius-s)}[data-status=primary][_nghost-%COMP%]{background-color:var(--tui-primary);color:var(--tui-primary-text)}[data-status=primary]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-primary-hover)}[data-status=primary]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-primary-active)}[data-status=error][_nghost-%COMP%]{background-color:var(--tui-error-bg);color:var(--tui-text-01)}[data-status=error]._hoverable[_nghost-%COMP%]:hover, [data-status=error]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-hover)}[data-status=error][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-error-bg-night);color:var(--tui-text-01-night)}[data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=error][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-error-bg-night-hover)}[data-status=success][_nghost-%COMP%]{background-color:var(--tui-success-bg);color:var(--tui-text-01)}[data-status=success]._hoverable[_nghost-%COMP%]:hover, [data-status=success]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-hover)}[data-status=success][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-success-bg-night);color:var(--tui-text-01-night)}[data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=success][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-success-bg-night-hover)}[data-status=warning][_nghost-%COMP%]{background-color:var(--tui-warning-bg);color:var(--tui-text-01)}[data-status=warning]._hoverable[_nghost-%COMP%]:hover, [data-status=warning]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-hover)}[data-status=warning][data-mode=onDark][_nghost-%COMP%]{background-color:var(--tui-warning-bg-night);color:var(--tui-text-01-night)}[data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover, [data-status=warning][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-warning-bg-night-hover)}[data-status=default][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-base-06)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:hover{background-color:var(--tui-base-07)}[data-status=default][_nghost-%COMP%]:not([data-mode])._hoverable:active{background-color:var(--tui-base-08)}[data-status=default][data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-01-night);background-color:var(--tui-clear-inverse)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-inverse-hover)}[data-status=default][data-mode=onDark]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-inverse-active)}[data-status=default][data-mode=onDark][_nghost-%COMP%]:focus:after{border:2px solid var(--tui-base-01)}[data-status=default][data-mode=onLight][_nghost-%COMP%]{background-color:var(--tui-clear);color:var(--tui-text-01)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:hover{background-color:var(--tui-clear-hover)}[data-status=default][data-mode=onLight]._hoverable[_nghost-%COMP%]:active{background-color:var(--tui-clear-active)}._editing[_nghost-%COMP%]{background:transparent!important}._disabled[_nghost-%COMP%]{pointer-events:none;opacity:var(--tui-disabled-opacity)}._hoverable[_nghost-%COMP%]{cursor:pointer}._autocolor[_nghost-%COMP%]{color:#000c}.t-text[_ngcontent-%COMP%]{white-space:pre;overflow:hidden;text-overflow:ellipsis;padding-right:.02em}.t-tag[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:relative;display:flex;width:auto;align-items:center;font:inherit;border-radius:inherit}[data-size=s][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:1.25rem;padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-xs);padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{height:var(--tui-height-s);padding:0 .75rem}._editing[_nghost-%COMP%] .t-tag[_ngcontent-%COMP%]{visibility:hidden}.t-edit[_ngcontent-%COMP%]{margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;font:inherit;color:var(--tui-text-01);width:100%;height:100%;box-sizing:border-box;padding:0 .5rem}.t-edit[_ngcontent-%COMP%]:-webkit-autofill, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-edit[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[data-size=s][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .375rem}[data-size=m][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .5rem}[data-size=l][_nghost-%COMP%] .t-edit[_ngcontent-%COMP%]{padding:0 .75rem}.t-icon[_ngcontent-%COMP%]{width:1rem;height:100%;cursor:pointer;pointer-events:all;opacity:var(--tui-disabled-opacity);-webkit-margin-start:.25rem;margin-inline-start:.25rem;-webkit-margin-end:-.25rem;margin-inline-end:-.25rem}.t-icon[_ngcontent-%COMP%]:hover{opacity:1}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{-webkit-margin-start:0;margin-inline-start:0}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%] svg{transform:scale(.75)}.t-content[_ngcontent-%COMP%]{width:1rem;height:1rem;-webkit-margin-end:.25rem;margin-inline-end:.25rem}'],changeDetection:0}),t})(),Si=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,It.u5,Dt.EI,bt.dS,xt.wq]]}),t})();var Pi=n(44711),Ei=n(21673),Ti=n(75122),Ai=n(56083),Ii=n(91211),Di=n(9112),Ni=n(81359);let Li=(()=>{class t{constructor(t,e,n){this.doc=t,this.el=e,this.renderer=n,this.activeElement=(0,wt.ie)(this.doc),Promise.resolve().then(()=>{this.el.nativeElement.focus()})}onBlur(){this.renderer.removeAttribute(this.el.nativeElement,"tabIndex")}onFocusIn(t){const{nativeElement:e}=this.el;if((0,un.PP)(e,t))return;const n=(0,wt.BW)({initial:e,root:e});n&&n.focus()}ngOnDestroy(){(0,wt.hp)(this.doc),Promise.resolve().then(()=>{(0,un.dW)(this.activeElement)&&this.activeElement.focus()})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Ct.K0),i.Y36(i.SBq),i.Y36(i.Qsj))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiFocusTrap",""]],hostAttrs:["tabIndex","0"],hostBindings:function(t,e){1&t&&i.NdJ("blur",function(){return e.onBlur()})("focusin.silent",function(t){return e.onFocusIn(t.target)},!1,i.Jf7)}}),t})(),zi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var Fi=n(71486);function Ri(t,e){1&t&&i.GkF(0)}function ji(t,e){1&t&&i._UZ(0,"tui-scroll-controls",5)}function Bi(t,e){if(1&t&&(i.TgZ(0,"section",2),i.YNc(1,Ri,1,0,"ng-container",3),i.YNc(2,ji,1,0,"tui-scroll-controls",4),i.qZA()),2&t){const t=e.$implicit,n=i.oxw();i.Q6J("@host",void 0),i.uIk("aria-labelledby",t.id),i.xp6(1),i.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",t),i.xp6(1),i.Q6J("ngIf",!n.isMobile)}}function Vi(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",6),i.NdJ("transitionend",function(e){const n=i.CHM(t).tuiLet,r=i.oxw();return r.onDialog(e,!!r.dialogs.length,!!n)})("popstate",function(){const e=i.CHM(t).tuiLet,n=i.oxw();return n.closeLast(n.dialogs,!!e)},!1,i.Jf7),i.qZA()}if(2&t){const t=i.oxw();i.ekj("t-overlay_visible",t.dialogs.length)}}const $i=(0,Y.JN)((0,_n.of)(!1)),Zi={label:"ignoreMe"};let qi=(()=>{class t{constructor(t,e,n,i,r,o,s,a){this.isMobile=t,this.isDialogClosesOnBack$=e,this.dialogsByType=n,this.historyRef=i,this.titleService=r,this.destroy$=o,this.cdr=s,this.doc=a,this.dialogs=[]}ngOnInit(){(0,Di.aj)(this.dialogsByType).pipe((0,h.U)(t=>[].concat(...t).sort((t,e)=>t.createdAt-e.createdAt)),(0,p.R)(this.destroy$)).subscribe(t=>{this.dialogs=t,this.cdr.markForCheck(),this.doc.documentElement.classList.toggle("t-overscroll-none",!!t.length)})}closeLast(t,e){if(!e)return;const[n]=t.slice(-1);!n||(t.length>1&&this.historyRef.pushState(Zi,this.titleService.getTitle()),n.$implicit.complete())}onDialog({propertyName:t},e,n){!n||"letter-spacing"!==t||(e?this.historyRef.pushState(Zi,this.titleService.getTitle()):(t=>(null==t?void 0:t.label)===Zi.label)(this.historyRef.state)&&this.historyRef.back())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(q.fL),i.Y36($i),i.Y36(q.qY),i.Y36(Z.UA),i.Y36(Ii.Dx),i.Y36(I.a3,2),i.Y36(i.sBO),i.Y36(Ct.K0))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-dialog-host"]],features:[i._Bn([I.a3])],decls:3,vars:4,consts:[["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","","class","t-dialog",4,"ngFor","ngForOf"],["class","t-overlay",3,"t-overlay_visible","transitionend","popstate",4,"tuiLet"],["aria-modal","true","role","dialog","tuiFocusTrap","","tuiOverscroll","all","tuiScrollRef","",1,"t-dialog"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],["class","t-scrollbars",4,"ngIf"],[1,"t-scrollbars"],[1,"t-overlay",3,"transitionend","popstate"]],template:function(t,e){1&t&&(i.YNc(0,Bi,3,5,"section",0),i.YNc(1,Vi,1,2,"div",1),i.ALo(2,"async")),2&t&&(i.Q6J("ngForOf",e.dialogs),i.xp6(1),i.Q6J("tuiLet",i.lcZ(2,2,e.isDialogClosesOnBack$)))},directives:[Ct.sg,ct.Ls,Li,Fi.W,Ni.ex,xt.Li,Ct.O5,Ni.tZ],pipes:[Ct.Ov],styles:["[_nghost-%COMP%]{position:fixed;left:0;bottom:0;width:100%;height:0}.t-overlay[_ngcontent-%COMP%], .t-dialog[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:flex-start;outline:none;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.t-overlay.ng-animating[_ngcontent-%COMP%], .t-dialog.ng-animating[_ngcontent-%COMP%]{overflow:clip}.t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar, .t-overlay[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, .t-dialog[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}.t-dialog[_ngcontent-%COMP%]{bottom:auto;height:100%}.t-overlay[_ngcontent-%COMP%]{height:100%;pointer-events:none;touch-action:none;opacity:0;letter-spacing:normal;transition:opacity var(--tui-duration, .3s),letter-spacing .01s;background:rgba(0,0,0,.75);-webkit-backdrop-filter:var(--tui-backdrop, none);backdrop-filter:var(--tui-backdrop, none)}.t-overlay_visible[_ngcontent-%COMP%]{opacity:1;letter-spacing:1px}.t-dialog[_ngcontent-%COMP%]:last-of-type{z-index:1}.t-scrollbars[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;bottom:0;margin:0;color:#747474}"],data:{animation:[(0,Ai.X$)("host",[(0,Ai.eR)(":enter",[(0,Ai.oB)({overflow:"clip"}),(0,Ai.IO)(":scope > *",[(0,Ai.pV)()],{optional:!0})]),(0,Ai.eR)(":leave",[(0,Ai.oB)({overflow:"clip"}),(0,Ai.IO)(":scope > *",[(0,Ai.pV)()],{optional:!0})])])]}}),t})(),Yi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,xt.wq,Fi.e,zi,ct.WD,Ni.eI]]}),t})();function Ui(t,e){if(1&t&&(i.GkF(0,3),i.ALo(1,"tuiMapper")),2&t){const t=e.$implicit,n=i.oxw(2);i.Q6J("ngComponentOutlet",t.component.component)("ngComponentOutletInjector",i.xi3(1,2,t,n.mapper))}}function Hi(t,e){if(1&t&&(i.TgZ(0,"div",1),i.YNc(1,Ui,2,5,"ng-container",2),i.qZA()),2&t){const t=e.$implicit;i.Q6J("@tuiParentAnimation",void 0),i.xp6(1),i.Q6J("ngForOf",t)}}let Gi=(()=>{class t{constructor(t,e,n,r){this.allAlerts=t,this.injector=e,this.destroy$=n,this.cdr=r,this.alerts=[],this.trackBy=t=>t,this.mapper=t=>i.zs3.create({providers:[{provide:xt.yf,useValue:t}],parent:this.injector})}ngOnInit(){(0,Di.aj)(this.allAlerts).pipe((0,p.R)(this.destroy$)).subscribe(t=>{this.alerts=t,this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(q.bS),i.Y36(i.gxx),i.Y36(I.a3,2),i.Y36(i.sBO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-alert-host"]],features:[i._Bn([I.a3])],decls:1,vars:2,consts:[["class","t-wrapper",4,"ngFor","ngForOf","ngForTrackBy"],[1,"t-wrapper"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngFor","ngForOf"],[3,"ngComponentOutlet","ngComponentOutletInjector"]],template:function(t,e){1&t&&i.YNc(0,Hi,2,2,"div",0),2&t&&i.Q6J("ngForOf",e.alerts)("ngForTrackBy",e.trackBy)},directives:[Ct.sg,Ct.$G],pipes:[T],styles:["tui-alert-host>.t-wrapper{position:fixed;top:0;left:0;display:flex;width:100%;height:100%;flex-direction:column;pointer-events:none}tui-alert-host>.t-wrapper>*{pointer-events:auto}\n"],encapsulation:2,data:{animation:[U.Kx]}}),t})(),Ji=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,A]]}),t})();function Xi(t,e){1&t&&(i.O4$(),i._UZ(0,"defs",4)),2&t&&i.Q6J("innerHTML",e.$implicit,i.oJD)}function Qi(t,e){if(1&t&&(i.O4$(),i.ynx(0),i.YNc(1,Xi,1,1,"defs",3),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("ngForOf",t.items)}}function Wi(t,e){if(1&t&&(i.O4$(),i.TgZ(0,"defs"),i._UZ(1,"svg",6),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Q6J("outerHTML",t,i.oJD)}}function Ki(t,e){if(1&t&&(i.O4$(),i.YNc(0,Wi,2,1,"defs",5)),2&t){const t=i.oxw();i.Q6J("ngForOf",t.items)}}let tr=(()=>{class t{constructor(t,e,n,i){this.svgService=t,this.cdr=e,this.destroy$=n,this.isBrowser=!0,this.isBrowser=!(0,Ct.PM)(i)}ngOnInit(){this.svgService.items$.pipe((0,p.R)(this.destroy$)).subscribe(t=>{this.items=t.values(),this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(hn.K5),i.Y36(i.sBO),i.Y36(I.a3,2),i.Y36(i.Lbi))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-svg-defs-host"]],features:[i._Bn([I.a3])],decls:4,vars:2,consts:[["version","1.1",0,"xmlns","xlink","http://www.w3.org/1999/xlink","xmlns","http://www.w3.org/2000/svg"],[4,"ngIf","ngIfElse"],["server",""],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],[4,"ngFor","ngForOf"],[3,"outerHTML"]],template:function(t,e){if(1&t&&(i.O4$(),i.TgZ(0,"svg",0),i.YNc(1,Qi,2,1,"ng-container",1),i.YNc(2,Ki,1,1,"ng-template",null,2,i.W1O),i.qZA()),2&t){const t=i.MAs(3);i.xp6(1),i.Q6J("ngIf",e.isBrowser)("ngIfElse",t)}},directives:[Ct.O5,Ct.sg],styles:["[_nghost-%COMP%]{display:none}"],changeDetection:0}),t})(),er=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,ct.WD]]}),t})();function nr(t,e){1&t&&i.GkF(0)}const ir=function(t){return{$implicit:t}};function rr(t,e){if(1&t&&(i.TgZ(0,"div",1),i.YNc(1,nr,1,0,"ng-container",2),i.qZA()),2&t){const t=e.$implicit;i.Q6J("@tuiParentAnimation",void 0)("tuiActiveZoneParent",t.activeZone||null),i.xp6(1),i.Q6J("polymorpheusOutlet",t.component)("polymorpheusOutletContext",i.VKq(4,ir,t))}}let or=(()=>{class t{constructor(t,e,n){this.hints$=t,this.destroy$=e,this.cdr=n,this.hints=[]}ngOnInit(){this.hints$.pipe((0,p.R)(this.destroy$)).subscribe(t=>{this.hints=t,this.cdr.detectChanges()})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(hn.BN),i.Y36(I.a3,2),i.Y36(i.sBO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-hints-host"]],hostAttrs:["aria-live","polite"],features:[i._Bn([I.a3])],decls:1,vars:1,consts:[["role","tooltip",3,"tuiActiveZoneParent",4,"ngFor","ngForOf"],["role","tooltip",3,"tuiActiveZoneParent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&i.YNc(0,rr,2,6,"div",0),2&t&&i.Q6J("ngForOf",e.hints)},directives:[Ct.sg,rt.e,xt.Li],styles:["[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:0}"],data:{animation:[U.Kx]}}),t})(),sr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,xt.wq,rt.A]]}),t})();function ar(t,e){1&t&&i._UZ(0,"tui-scroll-controls",2)}const lr=["*",[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],cr=["*","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];let ur=(()=>{class t{constructor(t,e,n,i,r,o,{body:s},a){this.duration=t,this.dialogs=e,this.isMobile=n,this.isMobileRes$=i,this.isIOS=r,this.isAndroid=o,this.scrollbars$=this.dialogs.length&&!this.isMobile?(0,Di.aj)([...this.dialogs]).pipe((0,h.U)(t=>!t.some(({length:t})=>t)),(0,yn.b)(0)):(0,_n.of)(!this.isMobile),s.setAttribute("data-tui-theme",a.toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(gt.dx),i.Y36(q.qY),i.Y36(q.fL),i.Y36(gt.rL),i.Y36(q.FA),i.Y36(q.XG),i.Y36(Ct.K0),i.Y36(gt.r2))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-root"]],hostAttrs:["data-tui-version","3.48.0"],hostVars:6,hostBindings:function(t,e){1&t&&i.NdJ("$.class._mobile",function(){return e.isMobileRes$}),2&t&&(i.Udp("--tui-duration",e.duration,"ms"),i.ekj("_ios",e.isIOS)("_android",e.isAndroid))},features:[i._Bn([Pe.yI])],ngContentSelectors:cr,decls:14,vars:3,consts:[["class","t-root-scrollbar",4,"ngIf"],[1,"t-root-content"],[1,"t-root-scrollbar"]],template:function(t,e){1&t&&(i.F$t(lr),i.YNc(0,ar,1,0,"tui-scroll-controls",0),i.ALo(1,"async"),i._UZ(2,"tui-svg-defs-host"),i.TgZ(3,"tui-dropdown-host"),i.TgZ(4,"div",1),i.Hsn(5),i.qZA(),i.Hsn(6,1),i._UZ(7,"tui-dialog-host"),i.Hsn(8,2),i._UZ(9,"tui-alert-host"),i.Hsn(10,3),i.qZA(),i.Hsn(11,4),i._UZ(12,"tui-hints-host"),i.Hsn(13,5)),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.scrollbars$))},directives:[Ct.O5,tr,Ti.qY,qi,Gi,or,Ni.tZ],pipes:[Ct.Ov],styles:['@keyframes tuiPresent{to{content:"1"}}@keyframes tuiSkeletonVibe{to{opacity:.5}}html,.tui-zero-scrollbar{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,.tui-zero-scrollbar::-webkit-scrollbar,html::-webkit-scrollbar-thumb,.tui-zero-scrollbar::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}body{font:var(--tui-font-text-s);color:var(--tui-text-01);background:var(--tui-base-01);margin:0}tui-root{position:relative;display:block;flex:1;-webkit-tap-highlight-color:transparent}tui-root>.t-root-scrollbar{position:fixed;top:0;left:0;bottom:0;right:0;margin:0}.t-root-content{position:relative;z-index:0;height:100%}.t-overscroll-none{overscroll-behavior:none}\n'],encapsulation:2}),t})(),hr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,wn.X1,Ti.mL,er,sr,Yi,Ji,Ni.eI]]}),t})(),dr=(()=>{class t extends vt.GM{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-theme-night"]],features:[i.qOj],decls:0,vars:0,template:function(t,e){},styles:[":root{--tui-base-01: #222;--tui-base-02: #333;--tui-base-03: #808080;--tui-base-04: #959595;--tui-base-05: #b0b0b0;--tui-base-06: #d7d7d7;--tui-base-07: #ededed;--tui-base-08: #f6f6f6;--tui-base-09: #fff;--tui-focus: rgba(51, 51, 51, .64);--tui-secondary: rgba(255, 255, 255, .16);--tui-secondary-hover: rgba(255, 255, 255, .24);--tui-secondary-active: rgba(255, 255, 255, .4);--tui-clear: rgba(255, 255, 255, .16);--tui-clear-disabled: rgba(255, 255, 255, .08);--tui-clear-hover: rgba(255, 255, 255, .24);--tui-clear-active: rgba(255, 255, 255, .4);--tui-error-fill: #ff8c67;--tui-error-bg: rgba(244, 87, 37, .32);--tui-error-bg-hover: rgba(244, 87, 37, .4);--tui-success-fill: #4ac99b;--tui-success-bg: rgba(74, 201, 155, .32);--tui-success-bg-hover: rgba(74, 201, 155, .4);--tui-warning-fill: #ffc700;--tui-warning-bg: rgba(255, 199, 0, .32);--tui-warning-bg-hover: rgba(255, 199, 0, .4);--tui-info-fill: #70b6f6;--tui-info-bg: rgba(112, 182, 246, .32);--tui-info-bg-hover: rgba(112, 182, 246, .4);--tui-neutral-fill: #959ba4;--tui-neutral-bg: rgba(149, 155, 164, .32);--tui-neutral-bg-hover: rgba(149, 155, 164, .48);--tui-text-01: #ffffff;--tui-text-02: rgba(255, 255, 255, .72);--tui-text-03: rgba(255, 255, 255, .6);--tui-link: #6788ff;--tui-link-hover: #526ed3;--tui-positive: #44c596;--tui-positive-hover: #3aa981;--tui-negative: #ff8c67;--tui-negative-hover: #bb593a;--tui-autofill: var(--tui-autofill-night);--tui-elevation-01: #222;--tui-elevation-02: #222}tui-notification{--tui-base-01: #000}\n"],encapsulation:2,changeDetection:0}),t})(),pr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var fr=n(82847),gr=n(90022),mr=n(1515),vr=n(60885),_r=n(80134),yr=n(22759),br=n(72361);function wr(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function Cr(t,e){if(1&t&&(i.TgZ(0,"label",4),i.YNc(1,wr,2,1,"ng-container",5),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.item.label)("polymorpheusOutletContext",t.item)}}function xr(t,e){1&t&&i._UZ(0,"div",6),2&t&&i.Q6J("innerHTML",e.polymorpheusOutlet,i.oJD)}const kr=(0,Y.N1)(()=>(0,i.f3M)(q.fL)?"1rem 1rem 0 auto":"2rem 3rem 0 auto");let Or=(()=>{class t{constructor(t,e,n,i,r){this.el=t,this.destroy$=e,this.position=n,this.options=i,this.item=r,this.autoClose="function"==typeof this.item.autoClose?this.item.autoClose(this.item.status):this.item.autoClose,this.animation=this.position.endsWith("auto")?Object.assign(Object.assign({},this.options),{value:"right"}):Object.assign(Object.assign({},this.options),{value:"left"})}ngOnInit(){this.initAutoClose()}close(){this.item.$implicit.complete()}initAutoClose(){!this.autoClose||(0,a.H)((0,Y.dt)(this.autoClose)?this.autoClose:3e3).pipe((0,p.R)((0,yr.R)(this.el.nativeElement,"mouseenter")),(0,br.a)(()=>(0,yr.R)(this.el.nativeElement,"mouseleave")),(0,p.R)(this.destroy$)).subscribe(()=>this.close())}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(I.a3,2),i.Y36(kr),i.Y36(gt.Pw),i.Y36(xt.yf))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-alert"]],hostAttrs:["role","alert"],hostVars:5,hostBindings:function(t,e){2&t&&(i.d8E("@tuiFadeIn",e.options)("@tuiSlideIn",e.animation)("@tuiHeightCollapse",e.animation),i.Udp("margin",e.position))},features:[i._Bn([I.a3])],decls:4,vars:7,consts:[[3,"hasIcon","hideClose","icon","status","close"],["automation-id","tui-notification-alert__heading","class","t-heading",4,"ngIf"],["automation-id","tui-notification-alert__content",1,"t-content"],[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-notification-alert__heading",1,"t-heading"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(i.TgZ(0,"tui-notification",0),i.NdJ("close",function(){return e.close()}),i.YNc(1,Cr,2,2,"label",1),i.TgZ(2,"div",2),i.YNc(3,xr,1,1,"div",3),i.qZA(),i.qZA()),2&t&&(i.Q6J("hasIcon",e.item.hasIcon)("hideClose",!e.item.hasCloseButton)("icon",e.item.icon)("status",e.item.status),i.xp6(1),i.Q6J("ngIf",e.item.label),i.xp6(2),i.Q6J("polymorpheusOutlet",e.item.content)("polymorpheusOutletContext",e.item))},directives:[vr.L,Ct.O5,xt.Li],styles:["[_nghost-%COMP%]{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;display:block;border-radius:var(--tui-radius-l);width:18rem}[_nghost-%COMP%]:not(:first-child){margin-top:.75rem!important}[_nghost-%COMP%]:not(:last-child){margin-bottom:0!important}.t-heading[_ngcontent-%COMP%]{margin:0}[data-size=s][_ngcontent-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-s);font-weight:bold}[data-size=m][_ngcontent-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem;font-weight:bold}[data-size=l][_ngcontent-%COMP%] .t-heading[_ngcontent-%COMP%]{font:var(--tui-font-text-l);line-height:1.5rem;font-weight:bold}.t-content[_ngcontent-%COMP%]{color:var(--tui-text-01);word-wrap:break-word;word-break:break-word}.t-content[_ngcontent-%COMP%]:empty{display:none}"],data:{animation:[me.QF,me.Gw,me.eu]},changeDetection:0}),t})(),Mr=(()=>{class t extends vt.d5{constructor(t,e){super(e),this.defaultOptions=t,this.component=new xt.Al(Or)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(gt.Ln),i.LFG(I.ll))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[(0,q.XH)(Mr)],imports:[[Ct.ez,xt.wq,vr.H]]}),t})();var Pr=n(95639),Er=n(47766);function Tr(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function Ar(t,e){if(1&t&&(i.TgZ(0,"header",6),i.YNc(1,Tr,2,1,"ng-container",3),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.header)("polymorpheusOutletContext",t.context)}}function Ir(t,e){if(1&t){const t=i.EpF();i.ynx(0),i._UZ(1,"div",7),i.TgZ(2,"div",8),i.TgZ(3,"button",9),i.NdJ("click",function(){return i.CHM(t),i.oxw().context.$implicit.complete()}),i._uU(4),i.qZA(),i.qZA(),i.BQk()}if(2&t){const t=e.polymorpheusOutlet,n=i.oxw();let r;i.xp6(1),i.Q6J("innerHTML",t,i.oJD),i.xp6(3),i.hij(" ",(null==(r=n.context.data)?null:r.button)||"OK"," ")}}function Dr(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",10),i.TgZ(1,"button",11),i.NdJ("click",function(){return i.CHM(t),i.oxw().close$.next()})("mousedown.prevent.silent",function(){return 0}),i.ALo(2,"async"),i.qZA(),i.qZA()}if(2&t){const t=i.oxw();i.xp6(1),i.Q6J("appearance",t.fullscreen?"secondary":"")("icon",t.icons.close)("title",i.lcZ(2,3,t.closeWord$))}}const Nr=(0,Y.JN)(qt.E),Lr=(0,Y.JN)({size:"m",required:!1,closeable:!0,dismissible:!0,label:"",header:""});let zr=(()=>{class t extends pn.y{constructor(t,e,n){super(t=>(0,c.T)(this.esc$,this.mousedown$).subscribe(t)),this.win=t,this.doc=e,this.el=n,this.esc$=(0,lt.mL)(this.doc,"keydown").pipe((0,f.h)(t=>{const e=(0,un.mA)(t);return"Escape"===t.key&&!t.defaultPrevented&&(this.element.contains(e)||this.isOutside(e))})),this.mousedown$=(0,lt.mL)(this.doc,"mousedown").pipe((0,f.h)(t=>(0,Er.ic)(this.win)-t.clientX>17&&this.isOutside((0,un.mA)(t))),(0,u.w)(()=>(0,lt.mL)(this.doc,"mouseup").pipe((0,m.q)(1),(0,h.U)(un.mA),(0,f.h)(t=>this.isOutside(t)))))}get element(){return this.el.nativeElement}isOutside(t){return(0,un.ve)(t)&&(!(0,un.PP)(this.element,t)||t===this.element)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Z.m9),i.LFG(Ct.K0),i.LFG(i.SBq))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();const Fr=new Error("Required dialog was dismissed");function Rr(t){return(0,Pr.b)(t)?t:(0,_n.of)(t)}const jr=new xt.Al((()=>{class t{constructor(t,e,n,i,r,o,a,l){this.duration=t,this.isMobile=e,this.context=n,this.closeWord$=a,this.icons=l,this.animation={value:"",params:{start:"40px",duration:this.duration}},this.fullscreenAnimation={value:"",params:{start:"100vh",duration:this.duration}},this.close$=new s.xQ,(0,c.T)(this.close$.pipe((0,u.w)(()=>Rr(n.closeable))),r.pipe((0,u.w)(()=>Rr(n.dismissible))),o.pipe((0,h.U)(U.Ye))).pipe((0,f.h)(Boolean),(0,p.R)(i)).subscribe(()=>{this.close()})}get size(){return this.context.size}get header(){return this.context.header}get slideInTop(){return this.fullscreen||this.isMobile?this.fullscreenAnimation:this.animation}get fullscreen(){return!this.isMobile&&("fullscreen"===this.size||"page"===this.size)}close(){this.context.required?this.context.$implicit.error(Fr):this.context.$implicit.complete()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(gt.dx),i.Y36(q.fL),i.Y36(xt.yf),i.Y36(I.a3,2),i.Y36(zr),i.Y36(Nr),i.Y36(gt.U0),i.Y36(gt.Gs))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-dialog"]],hostVars:6,hostBindings:function(t,e){2&t&&(i.uIk("data-appearance",e.context.appearance)("data-size",e.size),i.d8E("@tuiSlideInTop",e.slideInTop)("@tuiFadeIn",e.slideInTop),i.ekj("_centered",e.header))},features:[i._Bn([I.a3,zr])],decls:7,vars:6,consts:[["class","t-header",4,"ngIf"],[1,"t-content"],[1,"t-heading",3,"id","textContent"],[4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-filler"],["class","t-wrapper",4,"ngIf"],[1,"t-header"],[3,"innerHTML"],[1,"t-buttons"],["size","m","tuiAutoFocus","","tuiButton","","type","button",3,"click"],[1,"t-wrapper"],["automation-id","tui-dialog__close","shape","rounded","size","s","tuiIconButton","","type","button",1,"t-close",3,"appearance","icon","title","click","mousedown.prevent.silent"]],template:function(t,e){1&t&&(i.YNc(0,Ar,2,2,"header",0),i.TgZ(1,"div",1),i._UZ(2,"h2",2),i.TgZ(3,"section"),i.YNc(4,Ir,5,2,"ng-container",3),i.qZA(),i.qZA(),i._UZ(5,"div",4),i.YNc(6,Dr,3,5,"div",5)),2&t&&(i.Q6J("ngIf",e.header),i.xp6(2),i.Q6J("id",e.context.id)("textContent",e.context.label),i.xp6(2),i.Q6J("polymorpheusOutlet",e.context.content)("polymorpheusOutletContext",e.context),i.xp6(2),i.Q6J("ngIf",e.context.closeable))},directives:[Ct.O5,xt.Li,Ye.v0,tt],pipes:[Ct.Ov],styles:['[_nghost-%COMP%]{position:relative;display:flex;font:var(--tui-font-text-m);flex-direction:column;box-sizing:border-box;margin:auto;border-radius:1rem;border:2.5rem solid transparent}[_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 1.125rem 1.875rem #0000007a;content:"";border-radius:inherit;pointer-events:none}[data-size=auto][_nghost-%COMP%]{width:auto}[data-size=s][_nghost-%COMP%]{width:30rem}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[data-size=s][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}[data-size=m][_nghost-%COMP%]{width:42.5rem}[data-size=m][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.75rem;font:var(--tui-font-heading-4)}[data-size=l][_nghost-%COMP%]{width:55rem}[data-size=l][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=fullscreen][_nghost-%COMP%], [data-size=page][_nghost-%COMP%]{min-width:100vw;min-height:100%;border-radius:0;border:none;background:var(--tui-elevation-01);box-shadow:0 4rem var(--tui-elevation-01)}[data-size=fullscreen][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:3rem calc(50vw - (45rem / 2))}[data-size=fullscreen][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], [data-size=page][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:1rem}[data-size=page][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0}._centered[_nghost-%COMP%]{text-align:center}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%]{min-width:100%;width:100%;max-width:100%;border-radius:0;border:none;margin:auto 0 0}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1.5rem}[_nghost-%COMP%] tui-root._mobile[data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%], tui-root._mobile [data-size][_nghost-%COMP%] .t-heading[_ngcontent-%COMP%]{margin-bottom:.5rem;font:var(--tui-font-heading-5)}.t-heading[_ngcontent-%COMP%]{margin:0;word-wrap:break-word;font:var(--tui-font-heading-3)}.t-heading[_ngcontent-%COMP%]:empty{display:none}.t-header[_ngcontent-%COMP%]{display:flex;border-top-left-radius:inherit;border-top-right-radius:inherit;overflow:hidden}[data-size=fullscreen][_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{flex:1}.t-content[_ngcontent-%COMP%]{border-radius:inherit;padding:2rem;background:var(--tui-elevation-01)}.t-content[_ngcontent-%COMP%]:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.t-wrapper[_ngcontent-%COMP%]{position:-webkit-sticky;position:sticky;top:0;order:-1}.t-filler[_ngcontent-%COMP%]{flex-grow:1}.t-close[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:fixed;top:1.5rem;right:1.5rem;display:none;color:var(--tui-base-01)}.t-dialog:last-of-type[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], .t-dialog:last-of-type [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]{animation:tuiFadeIn var(--tui-duration);background:rgba(104,104,104,.96)}[_nghost-%COMP%]:not([data-size="fullscreen"]):not([data-size="page"]) .t-close[_ngcontent-%COMP%]:hover{background:rgba(159,159,159,.86)}[_nghost-%COMP%]:not([data-size="fullscreen"]).ng-animating .t-close[_ngcontent-%COMP%]{display:none}tui-root._mobile[_nghost-%COMP%] .t-close[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;background:transparent!important;color:var(--tui-text-01);opacity:.5}.t-buttons[_ngcontent-%COMP%]{margin-top:1.25rem;text-align:right}'],data:{animation:[me.X9,me.QF]}}),t})());let Br=(()=>{class t extends vt.d5{constructor(){super(...arguments),this.component=jr,this.defaultOptions=Object.assign(Object.assign({},(0,i.f3M)(Lr)),{data:void 0})}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({providers:[(0,q.Q)(Br)],imports:[[xt.wq,Ye.fN,Ct.ez,et]]}),t})();var $r=n(67545);class Zr{constructor(t,e){this._document=e;const n=this._textarea=this._document.createElement("textarea"),i=n.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",n.setAttribute("aria-hidden","true"),n.value=t,this._document.body.appendChild(n)}copy(){const t=this._textarea;let e=!1;try{if(t){const n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(n){}return e}destroy(){const t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}let qr=(()=>{class t{constructor(t){this._document=t}copy(t){const e=this.beginCopy(t),n=e.copy();return e.destroy(),n}beginCopy(t){return new Zr(t,this._document)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Ct.K0))},t.\u0275prov=i.Yz7({factory:function(){return new t(i.LFG(Ct.K0))},token:t,providedIn:"root"}),t})();const Yr=new i.OlP("CDK_COPY_TO_CLIPBOARD_CONFIG");let Ur=(()=>{class t{constructor(t,e,n){this._clipboard=t,this._ngZone=e,this.text="",this.attempts=1,this.copied=new i.vpe,this._pending=new Set,n&&null!=n.attempts&&(this.attempts=n.attempts)}copy(t=this.attempts){if(t>1){let e=t;const n=this._clipboard.beginCopy(this.text);this._pending.add(n);const i=()=>{const t=n.copy();t||!--e||this._destroyed?(this._currentTimeout=null,this._pending.delete(n),n.destroy(),this.copied.emit(t)):this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(i,1))};i()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(qr),i.Y36(i.R0b),i.Y36(Yr,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(t,e){1&t&&i.NdJ("click",function(){return e.copy()})},inputs:{text:["cdkCopyToClipboard","text"],attempts:["cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}}),t})(),Hr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const Gr=["tuiSidebar",""];function Jr(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}let Xr=(()=>{class t extends xt.GL{constructor(t,e,n,i){super(t,i),this.content=t,this.injector=e,this.portalService=n,this.component=new xt.Al(Qr,this.injector),this.sidebarRef=null,this.direction="left",this.autoWidth=!1}set tuiSidebar(t){t?this.show():this.hide()}ngOnDestroy(){this.hide()}show(){null===this.sidebarRef&&(this.sidebarRef=this.portalService.add(this.component),this.sidebarRef.changeDetectorRef.detectChanges())}hide(){null!==this.sidebarRef&&(this.portalService.remove(this.sidebarRef),this.sidebarRef=null)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Rgc),i.Y36(i.zs3),i.Y36(Ti.ae),i.Y36(i.sBO))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiSidebar",""]],inputs:{direction:["tuiSidebarDirection","direction"],autoWidth:["tuiSidebarAutoWidth","autoWidth"],tuiSidebar:"tuiSidebar"},features:[i.qOj]}),t})(),Qr=(()=>{class t{constructor(t,e){this.options=t,this.directive=e,this.left=Object.assign(Object.assign({},this.options),{value:"left"}),this.right=Object.assign(Object.assign({},this.options),{value:"right"})}get animation(){return"left"===this.direction?this.left:this.right}get directionHostClass(){return`t-${this.directive.direction}`}get direction(){return this.directive.direction}get content(){return this.directive.content}get autoWidth(){return this.directive.autoWidth}ngDoCheck(){this.directive.check()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(gt.Pw),i.Y36(Xr))},t.\u0275cmp=i.Xpm({type:t,selectors:[["aside","tuiSidebar",""]],hostVars:3,hostBindings:function(t,e){2&t&&(i.d8E("@tuiSlideIn",e.animation),i.Tol(e.directionHostClass))},attrs:Gr,decls:2,vars:3,consts:[["tuiActiveZone","",1,"t-wrapper"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(i.TgZ(0,"div",0),i.YNc(1,Jr,2,1,"ng-container",1),i.qZA()),2&t&&(i.ekj("t-wrapper_auto-width",e.autoWidth),i.xp6(1),i.Q6J("polymorpheusOutlet",e.content))},directives:[rt.e,xt.Li],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex}[_nghost-%COMP%]:before, [_nghost-%COMP%]:after{position:absolute;top:0;left:0;width:100%;content:"";height:100%;background:rgba(0,0,0,.38);animation:tuiFadeIn var(--tui-duration)}[_nghost-%COMP%]:before{left:-100%;width:200%}[_nghost-%COMP%]:after{left:100%}.ng-animating[_nghost-%COMP%]:before, .ng-animating[_nghost-%COMP%]:after{opacity:0;transition:opacity var(--tui-duration)}.t-right[_nghost-%COMP%]{justify-content:flex-end}.t-left[_nghost-%COMP%]{justify-content:flex-start}.t-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;background:var(--tui-base-01);box-shadow:0 10rem var(--tui-base-01);width:17.25rem}.t-wrapper_auto-width[_ngcontent-%COMP%]{width:auto}'],data:{animation:[me.Gw]},changeDetection:0}),t})(),Wr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[rt.A,xt.wq]]}),t})(),Kr=(()=>{class t{constructor(t,{nativeElement:e},n){this.readyToScroll$=n,this.scroll$=new vn.t(1),this.readyToScroll$.pipe((0,f.h)(Boolean),(0,u.w)(()=>this.scroll$),(0,yn.b)(750),(0,f.h)(t=>t&&!!(0,un.PU)(e)),(0,p.R)(t)).subscribe(()=>{e.scrollIntoView()})}set tuiScrollIntoViewLink(t){this.scroll$.next(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(I.a3,2),i.Y36(i.SBq),i.Y36(r.V1))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiScrollIntoViewLink",""]],inputs:{tuiScrollIntoViewLink:"tuiScrollIntoViewLink"},features:[i._Bn([I.a3])]}),t})(),to=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();const eo="Taiga UI",no=(0,Y.JN)("tuiTheme"),io=(0,Y.JN)(eo);let ro=(()=>{class t extends l.X{constructor(t,e,n){super(n.getItem(e)||t),this.initialTheme=t,this.key=e,this.storage=n}next(t){this.storage.setItem(this.key,t),super.next(t)}get isDefaultTheme(){return this.value===eo}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(io),i.LFG(no),i.LFG(Z.H3))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const oo=(0,Y.JN)("tuiNight"),so=(0,Y.JN)(!0);let ao=(()=>{class t extends l.X{constructor(t,e,n,i){super("true"===e.getItem(n)||null===e.getItem(n)&&t.matchMedia("(prefers-color-scheme: dark)").matches),this.win=t,this.storage=e,this.key=n,this.useDefaultNightTheme=i}next(t){this.storage.setItem(this.key,String(t)),super.next(t)}toggle(){this.next(!this.value)}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(Z.m9),i.LFG(Z.H3),i.LFG(oo),i.LFG(so))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function lo(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",1),i.NdJ("click",function(){return i.CHM(t),i.oxw().onClick()}),i.TgZ(1,"span",2),i.ALo(2,"async"),i.TgZ(3,"span",3),i.Hsn(4),i.qZA(),i._uU(5),i.qZA(),i.qZA()}if(2&t){const t=e.ngIf,n=i.oxw();i.Q6J("title",t[0]),i.xp6(1),i.ekj("t-content_moved",i.lcZ(2,5,n.copied$)),i.xp6(2),i.uIk("data-text",t[0]),i.xp6(2),i.hij(" ",t[1]," ")}}const co=["*"];function uo(t,e){if(1&t&&(i.TgZ(0,"p",2),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij(" ",t.filename,"\n")}}function ho(t,e){if(1&t&&(i.TgZ(0,"pre",3),i._uU(1," "),i._UZ(2,"code",4),i._uU(3,"\n "),i.TgZ(4,"div",5),i._uU(5,"\n "),i._UZ(6,"tui-doc-copy",6),i._uU(7,"\n "),i.Hsn(8),i._uU(9,"\n "),i.qZA(),i._uU(10,"\n"),i.qZA()),2&t){const t=e.$implicit;i.xp6(2),i.Q6J("lineNumbers",!0)("highlight",t),i.xp6(4),i.Q6J("cdkCopyToClipboard",t)}}const po=["content"],fo=["resizer"];function go(t,e){if(1&t&&(i._uU(0),i.TgZ(1,"a",11),i.TgZ(2,"code"),i._uU(3,"tuiMode"),i.qZA(),i.qZA()),2&t){const t=i.oxw();i.hij(" ",t.texts[0]," ")}}function mo(t,e){if(1&t&&i._UZ(0,"tui-data-list-wrapper",14),2&t){const t=i.oxw(2);i.Q6J("items",t.items)}}function vo(t,e){if(1&t){const t=i.EpF();i.ynx(0),i.TgZ(1,"tui-select",12),i.NdJ("ngModelChange",function(e){return i.CHM(t),i.oxw().onModeChange(e)}),i._uU(2," tuiMode "),i.YNc(3,mo,1,1,"tui-data-list-wrapper",13),i.qZA(),i.BQk()}if(2&t){const t=i.oxw(),e=i.MAs(2);i.xp6(1),i.Q6J("ngModel",t.mode)("tuiHintContent",e)("tuiTextfieldCleaner",!0)}}function _o(t,e){if(1&t){const t=i.EpF();i._uU(0," tuiMode: "),i._UZ(1,"tui-tooltip",15),i.TgZ(2,"div",16),i.TgZ(3,"tui-radio-block",17),i.NdJ("ngModelChange",function(e){return i.CHM(t),i.oxw().onModeChange(e)}),i._uU(4," null "),i.qZA(),i.TgZ(5,"tui-radio-block",18),i.NdJ("ngModelChange",function(e){return i.CHM(t),i.oxw().onModeChange(e)}),i._uU(6," onDark "),i.qZA(),i.TgZ(7,"tui-radio-block",19),i.NdJ("ngModelChange",function(e){return i.CHM(t),i.oxw().onModeChange(e)}),i._uU(8," onLight "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(),e=i.MAs(2);i.xp6(1),i.Q6J("content",e),i.xp6(1),i.Q6J("collapsed",!0),i.xp6(1),i.Q6J("hideRadio",!0)("item",null)("ngModel",t.mode),i.xp6(2),i.Q6J("hideRadio",!0)("ngModel",t.mode),i.xp6(2),i.Q6J("hideRadio",!0)("ngModel",t.mode)}}function yo(t,e){if(1&t&&i._UZ(0,"tui-svg",27),2&t){const t=i.oxw(2);i.ekj("t-icon_rotated",t.expanded),i.Q6J("src",t.options.iconSmall)}}function bo(t,e){if(1&t&&i._UZ(0,"tui-data-list-wrapper",14),2&t){const t=i.oxw(3);i.Q6J("items",t.updateOnVariants)}}const wo=function(){return{standalone:!0}};function Co(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"pre",28),i._uU(1),i.ALo(2,"json"),i.qZA(),i.TgZ(3,"div",29),i.TgZ(4,"tui-select",30),i.NdJ("ngModelChange",function(e){return i.CHM(t),i.oxw(2).updateOnChange(e)}),i._uU(5," updateOn "),i.YNc(6,bo,1,1,"tui-data-list-wrapper",13),i.qZA(),i.TgZ(7,"button",31),i._uU(8," Reset "),i.qZA(),i.TgZ(9,"button",32),i._uU(10," Submit "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(2);i.xp6(1),i.hij("Form data: ",i.lcZ(2,3,t.testForm.value),""),i.xp6(3),i.Q6J("ngModel",t.updateOn)("ngModelOptions",i.DdM(5,wo))}}function xo(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"form",20),i.TgZ(1,"div",21),i.GkF(2,22),i.qZA(),i.TgZ(3,"button",23),i.NdJ("click",function(){return i.CHM(t),i.oxw().toggleDetails()}),i._uU(4),i.qZA(),i.YNc(5,yo,1,3,"ng-template",null,24,i.W1O),i.TgZ(7,"tui-expand",25),i.YNc(8,Co,11,6,"ng-template",26),i.qZA(),i.qZA()}if(2&t){const t=i.MAs(6),e=i.oxw();i.Q6J("formGroup",e.testForm),i.xp6(2),i.Q6J("ngTemplateOutlet",e.template),i.xp6(1),i.Q6J("iconRight",t),i.xp6(1),i.hij(" ",e.texts[2]," "),i.xp6(3),i.Q6J("expanded",e.expanded)}}const ko=function(){return[1,0]};function Oo(t,e){if(1&t&&(i.TgZ(0,"h1",2),i._uU(1),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.hij(" ",t.heading,"\n")}}function Mo(t,e){if(1&t&&(i.TgZ(0,"th",10),i._uU(1),i.qZA()),2&t){const t=i.oxw(3);i.xp6(1),i.hij(" ",t.texts[3]," ")}}function So(t,e){1&t&&i._UZ(0,"tui-badge",20)}function Po(t,e){1&t&&(i.TgZ(0,"span",21),i._uU(1," deprecated "),i.qZA())}function Eo(t,e){if(1&t&&(i._uU(0),i.TgZ(1,"a",24),i.TgZ(2,"code"),i._uU(3,"ng-polymorpheus"),i.qZA(),i.qZA()),2&t){const t=i.oxw(5);i.hij(" ",t.texts[4]," ")}}function To(t,e){if(1&t&&(i.TgZ(0,"tui-tooltip",22),i.YNc(1,Eo,4,1,"ng-template",null,23,i.W1O),i.qZA()),2&t){const t=i.MAs(2),e=i.oxw().$implicit;i.Q6J("content",t)("describeId",e.attrName)}}function Ao(t,e){if(1&t&&i._UZ(0,"tui-data-list-wrapper",34),2&t){i.oxw(2);const t=i.MAs(3),e=i.oxw(2).$implicit;i.Q6J("itemContent",t)("items",e.documentationPropertyValues)}}function Io(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-select",31),i.NdJ("ngModelChange",function(e){return i.CHM(t),i.oxw(3).$implicit.onValueChange(e)}),i.ALo(1,"tuiShowCleanerPipe"),i.TgZ(2,"code",32),i._uU(3,"null"),i.qZA(),i.YNc(4,Ao,1,2,"tui-data-list-wrapper",33),i.qZA()}if(2&t){i.oxw();const t=i.MAs(3),e=i.oxw(2).$implicit;i.Q6J("nativeId",e.attrName)("ngModel",e.documentationPropertyValue)("tuiTextfieldCleaner",i.lcZ(1,5,e.documentationPropertyType))("tuiTextfieldLabelOutside",!0)("valueContent",t)}}function Do(t,e){if(1&t&&(i.TgZ(0,"code"),i._uU(1),i.ALo(2,"tuiInspectAny"),i.qZA()),2&t){const t=e.$implicit;i.xp6(1),i.Oqu(i.lcZ(2,1,t))}}function No(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-toggle",41),i.NdJ("ngModelChange",function(e){return i.CHM(t),i.oxw(4).$implicit.onValueChange(e)}),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.Q6J("nativeId",t.attrName)("ngModel",t.documentationPropertyValue)("showIcons",!0)}}function Lo(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-textfield",42),i.NdJ("valueChange",function(e){return i.CHM(t),i.oxw(4).$implicit.onValueChange(e)}),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.Q6J("nativeId",t.attrName)("tuiTextfieldCleaner",!0)("tuiTextfieldLabelOutside",!0)("value",t.documentationPropertyValue||"")}}function zo(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",43),i.TgZ(1,"tui-primitive-textfield",44),i.NdJ("valueChange",function(e){i.CHM(t);const n=i.oxw(4).$implicit;return i.oxw(3).onColorChange(n,e)}),i.ALo(2,"tuiGetOpacity"),i.ALo(3,"tuiGetColorPipe"),i._UZ(4,"input",45),i.qZA(),i.TgZ(5,"tui-input-number",46),i.NdJ("ngModelChange",function(e){i.CHM(t);const n=i.oxw(4).$implicit;return i.oxw(3).onOpacityChange(n,e)}),i.ALo(6,"tuiGetOpacity"),i._uU(7," Opacity "),i.qZA(),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.xp6(1),i.Q6J("tuiInputOpacity",i.lcZ(2,8,t.documentationPropertyValue))("tuiTextfieldLabelOutside",!0)("value",i.lcZ(3,10,t.documentationPropertyValue)),i.uIk("id",t.attrName),i.xp6(4),i.Q6J("max",100)("min",0)("ngModel",i.lcZ(6,12,t.documentationPropertyValue))("step",1)}}function Fo(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-input-number",47),i.NdJ("ngModelChange",function(e){return i.CHM(t),i.oxw(4).$implicit.onValueChange(e||0)}),i.qZA()}if(2&t){const t=i.oxw(4).$implicit;i.Q6J("nativeId",t.attrName)("ngModel",t.documentationPropertyValue)("step",1)("tuiTextfieldLabelOutside",!0)}}function Ro(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-primitive-textfield",42),i.NdJ("valueChange",function(e){return i.CHM(t),i.oxw(5).$implicit.onValueChange(e)}),i._uU(1," Default content "),i.qZA()}if(2&t){const t=i.oxw(5).$implicit;i.Q6J("nativeId",t.attrName)("tuiTextfieldCleaner",!0)("tuiTextfieldLabelOutside",!0)("value",t.documentationPropertyValue.toString())}}function jo(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Ro,2,4,"tui-primitive-textfield",48),i.ALo(2,"tuiIsPrimitivePolymorpheusContentPipe"),i.BQk()),2&t){const t=i.oxw(4).$implicit;i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,t.documentationPropertyValue))}}function Bo(t,e){if(1&t&&(i.ynx(0,35),i.YNc(1,No,1,3,"tui-toggle",36),i.YNc(2,Lo,1,4,"tui-primitive-textfield",37),i.YNc(3,zo,8,14,"div",38),i.YNc(4,Fo,1,4,"tui-input-number",39),i.YNc(5,jo,3,3,"ng-container",40),i.BQk()),2&t){const t=i.oxw(3).$implicit;i.Q6J("ngSwitch",t.documentationPropertyType),i.xp6(1),i.Q6J("ngSwitchCase","boolean"),i.xp6(1),i.Q6J("ngSwitchCase","string"),i.xp6(1),i.Q6J("ngSwitchCase","color"),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngSwitchCase","PolymorpheusContent")}}function Vo(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Io,5,7,"tui-select",28),i.YNc(2,Do,3,3,"ng-template",null,29,i.W1O),i.YNc(4,Bo,6,6,"ng-template",null,30,i.W1O),i.BQk()),2&t){const t=i.MAs(5),e=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngIf",e.hasItems)("ngIfElse",t)}}function $o(t,e){if(1&t&&(i.TgZ(0,"tui-notification",49),i.ALo(1,"async"),i._uU(2," Emit! "),i.qZA()),2&t){const t=i.oxw(2).$implicit;i.Q6J("@emitEvent",i.lcZ(1,1,t.emits$))}}function Zo(t,e){if(1&t&&(i.TgZ(0,"td",25),i.YNc(1,Vo,6,2,"ng-container",26),i.YNc(2,$o,3,3,"ng-template",null,27,i.W1O),i.qZA()),2&t){const t=i.MAs(3),e=i.oxw().$implicit;i.xp6(1),i.Q6J("ngIf",e.shouldShowValues)("ngIfElse",t)}}function qo(t,e){if(1&t&&(i.TgZ(0,"tr",11),i.TgZ(1,"td",12),i.TgZ(2,"div",13),i._uU(3),i.ALo(4,"tuiStripOptionalPipe"),i.YNc(5,So,1,0,"tui-badge",14),i.ALo(6,"tuiIsOptionalPipe"),i.qZA(),i.YNc(7,Po,2,0,"span",15),i.GkF(8,16),i.qZA(),i.TgZ(9,"td",12),i.TgZ(10,"span",17),i._uU(11),i.YNc(12,To,3,2,"tui-tooltip",18),i.ALo(13,"tuiShowContentTooltip"),i.qZA(),i.qZA(),i.YNc(14,Zo,4,2,"td",19),i.qZA()),2&t){const t=e.$implicit,n=i.oxw(3);i.ekj("t-deprecated",t.documentationPropertyDeprecated),i.xp6(3),i.hij(" ",i.lcZ(4,9,t.attrName)," "),i.xp6(2),i.Q6J("ngIf",i.lcZ(6,11,t.attrName)),i.xp6(2),i.Q6J("ngIf",t.documentationPropertyDeprecated),i.xp6(1),i.Q6J("ngTemplateOutlet",t.template),i.xp6(3),i.hij(" ",t.documentationPropertyType," "),i.xp6(1),i.Q6J("ngIf",i.lcZ(13,13,t.documentationPropertyType)),i.xp6(2),i.Q6J("ngIf",n.showValues)}}function Yo(t,e){if(1&t&&(i.TgZ(0,"table",4),i.TgZ(1,"tr",5),i.TgZ(2,"th",6),i._uU(3),i.qZA(),i.TgZ(4,"th",7),i._uU(5),i.qZA(),i.YNc(6,Mo,2,1,"th",8),i.qZA(),i.YNc(7,qo,15,15,"tr",9),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw();i.xp6(3),i.Oqu(e.texts[2]),i.xp6(2),i.Oqu(e.type),i.xp6(1),i.Q6J("ngIf",e.showValues&&!e.isAPI),i.xp6(1),i.Q6J("ngForOf",t)}}function Uo(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Yo,8,4,"table",3),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("ngIf",t.length)}}function Ho(t,e){1&t&&i._UZ(0,"span",8),2&t&&i.Q6J("textContent",e.polymorpheusOutlet)}function Go(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).copyExampleLink()}),i.ALo(1,"async"),i.qZA()}if(2&t){const t=i.oxw(2);i.Q6J("icon",t.options.linkIcon)("title",i.lcZ(1,2,t.copy$))}}function Jo(t,e){if(1&t&&(i.TgZ(0,"h3",5),i.YNc(1,Ho,1,1,"span",6),i.ALo(2,"tuiDocExampleCapitalize"),i.YNc(3,Go,2,4,"button",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",i.lcZ(2,2,t.heading)),i.xp6(2),i.Q6J("ngIf",t.id)}}function Xo(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function Qo(t,e){if(1&t&&(i.TgZ(0,"h4",10),i.YNc(1,Xo,2,1,"ng-container",11),i.ALo(2,"tuiDocExampleCapitalize"),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",i.lcZ(2,1,t.description))}}function Wo(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function Ko(t,e){if(1&t&&(i.TgZ(0,"button",21),i.YNc(1,Wo,2,1,"ng-container",11),i.qZA()),2&t){const t=i.oxw().$implicit,e=i.oxw(4);i.xp6(1),i.Q6J("polymorpheusOutlet",e.getTabTitle(t))}}function ts(t,e){1&t&&(i.ynx(0),i.YNc(1,Ko,2,1,"button",20),i.BQk())}function es(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function ns(t,e){if(1&t&&(i.ynx(0),i.YNc(1,es,2,1,"ng-container",11),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("polymorpheusOutlet",t)}}function is(t,e){if(1&t&&(i.TgZ(0,"button",25),i._uU(1),i.qZA()),2&t){const t=i.oxw(5);i.xp6(1),i.hij(" Edit on ",t.codeEditor.name," ")}}function rs(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-loader",22),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(3).ngIf;return i.oxw().edit(e)}),i.ALo(1,"async"),i.YNc(2,ns,2,1,"ng-container",23),i.YNc(3,is,2,1,"ng-template",null,24,i.W1O),i.qZA()}if(2&t){const t=i.MAs(4),e=i.oxw(4);i.Q6J("overlay",!0)("showLoader",!!i.lcZ(1,4,e.loading$)),i.xp6(2),i.Q6J("ngIf",null==e.codeEditor?null:e.codeEditor.content)("ngIfElse",t)}}function os(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",16),i.TgZ(1,"tui-tabs-with-more",17),i.NdJ("activeItemIndexChange",function(e){return i.CHM(t),i.oxw(3).activeItemIndex=e}),i.YNc(2,ts,2,0,"ng-container",18),i.qZA(),i.YNc(3,rs,5,6,"tui-loader",19),i.ALo(4,"tuiMapper"),i.qZA()}if(2&t){const t=i.oxw().ngIf,e=i.oxw().ngIf,n=i.oxw();i.xp6(1),i.Q6J("activeItemIndex",n.activeItemIndex),i.xp6(1),i.Q6J("ngForOf",t),i.xp6(1),i.Q6J("ngIf",i.xi3(4,3,e,n.visible))}}function ss(t,e){if(1&t&&i.GkF(0,29),2&t){i.oxw(4);const t=i.MAs(5);i.Q6J("ngTemplateOutlet",t)}}const as=function(t){return{$implicit:t}};function ls(t,e){if(1&t&&i.GkF(0,30),2&t){const t=i.oxw(2).ngIf,e=i.oxw().ngIf,n=i.oxw(),r=i.MAs(7);i.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",i.VKq(2,as,(null==e?null:e[t[n.activeItemIndex]])||""))}}function cs(t,e){if(1&t&&(i.TgZ(0,"div",26),i.YNc(1,ss,1,1,"ng-container",27),i.YNc(2,ls,1,4,"ng-template",null,28,i.W1O),i.qZA()),2&t){const t=e.index,n=i.MAs(3),r=i.oxw(3);i.ekj("t-content_animated",!r.isE2E)("t-content_visible",r.activeItemIndex===t),i.xp6(1),i.Q6J("ngIf",t===r.defaultTabIndex)("ngIfElse",n)}}function us(t,e){if(1&t&&(i.ynx(0),i.YNc(1,os,5,6,"div",14),i.YNc(2,cs,4,6,"div",15),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("ngIf",t.length>1),i.xp6(1),i.Q6J("ngForOf",t)}}function hs(t,e){if(1&t&&(i.TgZ(0,"div",12),i.YNc(1,us,3,2,"ng-container",13),i.ALo(2,"tuiDocExampleGetTabs"),i.qZA()),2&t){const t=e.ngIf,n=i.oxw();i.xp6(1),i.Q6J("ngIf",i.xi3(2,1,t,n.defaultTab))}}function ds(t,e){1&t&&(i.TgZ(0,"div",31),i.Hsn(1),i.qZA())}function ps(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}function fs(t,e){if(1&t&&(i.ynx(0),i.YNc(1,ps,2,1,"ng-container",33),i.BQk()),2&t){const t=e.$implicit,n=i.oxw().$implicit;i.xp6(1),i.Q6J("polymorpheusOutlet",t)("polymorpheusOutletContext",i.VKq(2,as,n))}}function gs(t,e){if(1&t&&(i.TgZ(0,"tui-doc-code",32),i.YNc(1,fs,2,4,"ng-container",18),i.qZA()),2&t){const t=e.$implicit,n=i.oxw();i.Q6J("code",t),i.xp6(1),i.Q6J("ngForOf",n.codeActions)}}function ms(t,e){1&t&&i._UZ(0,"tui-svg",16),2&t&&i.Q6J("src",e.polymorpheusOutlet)}function vs(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",14),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(4),n=i.MAs(1);return e.onClick(n)}),i._uU(1),i.YNc(2,ms,1,1,"tui-svg",15),i.qZA()}if(2&t){const t=e.$implicit;i.Q6J("fragment",t.fragment)("routerLink",t.route),i.xp6(1),i.hij(" ",t.title," "),i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)}}function _s(t,e){if(1&t&&(i.TgZ(0,"tui-opt-group",12),i.YNc(1,vs,3,4,"a",13),i.qZA()),2&t){const t=e.$implicit,n=e.index,r=i.oxw(3);i.Q6J("label",r.labels[n]||""),i.xp6(1),i.Q6J("ngForOf",t)}}function ys(t,e){if(1&t&&(i.TgZ(0,"tui-data-list"),i.YNc(1,_s,2,2,"tui-opt-group",11),i.ALo(2,"async"),i.qZA()),2&t){const t=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,1,t.filtered$))}}function bs(t,e){1&t&&(i.ynx(0),i.YNc(1,ys,3,3,"tui-data-list",10),i.BQk())}const ws=function(t,e){return{item:t,index:e}};function Cs(t,e){if(1&t&&i.GkF(0,21),2&t){const t=e.$implicit,n=e.index,r=i.oxw(2).index;i.oxw();const o=i.MAs(12);i.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",i.WLB(2,ws,t,100*r+n))}}function xs(t,e){if(1&t&&(i.TgZ(0,"div",20),i.YNc(1,Cs,1,5,"ng-container",8),i.qZA()),2&t){const t=i.oxw().index,e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.items[t])}}function ks(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-accordion-item",17),i.NdJ("openChange",function(e){const n=i.CHM(t).index;return!!(i.oxw().openPagesArr[n]=e)}),i.TgZ(1,"span",18),i.TgZ(2,"strong"),i._uU(3),i.qZA(),i.qZA(),i.YNc(4,xs,2,1,"ng-template",19),i.qZA()}if(2&t){const t=e.$implicit,n=e.index,r=i.oxw();i.Q6J("borders",null)("open",!!r.openPagesArr[n]),i.xp6(3),i.Oqu(t)}}function Os(t,e){if(1&t&&i.GkF(0,21),2&t){const t=e.$implicit,n=e.index,r=i.oxw(),o=i.MAs(12);i.Q6J("ngTemplateOutlet",o)("ngTemplateOutletContext",i.WLB(2,ws,t,r.items.length-1+n))}}function Ms(t,e){1&t&&i._UZ(0,"tui-svg",16),2&t&&i.Q6J("src",e.polymorpheusOutlet)}function Ss(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",24),i.NdJ("click",function(){return i.CHM(t),i.oxw(2).closeMenu()}),i._uU(1),i.YNc(2,Ms,1,1,"tui-svg",15),i.qZA()}if(2&t){const t=i.oxw().item,e=i.oxw();i.Q6J("routerLink",t.route)("tuiScrollIntoViewLink",e.isActive(t.route)),i.xp6(1),i.hij(" ",t.title," "),i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)}}function Ps(t,e){1&t&&i._UZ(0,"tui-svg",16),2&t&&i.Q6J("src",e.polymorpheusOutlet)}function Es(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",30),i.NdJ("click",function(){i.CHM(t);const e=i.oxw(2).index;return i.oxw().onGroupClick(e)}),i._UZ(1,"tui-svg",31),i._uU(2),i.YNc(3,Ps,1,1,"tui-svg",15),i.qZA()}if(2&t){const t=i.oxw(2),e=t.index,n=t.item,r=i.oxw();i.xp6(1),i.ekj("t-chevron_active",!!r.openPagesGroupsArr[e]),i.Q6J("src",r.icons.more),i.xp6(1),i.hij(" ",n.title," "),i.xp6(1),i.Q6J("polymorpheusOutlet",n.icon)}}function Ts(t,e){1&t&&i._UZ(0,"tui-svg",16),2&t&&i.Q6J("src",e.polymorpheusOutlet)}function As(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"a",32),i.NdJ("click",function(){return i.CHM(t),i.oxw(3).closeMenu()}),i._uU(1),i.YNc(2,Ts,1,1,"tui-svg",15),i.qZA()}if(2&t){const t=e.$implicit,n=i.oxw(3);i.Q6J("fragment",t.fragment)("routerLink",t.route)("tuiScrollIntoViewLink",n.isActive(t.route)),i.xp6(1),i.hij(" ",t.title," "),i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)}}const Is=function(){return{exact:!1}};function Ds(t,e){if(1&t&&(i.TgZ(0,"div",25),i.YNc(1,Es,4,5,"button",26),i.TgZ(2,"tui-expand",27),i.TgZ(3,"div",28),i.YNc(4,As,3,5,"a",29),i.qZA(),i.qZA(),i.qZA()),2&t){const t=i.oxw(),e=t.item,n=t.index,r=i.oxw();i.Q6J("routerLinkActiveOptions",i.DdM(4,Is)),i.xp6(1),i.Q6J("ngIf",e.subPages),i.xp6(1),i.Q6J("expanded",!!r.openPagesGroupsArr[n]),i.xp6(2),i.Q6J("ngForOf",r.$pages(e.subPages))}}function Ns(t,e){if(1&t&&(i.YNc(0,Ss,3,4,"a",22),i.YNc(1,Ds,5,5,"ng-template",null,23,i.W1O)),2&t){const t=e.item,n=i.MAs(2);i.Q6J("ngIf",!t.subPages)("ngIfElse",n)}}const Ls=["tuiDocHeader",""];function zs(t,e){1&t&&i._UZ(0,"tui-doc-navigation",4)}function Fs(t,e){1&t&&i._UZ(0,"img",5),2&t&&i.Q6J("src",e.polymorpheusOutlet,i.LSH)}function Rs(t,e){1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t&&(i.xp6(1),i.Oqu(", "))}function js(t,e){if(1&t&&(i.ynx(0),i._UZ(1,"a",2),i.YNc(2,Rs,2,1,"ng-container",3),i.BQk()),2&t){const t=e.$implicit,n=e.last,r=i.oxw();i.xp6(1),i.Q6J("innerText",t)("routerLink",r.getRouterLink(t)),i.xp6(1),i.Q6J("ngIf",!n)}}function Bs(t,e){if(1&t&&i._UZ(0,"a",1),2&t){const t=e.polymorpheusOutlet,n=i.oxw();i.Q6J("href",t,i.LSH)("icon",n.icons.code)("title",n.text)}}function Vs(t,e){1&t&&i._UZ(0,"tui-theme-night")}const $s=[[["tuiDocNavigation"]],[["tuiDocHeader"]],[["tuiOverContent"]],[["tuiOverDialogs"]],[["tuiOverAlerts"]],[["tuiOverPortals"]],[["tuiOverHints"]]],Zs=["tuiDocNavigation","tuiDocHeader","tuiOverContent","tuiOverDialogs","tuiOverAlerts","tuiOverPortals","tuiOverHints"];function qs(t,e){1&t&&i._UZ(0,"tui-tag",9)}function Ys(t,e){if(1&t&&i._UZ(0,"tui-tag",10),2&t){const t=i.oxw();i.Q6J("autoColor",!0)("value",t.package)}}const Us=function(t){return{exact:t}};function Hs(t,e){if(1&t&&(i.TgZ(0,"a",14),i.ALo(1,"tuiReplace"),i._uU(2),i.qZA()),2&t){const t=i.oxw().ngIf,e=i.oxw().first,n=i.oxw(2);i.Q6J("routerLink",e?"./":i.Dn7(1,3,t,n.from,n.to))("routerLinkActiveOptions",i.VKq(7,Us,e)),i.xp6(2),i.hij(" ",t," ")}}function Gs(t,e){1&t&&(i.ynx(0),i.YNc(1,Hs,3,9,"a",13),i.BQk())}function Js(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Gs,2,0,"ng-container",12),i.BQk()),2&t){const t=e.$implicit,n=e.index,r=i.oxw(2);i.xp6(1),i.Q6J("ngIf",t.pageTab||r.defaultTabs[n])}}function Xs(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"tui-tabs-with-more",11),i.NdJ("activeItemIndexChange",function(e){return i.CHM(t),i.oxw().activeItemIndex=e}),i.YNc(1,Js,2,1,"ng-container",8),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("activeItemIndex",t.activeItemIndex),i.xp6(1),i.Q6J("ngForOf",t.tabConnectors)}}function Qs(t,e){if(1&t&&i._UZ(0,"tui-doc-see-also",15),2&t){const t=i.oxw();i.Q6J("seeAlso",t.seeAlso)}}function Ws(t,e){if(1&t&&i.GkF(0,17),2&t){const t=i.oxw().$implicit;i.Q6J("ngTemplateOutlet",t.template)}}function Ks(t,e){if(1&t&&(i.ynx(0),i.YNc(1,Ws,1,1,"ng-container",16),i.BQk()),2&t){const t=e.index,n=i.oxw();i.xp6(1),i.Q6J("ngIf",t===n.activeItemIndex)}}let ta=(()=>{class t{constructor(t){this.texts$=t,this.copy$=new s.xQ}get copied$(){return this.copy$.pipe((0,u.w)(()=>(0,a.H)(1500).pipe((0,h.U)(U.Iy),(0,d.O)(!0))))}onClick(){this.copy$.next()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(_t.UV))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-doc-copy"]],features:[i._Bn([I.a3])],ngContentSelectors:co,decls:2,vars:3,consts:[["appearance","","size","s","tuiButton","","type","button","class","t-copy",3,"title","click",4,"ngIf"],["appearance","","size","s","tuiButton","","type","button",1,"t-copy",3,"title","click"],[1,"t-content"],[1,"t-initial"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,lo,6,7,"button",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.texts$))},directives:[Ct.O5,Ye.v0],pipes:[Ct.Ov],styles:["[_nghost-%COMP%]{position:relative;display:inline-block;vertical-align:middle}.t-copy[_ngcontent-%COMP%]{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:100%;color:var(--tui-text-01);background:var(--tui-base-01);overflow:hidden}.t-copy[_ngcontent-%COMP%]:hover{background:var(--tui-base-02)}.t-initial[_ngcontent-%COMP%]{white-space:nowrap}.t-initial[_ngcontent-%COMP%]:empty:before{content:attr(data-text)}.t-content[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;flex-direction:column;transform:translateY(1rem);text-align:center;line-height:2rem}.t-content_moved[_ngcontent-%COMP%]{transform:translateY(-1rem)}"],changeDetection:0}),(0,y.gn)([st.UM],t.prototype,"copied$",null),t})(),ea=(()=>{class t{constructor(t){this.markdownCodeProcessor=t,this.rawLoader$$=new l.X(""),this.filename="",this.processor$=this.rawLoader$$.pipe((0,u.w)(o.JQ),(0,h.U)(t=>this.markdownCodeProcessor(t)))}set code(t){this.rawLoader$$.next(t)}get hasFilename(){return!!this.filename}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.Es))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-doc-code"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_has-filename",e.hasFilename)},inputs:{filename:"filename",code:"code"},ngContentSelectors:co,decls:3,vars:4,consts:[["class","t-header",4,"ngIf"],["class","t-code",4,"ngFor","ngForOf"],[1,"t-header"],[1,"t-code"],[3,"lineNumbers","highlight"],[1,"t-code-actions"],[1,"t-copy",3,"cdkCopyToClipboard"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,uo,2,1,"p",0),i.YNc(1,ho,11,3,"pre",1),i.ALo(2,"async")),2&t&&(i.Q6J("ngIf",e.filename),i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,2,e.processor$)))},directives:[Ct.O5,Ct.sg,$r.y$,ta,Ur],pipes:[Ct.Ov],styles:["[_nghost-%COMP%]{display:block}.t-header[_ngcontent-%COMP%]{font:var(--tui-font-text-s);font-weight:bold}.t-code[_ngcontent-%COMP%]{position:relative;margin:0;white-space:normal}.t-code[_ngcontent-%COMP%]:hover .t-code-actions[_ngcontent-%COMP%], .t-code[_ngcontent-%COMP%]:focus-visible .t-code-actions[_ngcontent-%COMP%]{opacity:1}.t-code[_ngcontent-%COMP%] + .t-code[_ngcontent-%COMP%]{margin-top:1rem}.t-code-actions[_ngcontent-%COMP%]{position:absolute;top:.875rem;right:2rem;display:flex;opacity:0;grid-gap:.5rem;gap:.5rem;flex-direction:row-reverse}.hljs[_ngcontent-%COMP%]:not(:empty){font:var(--tui-font-text-m);padding:1.5rem 2rem;font-family:monospace;background:var(--tui-clear);word-wrap:break-word;white-space:pre-wrap}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar, .hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:.375rem solid transparent}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar{background-color:transparent}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.hljs[_ngcontent-%COMP%]:not(:empty)::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}._has-filename[_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty){border-radius:.75rem}tui-root._mobile[_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty), tui-root._mobile [_nghost-%COMP%] .hljs[_ngcontent-%COMP%]:not(:empty){padding:1rem}"],changeDetection:0}),t})(),na=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,Ye.fN]]}),t})(),ia=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,$r._l,na,Hr]]}),t})(),ra=(()=>{class t{constructor(t,e,n,i,r,a,l){var c,u;this.options=t,this.isMobile=e,this.el=n,this.locationRef=i,this.urlSerializer=r,this.texts=a,this.urlStateHandler=l,this.control=null,this.sticky=!0,this.template=null,this.updateOnVariants=["change","blur","submit"],this.updateOn=this.params.updateOn||this.updateOnVariants[0],this.opaque=(0,o.cd)(null===(c=this.params.sandboxOpaque)||void 0===c||c),this.expanded=(0,o.cd)(null!==(u=this.params.sandboxExpanded)&&void 0!==u&&u),this.mode=this.params.tuiMode||null,this.sandboxWidth=(0,at.oY)(this.params.sandboxWidth),this.change$=new s.xQ,this.items=["onLight","onDark"]}onResize(){this.updateWidth(),this.onMouseUp()}onMouseUp(){this.updateUrl({sandboxWidth:this.sandboxWidth})}ngOnInit(){this.createForm(),this.updateWidth(this.sandboxWidth+this.delta)}onModeChange(t){this.mode=t,this.updateUrl({sandboxWidth:this.sandboxWidth}),this.change$.next()}toggleDetails(){this.expanded=!this.expanded,this.updateUrl({sandboxExpanded:this.expanded})}changeOpaque(t){this.opaque=t,this.updateUrl({sandboxOpaque:this.opaque})}updateOnChange(t){this.updateOn=t,this.updateUrl({updateOn:t}),this.createForm()}updateWidth(t=NaN){if(!this.resizer||!this.resizeable||!this.content)return;const e=t||this.resizeable.nativeElement.clientWidth,n=this.el.nativeElement.clientWidth,i=Math.round((0,at.Ki)(e,160,n))-this.delta,r=et)}])],ngContentSelectors:co,decls:16,vars:14,consts:[[1,"t-bg-toggle",3,"tuiMode"],["tooltip",""],[4,"ngIf","ngIfElse"],["desktop",""],["size","m",1,"t-checkbox",3,"ngModel","ngModelChange"],["tuiResizeable","",1,"t-wrapper"],["id","demo-content",1,"t-content"],["content",""],["class","t-form",3,"formGroup",4,"ngIf"],[1,"t-resizer",3,"tuiResizer","tuiSizeChange"],["resizer",""],["routerLink","/directives/mode","tuiLink","","tuiMode","onDark"],["tuiTextfieldSize","s",1,"t-mode",3,"ngModel","tuiHintContent","tuiTextfieldCleaner","ngModelChange"],[3,"items",4,"tuiDataList"],[3,"items"],["describeId","form",3,"content"],["tuiGroup","",1,"t-group",3,"collapsed"],["nativeId","form","size","s",1,"tui-group__auto-width-item",3,"hideRadio","item","ngModel","ngModelChange"],["item","onDark","nativeId","form","size","s",1,"tui-group__auto-width-item",3,"hideRadio","ngModel","ngModelChange"],["item","onLight","nativeId","form","size","s",1,"tui-group__auto-width-item",3,"hideRadio","ngModel","ngModelChange"],[1,"t-form",3,"formGroup"],[1,"t-input-wrapper"],[3,"ngTemplateOutlet"],["automation-id","tui-demo-button__toggle-details","size","s","tuiButton","","type","button",1,"t-button",3,"iconRight","click"],["icon",""],[1,"t-expand",3,"expanded"],["tuiExpandContent",""],[1,"t-icon",3,"src"],[1,"t-value"],["tuiGroup","",1,"t-form-controls"],["automation-id","tui-demo-select__expand-update-on","tuiTextfieldSize","s",1,"t-select",3,"ngModel","ngModelOptions","ngModelChange"],["automation-id","tui-demo-button__reset-state","size","s","tuiButton","","type","reset",1,"tui-group__auto-width-item"],["automation-id","tui-demo-button__submit-state","size","s","tuiButton","","type","submit",1,"tui-group__auto-width-item"]],template:function(t,e){if(1&t&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,go,4,1,"ng-template",null,1,i.W1O),i.YNc(3,vo,4,3,"ng-container",2),i.YNc(4,_o,9,9,"ng-template",null,3,i.W1O),i.TgZ(6,"tui-checkbox-labeled",4),i.NdJ("ngModelChange",function(t){return e.changeOpaque(t)}),i._uU(7),i.qZA(),i.qZA(),i.TgZ(8,"div",5),i.TgZ(9,"div",6),i.TgZ(10,"div",null,7),i.YNc(12,xo,9,5,"form",8),i.Hsn(13),i.qZA(),i.qZA(),i.TgZ(14,"div",9,10),i.NdJ("tuiSizeChange",function(t){return e.updateWidth(t[0])}),i.qZA(),i.qZA()),2&t){const t=i.MAs(5);i.Q6J("tuiMode",null),i.xp6(3),i.Q6J("ngIf",e.isMobile)("ngIfElse",t),i.xp6(3),i.Q6J("ngModel",e.opaque),i.xp6(1),i.hij(" ",e.texts[1]," "),i.xp6(1),i.ekj("t-wrapper_dark","onDark"===e.mode)("t-wrapper_gray","onLight"===e.mode)("t-wrapper_transparent",!e.opaque),i.xp6(4),i.Q6J("ngIf",e.testForm),i.xp6(2),i.Q6J("tuiResizer",i.DdM(13,ko))}},directives:[he.w,Ct.O5,Pi.p,It.JJ,It.On,x,k,cn.yS,fr.V,ae,le,dt.sz,gr.bZ,dt.be,ft.gX,Et,mr.w,ni.gZ,Me,It._Y,It.JL,It.sg,Ct.tP,Ye.v0,ti,Kn,Dt.PN],pipes:[Ct.Ts],styles:['[_nghost-%COMP%]{position:relative;display:block;min-width:100%;margin:1.5rem 0}.t-bg-toggle[_ngcontent-%COMP%]{position:absolute;bottom:calc(100% + .75rem);display:flex;align-items:center;justify-content:flex-end;pointer-events:none;width:100%}.t-bg-toggle[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{pointer-events:auto}.t-wrapper[_ngcontent-%COMP%]{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;display:flex;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);max-width:100%;min-height:6rem;width:100%;min-width:10rem;background-color:var(--tui-base-01);overflow:hidden}.t-wrapper.t-wrapper_transparent[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-02) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-02) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-02) 75%);background-size:1.25rem 1.25rem;background-position:0 0,0 .625rem,.625rem -.625rem,-.625rem 0}.t-wrapper.t-wrapper_dark[_ngcontent-%COMP%]{background-color:#454e58;color:var(--tui-base-01)}.t-wrapper.t-wrapper_gray[_ngcontent-%COMP%]{background-color:#e5e7ea}.t-wrapper.t-wrapper_dark.t-wrapper_transparent[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-focus) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-focus) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-focus) 75%)}.t-wrapper.t-wrapper_gray.t-wrapper_transparent[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(-45deg,var(--tui-base-05) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--tui-base-05) 75%),linear-gradient(-45deg,transparent 75%,var(--tui-base-05) 75%)}tui-root._mobile[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{min-height:auto}.t-content[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;padding:1.5rem;box-sizing:border-box;overflow:hidden}tui-root._mobile[_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:1rem}.t-form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:flex-start}.t-input-wrapper[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}.t-expand[_ngcontent-%COMP%]{width:100%}.t-icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out}.t-icon_rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.t-value[_ngcontent-%COMP%]{flex:1;background:var(--tui-clear-inverse);padding:.75rem;border-radius:.25rem}.t-mode[_ngcontent-%COMP%]{width:12.5rem}.t-select[_ngcontent-%COMP%]{max-width:15rem}.t-resizer[_ngcontent-%COMP%]{box-shadow:0 1.5rem 1rem #00000008,0 .75rem .75rem #0000000a,0 .25rem .375rem #0000000d;position:relative;width:3.5rem;min-height:inherit;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-left:1px solid var(--tui-base-03);outline:none;background:var(--tui-base-01);color:var(--tui-text-01)}.t-resizer[_ngcontent-%COMP%]:before, .t-resizer[_ngcontent-%COMP%]:after{content:"";position:absolute;top:.75rem;left:50%;bottom:calc(50% + 1rem);width:1px;background:var(--tui-base-04);box-shadow:-.25rem 0 var(--tui-base-04);transform:translate(0)}.t-resizer[_ngcontent-%COMP%]:after{bottom:.75rem;top:calc(50% + 1rem)}tui-root._mobile[_nghost-%COMP%] .t-resizer[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-resizer[_ngcontent-%COMP%]{display:none}.t-resizer-text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);position:relative;z-index:1;padding:.75rem;background:var(--tui-base-01)}.wrapper_light[_ngcontent-%COMP%] .t-resizer-text[_ngcontent-%COMP%]{background:#3e464e}.t-group[_ngcontent-%COMP%], .t-checkbox[_ngcontent-%COMP%]{margin-left:.75rem}.t-button[_ngcontent-%COMP%], .t-form-controls[_ngcontent-%COMP%]{margin-top:.75rem}@supports ((position: -webkit-sticky) or (position: sticky)){@media screen and (min-height: 37.5rem){._sticky[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:4.625rem;z-index:2}}}'],changeDetection:0}),(0,y.gn)([st.UM],t.prototype,"updateUrl",null),t})(),oa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,It.UX,It.u5,cn.Bz,fr.j,Ye.fN,ce,ei,ni.n6,mr.Q,he.z,Se,Pi.s,Dt.EI,Tt,ft.pc,dt.cn,gr.go,O]]}),t})(),sa=(()=>{class t{constructor(t,e,n,r,o){this.template=t,this.locationRef=e,this.activatedRoute=n,this.urlSerializer=r,this.urlStateHandler=o,this.documentationPropertyName="",this.documentationPropertyMode=null,this.documentationPropertyType="",this.documentationPropertyDeprecated=!1,this.documentationPropertyValues=null,this.documentationPropertyValueChange=new i.vpe,this.changed$=new s.xQ,this.emits$=new l.X(1)}ngOnInit(){this.parseParams(this.activatedRoute.snapshot.queryParams)}get attrName(){switch(this.documentationPropertyMode){case"input":return`[${this.documentationPropertyName}]`;case"output":return`(${this.documentationPropertyName})`;case"input-output":return`[(${this.documentationPropertyName})]`;default:return this.documentationPropertyName}}get hasItems(){return!!this.documentationPropertyValues}get shouldShowValues(){return"output"!==this.documentationPropertyMode}ngOnChanges(){this.changed$.next()}onValueChange(t){this.documentationPropertyValue=t,this.documentationPropertyValueChange.emit(t),this.setQueryParam(t)}emitEvent(t){console.info(this.attrName,t),this.emits$.next(this.emits$.value+1)}parseParams(t){const e=t[this.documentationPropertyName],n=t[`${this.documentationPropertyName}$`];if(!e&&!n)return;let i=n&&this.documentationPropertyValues?this.documentationPropertyValues[n]:(0,o.p8)(e);"string"===this.documentationPropertyType&&(0,Y.dt)(i)&&(i=i.toString()),this.onValueChange(i)}setQueryParam(t){const e=this.urlSerializer.parse(this.locationRef.path()),n=t instanceof Object,i=n&&this.documentationPropertyValues?this.documentationPropertyValues.indexOf(t):t,r=this.documentationPropertyName+(n?"$":"");e.queryParams=Object.assign(Object.assign({},e.queryParams),{[r]:i}),this.locationRef.go(this.urlStateHandler(e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Rgc),i.Y36(Ct.Ye),i.Y36(cn.gz),i.Y36(cn.Hx),i.Y36(r.Ii))},t.\u0275dir=i.lG2({type:t,selectors:[["ng-template","documentationPropertyName",""]],inputs:{documentationPropertyName:"documentationPropertyName",documentationPropertyMode:"documentationPropertyMode",documentationPropertyType:"documentationPropertyType",documentationPropertyValue:"documentationPropertyValue",documentationPropertyDeprecated:"documentationPropertyDeprecated",documentationPropertyValues:"documentationPropertyValues"},outputs:{documentationPropertyValueChange:"documentationPropertyValueChange"},exportAs:["documentationProperty"],features:[i.TTD]}),t})(),aa=(()=>{class t{transform(t){return 4===t.length?t.split("").reduce((t,e)=>[...t,e,e],[]).join("").replace("#",""):t.startsWith("#")?t:"transparent"===t?"#000000":function(t,e,n){return`#${[t,e,n].map(t=>t.toString(16).padStart(2,"0")).join("")}`}(...t.replace("rgb(","").replace("rgba(","").replace(")","").replace(" ","").split(",").map(t=>Number.parseInt(t,10)))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiGetColorPipe",type:t,pure:!0}),t})(),la=(()=>{class t{transform(t){if(t.startsWith("#")||t.startsWith("rgb("))return 100;if("transparent"===t)return 0;const e=t.lastIndexOf(","),n=t.slice(e).replace(")","").replace(" ","").replace(",","");return Math.round(100*Number.parseFloat(n))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiGetOpacity",type:t,pure:!0}),t})(),ca=(()=>{class t{constructor(t,e){this.renderer=t,this.focusable=e}set tuiInputOpacity(t){const{nativeFocusableElement:e}=this.focusable;e&&this.renderer.setStyle(e,"opacity",t/100)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Qsj),i.Y36(q.KZ))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiInputOpacity",""]],inputs:{tuiInputOpacity:"tuiInputOpacity"}}),t})(),ua=(()=>{class t{transform(t){return t.replace("?","")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiStripOptionalPipe",type:t,pure:!0}),t})(),ha=(()=>{class t{transform(t){return t.includes("?")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiIsOptionalPipe",type:t,pure:!0}),t})(),da=(()=>{class t{transform(t){return t.includes("PolymorpheusContent")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiShowContentTooltip",type:t,pure:!0}),t})(),pa=(()=>{class t{transform(t){return t.includes("null")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiShowCleanerPipe",type:t,pure:!0}),t})(),fa=(()=>{class t{constructor(t){this.isE2E=t}transform(t,e=2){return this.isE2E&&"function"==typeof t?"\u03bb(x) => y":(0,o.sj)(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(q.oD,16))},t.\u0275pipe=i.Yjl({name:"tuiInspectAny",type:t,pure:!0}),t})(),ga=(()=>{class t{transform(t){return(0,Y.Aj)(t)||(0,Y.dt)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiIsPrimitivePolymorpheusContentPipe",type:t,pure:!0}),t})(),ma=(()=>{class t{constructor(t,e,n,i,r,o){this.cdr=t,this.texts=e,this.excludedProperties=n,this.destroy$=i,this.getColor=r,this.getOpacity=o,this.heading="",this.showValues=!0,this.isAPI=!1,this.propertiesConnectors=U.Mm,this.activeItemIndex=0,this.matcher=(t,e)=>!e.has(t.documentationPropertyName)}ngAfterContentInit(){(0,lt.ll)(this.propertiesConnectors).pipe((0,u.w)(t=>(0,c.T)(...t.map(({changed$:t})=>t))),(0,lt.NA)(this.cdr),(0,p.R)(this.destroy$)).subscribe()}get type(){return this.isAPI?this.texts[0]:this.texts[1]}onColorChange(t,e){const n=this.getOpacity.transform(t.documentationPropertyValue||"");if(100===n)return void t.onValueChange(e);const i=`rgba(${ot(e).join(", ")}, ${n/100})`;t.onValueChange(i)}onOpacityChange(t,e){const n=`rgba(${ot(this.getColor.transform(t.documentationPropertyValue||""))}, ${(e||0)/100})`;t.onValueChange(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(r.IK),i.Y36(r.et),i.Y36(I.a3,2),i.Y36(aa),i.Y36(la))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-doc-documentation"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,sa,4),2&t){let t;i.iGM(t=i.CRH())&&(e.propertiesConnectors=t)}},inputs:{heading:"heading",showValues:"showValues",isAPI:"isAPI"},features:[i._Bn([aa,la,I.a3])],ngContentSelectors:co,decls:4,vars:6,consts:[["class","t-heading",4,"ngIf"],[4,"ngIf"],[1,"t-heading"],["class","t-table",4,"ngIf"],[1,"t-table"],[1,"t-row","t-row_header"],[1,"t-th","t-cell","t-cell_prop"],[1,"t-th"],["class","t-th t-cell t-th_value",4,"ngIf"],["class","t-row",3,"t-deprecated",4,"ngFor","ngForOf"],[1,"t-th","t-cell","t-th_value"],[1,"t-row"],[1,"t-cell"],["automation-id","tui-documentation__property-name",1,"t-property"],["size","s","value","Optional",4,"ngIf"],["class","t-deprecated-label",4,"ngIf"],[3,"ngTemplateOutlet"],[1,"type"],[3,"content","describeId",4,"ngIf"],["class","t-cell t-cell_value",4,"ngIf"],["size","s","value","Optional"],[1,"t-deprecated-label"],[3,"content","describeId"],["content",""],["href","https://github.com/taiga-family/ng-polymorpheus","rel","noreferrer","target","_blank","tuiLink","","tuiMode","onDark"],[1,"t-cell","t-cell_value"],[4,"ngIf","ngIfElse"],["elseEmitter",""],["tuiDropdownLimitWidth","min","tuiTextfieldSize","m",3,"nativeId","ngModel","tuiTextfieldCleaner","tuiTextfieldLabelOutside","valueContent","ngModelChange",4,"ngIf","ngIfElse"],["selectContent",""],["noItems",""],["tuiDropdownLimitWidth","min","tuiTextfieldSize","m",3,"nativeId","ngModel","tuiTextfieldCleaner","tuiTextfieldLabelOutside","valueContent","ngModelChange"],[1,"t-exception"],[3,"itemContent","items",4,"tuiDataList"],[3,"itemContent","items"],[3,"ngSwitch"],["size","l",3,"nativeId","ngModel","showIcons","ngModelChange",4,"ngSwitchCase"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldCleaner","tuiTextfieldLabelOutside","value","valueChange",4,"ngSwitchCase"],["tuiGroup","",4,"ngSwitchCase"],["tuiTextfieldSize","m",3,"nativeId","ngModel","step","tuiTextfieldLabelOutside","ngModelChange",4,"ngSwitchCase"],[4,"ngSwitchCase"],["size","l",3,"nativeId","ngModel","showIcons","ngModelChange"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldCleaner","tuiTextfieldLabelOutside","value","valueChange"],["tuiGroup",""],["tuiTextfieldSize","m",3,"tuiInputOpacity","tuiTextfieldLabelOutside","value","valueChange"],["tuiTextfield","","type","text"],["tuiTextfieldSize","m",3,"max","min","ngModel","step","ngModelChange"],["tuiTextfieldSize","m",3,"nativeId","ngModel","step","tuiTextfieldLabelOutside","ngModelChange"],["tuiTextfieldSize","m",3,"nativeId","tuiTextfieldCleaner","tuiTextfieldLabelOutside","value","valueChange",4,"ngIf"],[1,"t-output"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,Oo,2,1,"h1",0),i.Hsn(1),i.YNc(2,Uo,2,1,"ng-container",1),i.ALo(3,"tuiFilter")),2&t&&(i.Q6J("ngIf",e.heading),i.xp6(2),i.Q6J("ngIf",i.Dn7(3,2,e.propertiesConnectors,e.matcher,e.excludedProperties)))},directives:[Ct.O5,Ct.sg,Ct.tP,Te,mr.w,fr.V,he.w,ae,le,dn.Ek,dt.sz,It.JJ,It.On,dt.be,dt.xT,ft.gX,Et,Ct.RF,Ct.n9,$e,ht.yc,ht.B1,ni.gZ,ca,ht.MB,sn,an,vr.L],pipes:[M,ua,ha,da,pa,fa,la,aa,ga,Ct.Ov],styles:["[_nghost-%COMP%]{display:block;min-width:100%}.t-table[_ngcontent-%COMP%]{width:100%;table-layout:fixed}.t-row[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--tui-base-03)}tui-root._mobile[_nghost-%COMP%] .t-row[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}tui-root._mobile[_nghost-%COMP%] .t-row_header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-row_header[_ngcontent-%COMP%]{display:none}.t-cell[_ngcontent-%COMP%]{padding:1rem 1rem .875rem}.t-cell[_ngcontent-%COMP%]:first-child{padding-left:0}.t-cell[_ngcontent-%COMP%]:last-child{padding-right:0}.t-cell_prop[_ngcontent-%COMP%]{width:40%}.t-cell_value[_ngcontent-%COMP%]{text-align:right}tui-root._mobile[_nghost-%COMP%] .t-cell[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-cell[_ngcontent-%COMP%]{width:100%;height:auto;padding:.5rem 0;text-align:left}.t-th[_ngcontent-%COMP%]{padding:.5rem 1rem;color:var(--tui-text-02);font-weight:normal;text-align:left}.t-th_value[_ngcontent-%COMP%]{max-width:20rem;text-align:right}tui-root._mobile[_nghost-%COMP%] .t-th_value[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-th_value[_ngcontent-%COMP%]{width:9.375rem}.t-property[_ngcontent-%COMP%]{font:var(--tui-font-text-m);margin-bottom:.25rem;font-family:monospace;color:#8f75d1}tui-root._mobile[_nghost-%COMP%] .t-property[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-property[_ngcontent-%COMP%]{padding:.5rem 0}.t-type[_ngcontent-%COMP%]{font-family:monospace}.t-deprecated[_ngcontent-%COMP%]{background-color:var(--tui-error-bg);box-shadow:-1rem 0 var(--tui-error-bg),1rem 0 var(--tui-error-bg)}.t-deprecated-label[_ngcontent-%COMP%]{margin-right:.125rem;color:var(--tui-error-fill)}.t-exception[_ngcontent-%COMP%]{display:block;width:-webkit-max-content;width:max-content}.t-output[_ngcontent-%COMP%]{text-align:left;opacity:0}.t-heading[_ngcontent-%COMP%]{font:var(--tui-font-heading-4)}"],data:{animation:[(0,Ai.X$)("emitEvent",[(0,Ai.eR)(":increment",[(0,Ai.oB)({opacity:1}),(0,Ai.jt)("500ms ease-in")])])]},changeDetection:0}),t})(),va=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})(),_a=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,It.u5,cn.Bz,Ae,ce,Ze,mr.Q,fr.j,ln,he.z,ni.n6,va,ht.KW,dt.cn,dn.dp,ft.pc,Tt,vr.H,S]]}),t})();const ya={codeEditorVisibilityHandler:t=>Boolean(t.TypeScript&&t.HTML),tabTitles:new Map,fullsize:!0,linkIcon:"tuiIconLink"},ba=(0,Y.JN)(ya);function wa(t){return(0,Y.vK)(ba,t,ya)}let Ca=(()=>{class t{transform(t){return(0,Y.Aj)(t)?function(t){return`${t.charAt(0).toUpperCase()}${t.slice(1)}`}(t):t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiDocExampleCapitalize",type:t,pure:!0}),t})(),xa=(()=>{class t{transform(t,e){return[e,...Object.keys(t)]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=i.Yjl({name:"tuiDocExampleGetTabs",type:t,pure:!0}),t})(),ka=(()=>{class t{constructor(t,e,n,i,r,a,c,d,p,f,g,m,v){this.clipboard=t,this.alerts=e,this.location=n,this.copyTexts$=i,this.texts=r,this.codeEditor=a,this.processContent=c,this.isE2E=d,this.codeActions=p,this.router=f,this.route=g,this.ngLocation=m,this.options=v,this.rawLoader$$=new l.X({}),this.id=null,this.fullsize=this.options.fullsize,this.componentName=this.location.pathname.slice(1),this.defaultTabIndex=0,this.defaultTab=this.texts[this.defaultTabIndex],this.activeItemIndex=this.defaultTabIndex,this.copy$=this.copyTexts$.pipe((0,h.U)(([t])=>t)),this.processor$=this.rawLoader$$.pipe((0,u.w)(o.vP),(0,h.U)(t=>this.processContent(t))),this.loading$=new s.xQ,this.visible=t=>Boolean(this.codeEditor&&this.options.codeEditorVisibilityHandler(t))}set content(t){this.rawLoader$$.next(t)}getTabTitle(t){return this.options.tabTitles.get(t)||t}copyExampleLink(){const t=this.location.href.indexOf("#"),e=`${t>-1?this.location.href.slice(0,Math.max(0,t)):this.location.href}#${this.id}`;this.setFragmentWithoutRedirect(this.id),this.clipboard.copy(e),this.alerts.open(this.texts[1],{label:this.texts[2],status:"success"}).subscribe()}edit(t){var e;this.loading$.next(!0),null===(e=this.codeEditor)||void 0===e||e.edit(this.componentName,this.id||"",t).then(()=>this.loading$.next(!1)).catch(()=>this.loading$.next(!1))}setFragmentWithoutRedirect(t){const e=this.router.createUrlTree([],{relativeTo:this.route,fragment:t||""}).toString();this.ngLocation.go(e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(qr),i.Y36(Mr),i.Y36(Z.Ct),i.Y36(_t.UV),i.Y36(r.mv),i.Y36(r.lW,8),i.Y36(r.$_),i.Y36(q.oD),i.Y36(r.mT),i.Y36(cn.F0),i.Y36(cn.gz),i.Y36(Ct.Ye),i.Y36(ba))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-doc-example"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_fullsize",e.fullsize)},inputs:{id:"id",heading:"heading",description:"description",content:"content",fullsize:"fullsize",componentName:"componentName"},ngContentSelectors:co,decls:8,vars:5,consts:[["class","t-title",4,"ngIf"],["class","t-description",4,"ngIf"],["class","t-example",4,"ngIf"],["preview",""],["codeSection",""],[1,"t-title"],[3,"textContent",4,"polymorpheusOutlet"],["appearance","icon","size","xs","tuiIconButton","","type","button","class","t-link-icon",3,"icon","title","click",4,"ngIf"],[3,"textContent"],["appearance","icon","size","xs","tuiIconButton","","type","button",1,"t-link-icon",3,"icon","title","click"],[1,"t-description"],[4,"polymorpheusOutlet"],[1,"t-example"],[4,"ngIf"],["class","t-tabs-wrapper",4,"ngIf"],["class","t-content",3,"t-content_animated","t-content_visible",4,"ngFor","ngForOf"],[1,"t-tabs-wrapper"],[1,"t-tabs",3,"activeItemIndex","activeItemIndexChange"],[4,"ngFor","ngForOf"],["size","xs",3,"overlay","showLoader","click",4,"ngIf"],["tuiTab","",4,"tuiItem"],["tuiTab",""],["size","xs",3,"overlay","showLoader","click"],[4,"ngIf","ngIfElse"],["defaultEditContent",""],["appearance","flat","size","s","tuiButton","","type","button"],[1,"t-content"],[3,"ngTemplateOutlet",4,"ngIf","ngIfElse"],["anotherTab",""],[3,"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["automation-id","tui-doc-example",1,"t-demo"],[3,"code"],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,Jo,4,4,"h3",0),i.YNc(1,Qo,3,3,"h4",1),i.YNc(2,hs,3,4,"div",2),i.ALo(3,"async"),i.YNc(4,ds,2,0,"ng-template",null,3,i.W1O),i.YNc(6,gs,2,2,"ng-template",null,4,i.W1O)),2&t&&(i.Q6J("ngIf",e.heading),i.xp6(1),i.Q6J("ngIf",e.description),i.xp6(1),i.Q6J("ngIf",i.lcZ(3,3,e.processor$)))},directives:[Ct.O5,xt.Li,Ye.v0,Ct.sg,Un,P,jn,bt.kM,Ct.tP,ea],pipes:[Ct.Ov,Ca,xa,T],styles:["[_nghost-%COMP%]{position:relative;display:block;padding-top:3.5rem;clear:right}[_nghost-%COMP%] tui-root._mobile[_nghost-%COMP%], tui-root._mobile [_nghost-%COMP%]{padding-top:2rem}.t-title[_ngcontent-%COMP%]{font:var(--tui-font-heading-5);margin:0 0 .5rem}tui-root._mobile[_nghost-%COMP%] .t-title[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-title[_ngcontent-%COMP%]{font:var(--tui-font-heading-6)}.t-description[_ngcontent-%COMP%]{font:var(--tui-font-text-m);font-weight:normal;margin:0}.t-example[_ngcontent-%COMP%]{position:relative;margin-top:1.5rem;border:1px solid var(--tui-base-03);border-radius:var(--tui-radius-m);box-shadow:0 .125rem .1875rem #0000001a;overflow:hidden}tui-root._mobile[_nghost-%COMP%] .t-example[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-example[_ngcontent-%COMP%]{margin-top:.75rem}.t-tabs-wrapper[_ngcontent-%COMP%]{display:flex;padding:0 2rem;box-shadow:inset 0 -1px var(--tui-base-03);justify-content:space-between;align-items:center}tui-root._mobile[_nghost-%COMP%] .t-tabs-wrapper[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-tabs-wrapper[_ngcontent-%COMP%]{padding:0 1rem}.t-tabs[_ngcontent-%COMP%]{flex-grow:1}.t-demo[_ngcontent-%COMP%]{padding:2rem;max-width:100%;box-sizing:border-box;overflow-x:auto}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar, .t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:.375rem solid transparent}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar{background-color:transparent}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}.t-demo[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}tui-root._mobile[_nghost-%COMP%] .t-demo[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-demo[_ngcontent-%COMP%]{padding:1rem}[_nghost-%COMP%]:not(._fullsize) .t-demo[_ngcontent-%COMP%]{width:-webkit-min-content;width:min-content;min-width:20rem}.t-link-icon[_ngcontent-%COMP%]{margin-left:.3rem;vertical-align:baseline}.t-content[_ngcontent-%COMP%]{will-change:opacity;height:0;visibility:hidden;opacity:0}.t-content_animated[_ngcontent-%COMP%]{transition:opacity .3s ease-in-out}.t-content_visible[_ngcontent-%COMP%]{height:auto;visibility:visible;opacity:1}"],changeDetection:0}),t})(),Oa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,Hr,Hn,Ye.fN,na,ia,xt.wq,A,bt.dS]]}),t})();const Ma=new i.OlP("[NAVIGATION_TITLE]"),Sa=new i.OlP("[NAVIGATION_LABELS]"),Pa=new i.OlP("[NAVIGATION_ITEMS]"),Ea=[I.a3,{provide:Ma,deps:[cn.F0,cn.gz,r.Yx,I.a3],useFactory:(t,e,n,i)=>t.events.pipe((0,f.h)(t=>t instanceof cn.m2),(0,h.U)(()=>e.firstChild),(0,f.h)(Y.Pc),(0,g.zg)(({data:t})=>t),(0,h.U)(({title:t})=>`${n}${t}`),(0,p.R)(i))},{provide:Sa,deps:[r.V5],useFactory:Ta},{provide:Pa,deps:[r.V5],useFactory:t=>[...Ta(t).map(e=>t.filter(({section:t})=>t===e)),t.filter(t=>!t.section)]}];function Ta(t){return t.map(({section:t})=>t).filter(Y.Pc).filter((t,e,n)=>n.indexOf(t)===e)}let Aa=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c,u,p,g,m,v,_){this.doc=i,this.mode=r,this.sidebar=o,this.labels=s,this.items=a,this.searchText=l,this.router=c,this.activatedRoute=u,this.destroy$=p,this.readyToScroll$=g,this.scrollBehavior=m,this.docIcons=v,this.icons=_,this.menuOpen=!1,this.openPagesArr=[],this.openPagesGroupsArr=[],this.active="",this.search=new It.NI(""),this.filtered$=(0,lt.EK)(this.search).pipe((0,f.h)(t=>t.trim().length>2),(0,h.U)(t=>this.filterItems(this.flattenSubPages(this.items),t))),this.mode$=this.mode.change$.pipe((0,d.O)(null),(0,h.U)(()=>this.mode.mode||"onLight")),n.subscribe(n=>{t.markForCheck(),e.setTitle(n),this.openActivePageGroup(),this.handleAnchorLink(this.activatedRoute.snapshot.fragment||"")})}get canOpen(){var t,e;return(null!==(e=null===(t=this.search.value)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>2}get itemsWithoutSections(){return this.items[this.items.length-1]}$pages(t){return t}isActive(t){return t===this.active}onGroupClick(t){this.openPagesGroupsArr[t]=!this.openPagesGroupsArr[t]}closeMenu(){this.menuOpen=!1}onClick(t){t.open=!1,this.menuOpen=!1,this.search.setValue(""),this.openActivePageGroup()}filterItems(t,e){return t.map(t=>(0,Y.pf)(t.filter(({title:t,keywords:n=""})=>(e=e.toLowerCase().trim(),n=n.toLowerCase(),(t=t.toLowerCase()).includes(e)||n.includes(e)||t.includes((0,o.OO)(e))||n.includes((0,o.OO)(e))||e.replace(/-/gi,"").includes(t)||t.includes(e.replace(/\s|tui/g,""))||n.includes(e.replace(/\s|tui/g,""))||e.split(/\s/).find(e=>t.includes(e)))),"title"))}flattenSubPages(t){return t.reduce((t,e)=>[...t,e.reduce((t,e)=>"subPages"in e?[...t,...e.subPages]:[...t,e],[])],[])}isActiveRoute(t){return this.router.isActive(t,{paths:"subset",queryParams:"subset",fragment:"ignored",matrixParams:"ignored"})}handleAnchorLink(t){this.readyToScroll$.pipe((0,f.h)(Boolean),(0,m.q)(1),(0,p.R)(this.destroy$)).subscribe(()=>this.navigateToAnchorLink(t))}openActivePageGroup(){this.items.forEach((t,e)=>{t.forEach((t,n)=>{"route"in t&&this.isActiveRoute(t.route)&&(this.openPagesArr[e]=!0,this.active=t.route),"subPages"in t&&t.subPages.forEach(t=>{this.isActiveRoute(t.route)&&(this.openPagesArr[e]=!0,this.openPagesGroupsArr[100*e+n]=!0,this.active=t.route)})})})}navigateToAnchorLink(t){const e=t?this.doc.querySelectorAll(`#${t}`):[],n=e.length&&e[e.length-1];!n||(n.classList.add("tui-doc-animated-example"),n.scrollIntoView({block:"start",inline:"nearest",behavior:this.scrollBehavior}))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.sBO),i.Y36(Ii.Dx),i.Y36(Ma),i.Y36(Ct.K0),i.Y36(he.w),i.Y36(Xr,8),i.Y36(Sa),i.Y36(Pa),i.Y36(r.EI),i.Y36(cn.F0),i.Y36(cn.gz),i.Y36(I.a3,2),i.Y36(r.V1),i.Y36(r.n1),i.Y36(r.oq),i.Y36(gt.Gs))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-doc-navigation"]],hostVars:2,hostBindings:function(t,e){2&t&&i.ekj("_open",e.menuOpen)},features:[i._Bn(Ea)],ngContentSelectors:co,decls:14,vars:14,consts:[["tuiTextfieldSize","m",1,"t-input",3,"formControl","tuiAutoFocus","tuiTextfieldCleaner","tuiTextfieldIconLeft","tuiTextfieldLabelOutside"],["input",""],[4,"ngIf"],[1,"t-navigation"],[1,"t-scrollbar",3,"tuiMode"],[3,"closeOthers","rounded"],["size","s",3,"borders","open","openChange",4,"ngFor","ngForOf"],[1,"t-items-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngFor","ngForOf"],["pages",""],[4,"tuiDataList"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["tuiOption","",3,"fragment","routerLink","click",4,"ngFor","ngForOf"],["tuiOption","",3,"fragment","routerLink","click"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],["size","s",3,"borders","open","openChange"],[1,"t-label"],["tuiAccordionItemContent",""],[1,"t-section"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["routerLinkActive","t-sublink_active","tuiLink","","class","t-sublink",3,"routerLink","tuiScrollIntoViewLink","click",4,"ngIf","ngIfElse"],["subPagesTemplate",""],["routerLinkActive","t-sublink_active","tuiLink","",1,"t-sublink",3,"routerLink","tuiScrollIntoViewLink","click"],["routerLinkActive","",1,"t-subsection",3,"routerLinkActiveOptions"],["tuiLink","","type","button","class","t-sublink t-sublink_subsection",3,"click",4,"ngIf"],[1,"t-expand",3,"expanded"],[1,"t-section","t-section_bordered"],["routerLinkActive","t-sublink_active","tuiLink","","class","t-sublink t-sublink_small",3,"fragment","routerLink","tuiScrollIntoViewLink","click",4,"ngFor","ngForOf"],["tuiLink","","type","button",1,"t-sublink","t-sublink_subsection",3,"click"],[1,"t-chevron",3,"src"],["routerLinkActive","t-sublink_active","tuiLink","",1,"t-sublink","t-sublink_small",3,"fragment","routerLink","tuiScrollIntoViewLink","click"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"tui-input",0,1),i._uU(2),i.YNc(3,bs,2,0,"ng-container",2),i.qZA(),i.TgZ(4,"nav",3),i.TgZ(5,"tui-scrollbar",4),i.ALo(6,"async"),i.TgZ(7,"tui-accordion",5),i.YNc(8,ks,5,3,"tui-accordion-item",6),i.qZA(),i.TgZ(9,"div",7),i.YNc(10,Os,1,5,"ng-container",8),i.qZA(),i.YNc(11,Ns,3,2,"ng-template",null,9,i.W1O),i.qZA(),i.qZA(),i.Hsn(13)),2&t&&(i.Q6J("formControl",e.search)("tuiAutoFocus",!!e.sidebar)("tuiTextfieldCleaner",!0)("tuiTextfieldIconLeft",e.docIcons.search)("tuiTextfieldLabelOutside",!0),i.xp6(2),i.hij(" ",e.searchText," "),i.xp6(1),i.Q6J("ngIf",e.canOpen),i.xp6(2),i.Q6J("tuiMode",i.lcZ(6,12,e.mode$)),i.xp6(2),i.Q6J("closeOthers",!1)("rounded",!1),i.xp6(1),i.Q6J("ngForOf",e.labels),i.xp6(2),i.Q6J("ngForOf",e.itemsWithoutSections))},directives:[Ei.K3,Ei.wU,dt.sz,It.JJ,It.oH,tt,dt.be,dt.aR,dt.xT,Ct.O5,_r.IB,he.w,vi,Ct.sg,ft.gX,ft.qi,ft.Rs,ft.vK,cn.yS,xt.Li,Dt.PN,mi,fi,Ct.tP,fr.V,cn.Od,Kr,ti],pipes:[Ct.Ov],styles:["[_nghost-%COMP%]{z-index:1;display:flex;flex-direction:column;text-align:center;background:var(--tui-base-01)}.t-input[_ngcontent-%COMP%]{margin:1.25rem}.t-navigation[_ngcontent-%COMP%]{display:flex;max-height:100%;min-height:0;flex:1 1 0;text-align:left}.t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:smooth;width:100%}@media screen and (prefers-reduced-motion: reduce){.t-scrollbar[_ngcontent-%COMP%]{scroll-behavior:auto}}.t-items-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 1rem}.t-label[_ngcontent-%COMP%]{margin-left:.5rem}.t-expand[_ngcontent-%COMP%]{margin-left:.25rem}.t-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;margin:-1rem 0 -.5rem}.t-section_bordered[_ngcontent-%COMP%]{margin:.5rem 0;border-left:1px solid var(--tui-base-03)}.t-subsection[_ngcontent-%COMP%]{margin-left:.5rem}.t-sublink[_ngcontent-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:1rem 0 0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-m);margin-left:.5rem}.t-sublink_small[_ngcontent-%COMP%]{margin-left:1rem;line-height:1.5rem;padding-top:.5rem}.t-sublink_subsection[_ngcontent-%COMP%]{margin-left:0;line-height:1.6rem}.t-sublink.t-sublink.t-sublink_active[_ngcontent-%COMP%]{color:var(--tui-text-01)}.t-icon[_ngcontent-%COMP%]{margin-left:.5rem}.t-chevron[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:1rem;height:1rem;margin:-.25rem .25rem 0 -.1875rem}.t-chevron_active[_ngcontent-%COMP%]{transform:rotate(90deg)}"],changeDetection:0}),(0,y.gn)([st.UM],t.prototype,"filterItems",null),(0,y.gn)([st.UM],t.prototype,"flattenSubPages",null),t})(),Ia=(()=>{class t{constructor(t,e,n,i,r){this.icons=t,this.logo=e,this.menu=n,this.router=i,this.swipes$=r,this.stream$=new s.xQ,this.open$=(0,c.T)(this.router.events.pipe((0,h.U)(U.Iy)),this.stream$,this.swipes$.pipe((0,f.h)(t=>"left"===t.direction||"right"===t.direction),(0,h.U)(t=>"right"===t.direction))).pipe((0,d.O)(!1),(0,v.x)())}onClick(){this.stream$.next(!0)}onActiveZone(t){t||this.stream$.next(!1)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.oq),i.Y36(r.Or),i.Y36(r.gG),i.Y36(cn.F0),i.Y36(I.$D))},t.\u0275cmp=i.Xpm({type:t,selectors:[["header","tuiDocHeader",""]],attrs:Ls,ngContentSelectors:co,decls:6,vars:6,consts:[["appearance","icon","tuiIconButton","","type","button",1,"t-menu",3,"icon","title","click","tuiActiveZoneChange"],["class","t-navigation",4,"tuiSidebar"],[1,"t-logo"],["alt","Logo","class","t-img",3,"src",4,"polymorpheusOutlet"],[1,"t-navigation"],["alt","Logo",1,"t-img",3,"src"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"button",0),i.NdJ("click",function(){return e.onClick()})("tuiActiveZoneChange",function(t){return e.onActiveZone(t)}),i.YNc(1,zs,1,0,"tui-doc-navigation",1),i.ALo(2,"async"),i.qZA(),i.TgZ(3,"div",2),i.YNc(4,Fs,1,1,"img",3),i.qZA(),i.Hsn(5)),2&t&&(i.Q6J("icon",e.icons.menu)("title",e.menu),i.xp6(1),i.Q6J("tuiSidebar",!!i.lcZ(2,4,e.open$)),i.xp6(3),i.Q6J("polymorpheusOutlet",e.logo))},directives:[Ye.v0,rt.e,Xr,xt.Li,Aa],pipes:[Ct.Ov],styles:["[_nghost-%COMP%]{box-shadow:0 .125rem 1rem #00000014;position:fixed;top:0;left:0;right:0;z-index:1;display:flex;height:3.9375rem;align-items:center;padding:0 1.25rem;background:var(--tui-base-01);border-bottom:1px solid var(--tui-base-03)}.t-logo[_ngcontent-%COMP%]{margin-right:auto;font:var(--tui-font-heading-5)}.t-img[_ngcontent-%COMP%]{display:block}.t-menu[_ngcontent-%COMP%]{margin-left:-1.25rem}@media screen and (min-width: 48em){.t-menu[_ngcontent-%COMP%]{display:none}}.t-navigation[_ngcontent-%COMP%]{min-height:100%}"],changeDetection:0}),t})(),Da=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,It.UX,cn.Bz,xt.wq,to,Ye.fN,Ei.Qf,dt.cn,rt.A,ct.WD,he.z,fr.j,ei,ut.jh,dn.dp,_i,_r.Jy,Dt.EI,ft.pc,et]]}),t})(),Na=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,xt.wq,Ye.fN,Wr,rt.A,Da]]}),t})(),La=(()=>{class t{constructor(t,e){this.text=t,this.pages=e,this.seeAlso=[]}getRouterLink(t){var e,n;return null!==(n=null===(e=this.pages.get(t))||void 0===e?void 0:e.route)&&void 0!==n?n:""}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.VX),i.Y36(r._Z))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-doc-see-also"]],inputs:{seeAlso:"seeAlso"},decls:3,vars:2,consts:[[1,"t-header"],[4,"ngFor","ngForOf"],["tuiLink","",3,"innerText","routerLink"],[4,"ngIf"]],template:function(t,e){1&t&&(i.TgZ(0,"h5",0),i._uU(1),i.qZA(),i.YNc(2,js,3,3,"ng-container",1)),2&t&&(i.xp6(1),i.Oqu(e.text),i.xp6(1),i.Q6J("ngForOf",e.seeAlso))},directives:[Ct.sg,fr.V,cn.yS,Ct.O5],styles:["[_nghost-%COMP%]{display:block}.t-header[_ngcontent-%COMP%]{font-size:.6875rem;line-height:1rem;text-transform:uppercase;letter-spacing:.075em;color:var(--tui-text-02);margin:0 0 .5rem;white-space:nowrap}"],changeDetection:0}),t})(),za=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,cn.Bz,fr.j]]}),t})(),Fa=(()=>{class t{constructor(t,e,n){this.icons=t,this.sourceCode=e,this.text=n,this.header="",this.package="",this.type="",this.path=""}get pathOptions(){return this.getPathOptions(this.header,this.package,this.type,this.path)}pathIsUrl(t){return t.startsWith("http")}getPathOptions(t,e,n,i){return{header:t,package:e,type:n,path:i}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.oq),i.Y36(r.yO),i.Y36(r.as))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-doc-source-code"]],inputs:{header:"header",package:"package",type:"type",path:"path"},decls:1,vars:2,consts:[["appearance","icon","size","s","target","_blank","tuiIconButton","","type","button",3,"href","icon","title",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","size","s","target","_blank","tuiIconButton","","type","button",3,"href","icon","title"]],template:function(t,e){1&t&&i.YNc(0,Bs,1,3,"a",0),2&t&&i.Q6J("polymorpheusOutlet",e.pathIsUrl(e.path)?e.path:e.sourceCode)("polymorpheusOutletContext",e.pathOptions)},directives:[xt.Li,Ye.v0],encapsulation:2,changeDetection:0}),(0,y.gn)([st.UM],t.prototype,"pathIsUrl",null),(0,y.gn)([st.UM],t.prototype,"getPathOptions",null),t})(),Ra=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,xt.wq,Ye.fN]]}),t})(),ja=(()=>{class t{constructor(t,e,n){this.icons=t,this.theme=e,this.night=n,this.change$=this.night,this.night$=this.change$.pipe((0,d.O)(null),(0,h.U)(()=>this.night.value),(0,v.x)(),(0,_.B)())}get mode(){return this.night.value?"onDark":null}get icon(){return this.night.value?this.icons.day:this.icons.night}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.oq),i.Y36(ro),i.Y36(ao))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-doc-main"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-mode",e.mode)},features:[i._Bn([{provide:he.w,useExisting:(0,i.Gpc)(()=>t)},I.$D])],ngContentSelectors:Zs,decls:21,vars:4,consts:[[4,"ngIf"],[1,"tui-doc-page"],[1,"tui-doc-navigation"],[1,"tui-doc-content"],[1,"tui-doc-outlet"],["tuiDocHeader",""],["appearance","secondary","shape","rounded","size","s","tuiIconButton","","tuiMode","onLight","type","button",1,"tui-doc-night-mode-switch",3,"icon","click"],["ngProjectAs","tuiOverContent",5,["tuiOverContent"]],["ngProjectAs","tuiOverDialogs",5,["tuiOverDialogs"]],["ngProjectAs","tuiOverAlerts",5,["tuiOverAlerts"]],["ngProjectAs","tuiOverPortals",5,["tuiOverPortals"]],["ngProjectAs","tuiOverHints",5,["tuiOverHints"]]],template:function(t,e){1&t&&(i.F$t($s),i.YNc(0,Vs,1,0,"tui-theme-night",0),i.ALo(1,"async"),i.TgZ(2,"tui-root"),i.TgZ(3,"div",1),i.TgZ(4,"tui-doc-navigation",2),i.Hsn(5),i.qZA(),i.TgZ(6,"div",3),i._UZ(7,"router-outlet",4),i.qZA(),i.qZA(),i.TgZ(8,"header",5),i.Hsn(9,1),i.TgZ(10,"button",6),i.NdJ("click",function(){return e.night.toggle()}),i.qZA(),i.qZA(),i.ynx(11,7),i.Hsn(12,2),i.BQk(),i.ynx(13,8),i.Hsn(14,3),i.BQk(),i.ynx(15,9),i.Hsn(16,4),i.BQk(),i.ynx(17,10),i.Hsn(18,5),i.BQk(),i.ynx(19,11),i.Hsn(20,6),i.BQk(),i.qZA()),2&t&&(i.Q6J("ngIf",e.theme.isDefaultTheme&&e.night.useDefaultNightTheme&&i.lcZ(1,2,e.night$)),i.xp6(10),i.Q6J("icon",e.icon))},directives:[Ct.O5,ur,Aa,cn.lC,Ia,Ye.v0,he.w,dr],pipes:[Ct.Ov],styles:['html{scroll-padding-top:4rem;height:auto}tui-root>tui-scroll-controls>.t-bar_vertical{top:4rem!important}@keyframes tuiShaking{0%,to{transform:translate(0)}10%,30%,50%,70%,90%{transform:translate(-.3125rem)}20%,40%,60%,80%{transform:translate(.3125rem)}}body{background:var(--tui-base-01);height:auto}tui-doc-main{display:block}code:not(pre code):not(.hljs):not([class*="language-"]){transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;background:var(--tui-base-02);color:var(--tui-text-02);vertical-align:middle;box-shadow:inset 0 -2px var(--tui-secondary);padding:.375rem .5rem;font-size:.875rem;border-radius:.5rem}tui-notification code:not(pre code):not(.hljs):not([class*="language-"]){background:var(--tui-clear);box-shadow:none}a code:not(pre code):not(.hljs):not([class*="language-"]){color:var(--tui-link)}button:focus code,a:focus code{background:var(--tui-base-01)}.tui-doc-page{position:relative;z-index:0;padding-top:4rem}tui-doc-navigation.tui-doc-navigation{position:fixed;top:4rem;bottom:0;width:16.25rem;border-right:1px solid var(--tui-base-03)}@media screen and (max-width: 47.9625em){tui-doc-navigation.tui-doc-navigation{display:none}}.tui-doc-content{margin-left:16.25rem}@media screen and (max-width: 47.9625em){.tui-doc-content{margin-left:0}}.tui-doc-outlet+*{display:block}.tui-doc-animated-example{animation:1s .3s tuiShaking}.tui-doc-night-mode-switch{margin-left:1rem}.tui-doc-night-mode-switch tui-svg{color:var(--tui-text-02)}tui-doc-code .hljs-tag{background:none}tui-doc-code .hljs{display:block;overflow-x:auto;padding:.5em;color:var(--tui-text-01);background-color:var(--tui-clear)}tui-doc-code .hljs.hljs-line-numbers{background:transparent}tui-doc-code .hljs-subst,tui-doc-code .hljs-title{font-weight:normal;color:var(--tui-text-01)}tui-doc-code .hljs-comment,tui-doc-code .hljs-quote{color:var(--tui-text-02);font-style:italic}tui-doc-code .hljs-meta{color:#e38162}tui-doc-code .hljs-section,tui-doc-code .hljs-name,tui-doc-code .hljs-literal,tui-doc-code .hljs-keyword,tui-doc-code .hljs-selector-tag,tui-doc-code .hljs-type,tui-doc-code .hljs-selector-id,tui-doc-code .hljs-selector-class{font-weight:bold;color:var(--tui-link)}tui-doc-code .hljs-attribute,tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:bold;color:var(--tui-support-06)}tui-doc-code .hljs-number,tui-doc-code .hljs-regexp,tui-doc-code .hljs-link{font-weight:normal}tui-doc-code .hljs-string{color:var(--tui-positive);font-weight:bold}tui-doc-code .hljs-symbol,tui-doc-code .hljs-bullet,tui-doc-code .hljs-formula{color:var(--tui-text-01);background:var(--tui-base-02);font-style:italic}tui-doc-code .hljs-doctag{text-decoration:underline}tui-doc-code .hljs-variable,tui-doc-code .hljs-template-variable{color:var(--tui-link-hover)}tui-doc-code [data-mode=onDark] .hljs-variable,tui-doc-code [data-mode=onDark] .hljs-template-variable{color:var(--tui-warning-fill)}tui-doc-code .hljs-addition{background:var(--tui-success-bg)}tui-doc-code .hljs-deletion{background:var(--tui-error-bg)}tui-doc-code .hljs-emphasis{font-style:italic}tui-doc-code .hljs-strong{font-weight:bold}tui-doc-code .hljs .hljs-line-numbers{padding:0}tui-doc-code .hljs-ln-numbers{vertical-align:top;opacity:.3;text-align:right;padding-right:1em!important}\n'],encapsulation:2}),t})(),Ba=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,cn.Bz,pr,Na,hr,Vr,Sr,Ye.fN,he.z,Da]]}),t})();const Va=new i.OlP("[PAGE_SEE_ALSO]"),$a=[{provide:Va,deps:[i.SBq,r.UL],useFactory:({nativeElement:t},e)=>{const n=t.getAttribute("header"),i=e.filter(t=>t.includes(n))||[],r=new Set(i.join().split(",").filter(t=>t&&t!==n));return Array.from(r)}}];let Za=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","pageTab",""]],inputs:{pageTab:"pageTab"}}),t})(),qa=(()=>{class t{constructor(t,e){this.defaultTabs=t,this.seeAlso=e,this.header="",this.package="",this.type="",this.path="",this.deprecated=!1,this.tabConnectors=U.Mm,this.activeItemIndex=0,this.from=/ /g,this.to="_"}get showSeeAlso(){return!!this.seeAlso.length&&0===this.activeItemIndex}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.AC),i.Y36(Va))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-doc-page"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,Za,4),2&t){let t;i.iGM(t=i.CRH())&&(e.tabConnectors=t)}},inputs:{header:"header",package:"package",type:"type",path:"path",deprecated:"deprecated"},features:[i._Bn($a)],ngContentSelectors:co,decls:11,vars:10,consts:[[1,"t-header"],[1,"t-title"],["status","custom","value","deprecated","class","t-tag t-tag_deprecated",4,"ngIf"],["status","custom","class","t-tag t-tag_package",3,"autoColor","value",4,"ngIf"],["class","t-tabs",3,"activeItemIndex","activeItemIndexChange",4,"ngIf"],[1,"t-source-code",3,"header","package","path","type"],[1,"t-content"],["class","t-see-also",3,"seeAlso",4,"ngIf"],[4,"ngFor","ngForOf"],["status","custom","value","deprecated",1,"t-tag","t-tag_deprecated"],["status","custom",1,"t-tag","t-tag_package",3,"autoColor","value"],[1,"t-tabs",3,"activeItemIndex","activeItemIndexChange"],[4,"ngIf"],["routerLinkActive","","tuiTab","",3,"routerLink","routerLinkActiveOptions",4,"tuiItem"],["routerLinkActive","","tuiTab","",3,"routerLink","routerLinkActiveOptions"],[1,"t-see-also",3,"seeAlso"],[3,"ngTemplateOutlet",4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"header",0),i.TgZ(1,"h1",1),i._uU(2),i.YNc(3,qs,1,0,"tui-tag",2),i.YNc(4,Ys,1,2,"tui-tag",3),i.qZA(),i.YNc(5,Xs,2,2,"tui-tabs-with-more",4),i._UZ(6,"tui-doc-source-code",5),i.qZA(),i.TgZ(7,"div",6),i.Hsn(8),i.YNc(9,Qs,1,1,"tui-doc-see-also",7),i.YNc(10,Ks,2,1,"ng-container",8),i.qZA()),2&t&&(i.xp6(2),i.hij(" ",e.header," "),i.xp6(1),i.Q6J("ngIf",!!e.deprecated||""===e.deprecated),i.xp6(1),i.Q6J("ngIf",e.package),i.xp6(1),i.Q6J("ngIf",e.tabConnectors.length),i.xp6(1),i.Q6J("header",e.header)("package",e.package)("path",e.path)("type",e.type),i.xp6(3),i.Q6J("ngIf",e.showSeeAlso),i.xp6(1),i.Q6J("ngForOf",e.tabConnectors))},directives:[Ct.O5,Fa,Ct.sg,Mi,Un,P,jn,cn.yS,cn.Od,La,Ct.tP],pipes:[nt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:0;flex-basis:0;flex-grow:1}.t-header[_ngcontent-%COMP%]{display:flex;font:var(--tui-font-heading-3);flex-wrap:wrap;min-height:7.25rem;color:var(--tui-text-01);box-shadow:inset 0 -1px 0 0 var(--tui-base-03);padding:3.75rem 0 0;box-sizing:border-box;flex-shrink:0;margin:0 min(10vw,8.75rem)}tui-root._mobile[_nghost-%COMP%] .t-header[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-header[_ngcontent-%COMP%]{font:var(--tui-font-heading-4);min-height:4.5rem;padding:1.25rem 1.25rem 0;margin:0}.t-title[_ngcontent-%COMP%]{min-width:100%;font-size:inherit;margin:0}.t-tag[_ngcontent-%COMP%]{vertical-align:middle;text-transform:uppercase;margin-right:.5rem}.t-tag_deprecated[_ngcontent-%COMP%]{background-color:var(--tui-error-fill)}.t-tag.t-tag_package[_ngcontent-%COMP%]{color:#000}.t-tabs[_ngcontent-%COMP%]{flex:1;margin:1.125rem .3125rem 0 0}tui-root._mobile[_nghost-%COMP%] .t-tabs[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-tabs[_ngcontent-%COMP%]{margin-top:.25rem}.t-content[_ngcontent-%COMP%]{padding:2rem 0;margin:0 min(10vw,8.75rem)}tui-root._mobile[_nghost-%COMP%] .t-content[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:2rem 1.25rem;margin:0}.t-see-also[_ngcontent-%COMP%]{min-width:18.75rem;width:30%;float:right;margin-left:1.5rem}tui-root._mobile[_nghost-%COMP%] .t-see-also[_ngcontent-%COMP%], tui-root._mobile [_nghost-%COMP%] .t-see-also[_ngcontent-%COMP%]{float:none;width:100%;margin:0 0 1.5rem}.t-source-code[_ngcontent-%COMP%]{align-self:flex-end;line-height:2.75rem;margin-left:auto}"],changeDetection:0}),t})(),Ya=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[Ct.ez,cn.Bz,za,Hn,Si,Ra,it]]}),t})()},64548:function(t,e,n){"use strict";n.d(e,{mT:function(){return d},lW:function(){return p},AC:function(){return f},ru:function(){return y},IK:function(){return b},$_:function(){return m},Es:function(){return v},mv:function(){return w},et:function(){return _},oq:function(){return g},Or:function(){return M},_Z:function(){return E},gG:function(){return C},V5:function(){return P},V1:function(){return S},n1:function(){return T},EI:function(){return x},UL:function(){return A},VX:function(){return k},yO:function(){return I},as:function(){return O},Yx:function(){return D},Ii:function(){return N}});var i=n(11927),r=n(74788),o=n(44427),s=n(54487),a=n(41439),l=n(41291),c=n(25917),u=n(43190),h=n(79456);const d=(0,i.JN)(""),p=new r.OlP("[TUI_DOC_CODE_EDITOR]"),f=(0,i.JN)([]),g=(0,i.JN)({search:"tuiIconSearch",day:"tuiIconSun",night:"tuiIconMoon",code:"tuiIconCode",menu:"tuiIconMenuLarge"}),m=(0,i.JN)(s.y),v=(0,i.JN)(o.vi),_=(0,i.JN)(new Set([])),y=(0,i.JN)(["Read more more about modes: ","Background","Form value"]),b=(0,i.JN)(["Argument","Type","Name and description","Value","Learn about our dynamic templates from "]),w=(0,i.JN)(["Preview","Link to a sample was successfully copied","Done"]),C=(0,i.JN)("Menu"),x=(0,i.JN)("Search"),k=(0,i.JN)("See also"),O=(0,i.JN)("Source code"),M=(0,i.JN)(""),S=(0,i.JN)((0,a.P)(()=>(0,l.H)(200).pipe((0,u.w)(()=>(0,c.of)(!0))))),P=(0,i.JN)([]),E=(0,i.N1)(()=>(0,o.S4)((0,r.f3M)(P))),T=(0,i.N1)(()=>(0,r.f3M)(h.TK)?"auto":"smooth"),A=(0,i.JN)([]),I=(0,i.JN)(null),D=(0,i.JN)(""),N=(0,i.JN)(String)},44427:function(t,e,n){"use strict";n.d(e,{p8:function(){return a},cd:function(){return s},Ve:function(){return l},sj:function(){return c},JQ:function(){return h},vP:function(){return d},S4:function(){return p},OO:function(){return g},vi:function(){return u}});var i=n(4841),r=n.n(i),o=n(97582);function s(t){return"true"===(null==t?void 0:t.toString())}function a(t){const e=String(t).trim();if(function(t){return["undefined","null","NaN"].includes(t)}(e))return null;if(function(t){return"true"===t||"false"===t}(e))return"true"===String(e);if(function(t){return!!t.trim()&&!Number.isNaN(Number(t))&&!t.startsWith("+")}(e))return Number(e);const n=decodeURIComponent(e);try{return function(t){return t.startsWith("[")&&t.endsWith("]")}(n)||function(t){return t.startsWith("{")&&t.endsWith("}")}(n)?JSON.parse(n):n}catch(i){return n}}function l(t){return[{path:"",component:t,children:[{path:":tab",component:t}]}]}function c(t,e){if(null===t)return"null";switch(typeof t){case"string":return`'${t}'`;case"undefined":case"number":case"boolean":case"function":return String(t)}return t instanceof RegExp?String(t):Array.isArray(t)?function(t,e){if(0===e)return"[\u2026]";let n="",i=!0;for(let r=0;r"code"===t&&"fence"===e).map(({content:t})=>t.trim());return e.length?e:[t]}function h(t){return(0,o.mG)(this,void 0,void 0,function*(){return t instanceof Promise?(yield t).default:t})}function d(t){return(0,o.mG)(this,void 0,void 0,function*(){const e={};for(const[n,i]of Object.entries(t))i&&(e[n]=yield h(i));return e})}function p(t){const e=new Map;for(const n of t)if("subPages"in n)for(const t of n.subPages)e.set(t.title,t);else e.set(n.title,n);return e}const f={"\u0430":"f","\u0431":",","\u0432":"d","\u0433":"u","\u0434":"l","\u0435":"t","\u0451":"`","\u0436":";","\u0437":"p","\u0438":"b","\u0439":"q","\u043a":"r","\u043b":"k","\u043c":"v","\u043d":"y","\u043e":"j","\u043f":"g","\u0440":"h","\u0441":"c","\u0442":"n","\u0443":"e","\u0444":"a","\u0445":"[","\u0446":"w","\u0447":"x","\u0448":"i","\u0449":"o","\u044a":"]","\u044b":"s","\u044c":"m","\u044e":".","\u044f":"z"};function g(t){let e="";for(let n=0;n{class t{constructor(){this.pseudoHover=null,this.pseudoActive=null,this.pseudoFocus=null,this.focusable=!0,this.nativeId="",this.focusedChange=new i.vpe,this.focusVisibleChange=new i.vpe,this.focusVisible=!1,this.autoIdString=`tui_interactive_${t.autoId++}${Date.now()}`}get computedDisabled(){return this.disabled}get computedFocusable(){return!this.computedDisabled&&(this.focusable||this.focused)}get computedFocused(){var t;return!this.computedDisabled&&(null!==(t=this.pseudoFocus)&&void 0!==t?t:this.focused)}get computedFocusVisible(){var t;return!this.computedDisabled&&(null!==(t=this.pseudoFocus)&&void 0!==t?t:this.focusVisible)}get id(){return this.nativeId||this.autoIdString}updateFocused(t){this.focusedChange.emit(t)}updateFocusVisible(t){this.focusVisible!==t&&(this.focusVisible=t,this.focusVisibleChange.emit(t))}}return t.autoId=0,t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,hostVars:7,hostBindings:function(t,e){2&t&&(i.uIk("data-focused",e.pseudoFocus),i.ekj("_disabled",e.computedDisabled)("_focused",e.computedFocused)("_focus-visible",e.computedFocusVisible))},inputs:{pseudoHover:"pseudoHover",pseudoActive:"pseudoActive",pseudoFocus:"pseudoFocus",focusable:"focusable",nativeId:"nativeId"},outputs:{focusedChange:"focusedChange",focusVisibleChange:"focusVisibleChange"}}),t})();class x{}let k=(()=>{class t extends C{constructor(t,e,n){super(),this.ngControl=t,this.cdr=e,this.valueTransformer=n,this.refresh$=new a.xQ,this.onTouched=o.iD,this.onChange=o.iD,this.fallbackValue=this.getFallbackValue(),this.destroy$=new a.xQ,this.readOnly=!1,this.pseudoInvalid=null,this.ngControl&&(this.ngControl.valueAccessor=this)}get computedInvalid(){return this.interactive&&(null!==this.pseudoInvalid?this.pseudoInvalid:this.touched&&this.invalid)}get value(){var t;return null!==(t=this.previousInternalValue)&&void 0!==t?t:this.fallbackValue}set value(t){this.updateValue(t)}get safeCurrentValue(){var t;return null!==(t=this.rawValue)&&void 0!==t?t:this.fallbackValue}get invalid(){return this.safeNgControlData(({invalid:t})=>t,!1)}get valid(){return this.safeNgControlData(({valid:t})=>t,!1)}get touched(){return this.safeNgControlData(({touched:t})=>t,!1)}get disabled(){return this.safeNgControlData(({disabled:t})=>t,!1)}get interactive(){return!this.readOnly&&!this.computedDisabled}get control(){return this.safeNgControlData(({control:t})=>t,null)}get computedName(){var t,e;return null!==(e=null===(t=this.controlName)||void 0===t?void 0:t.toString())&&void 0!==e?e:null}get controlName(){var t,e,n;return null!==(n=null===(e=null===(t=this.ngControl)||void 0===t?void 0:t.name)||void 0===e?void 0:e.toString())&&void 0!==n?n:null}get rawValue(){const{ngControl:t}=this;if(null!==t)return this.fromControlValue(t instanceof r.On&&void 0===this.previousInternalValue?t.viewModel:t.value)}ngOnInit(){this.refresh$.pipe((0,h.g)(0),(0,d.O)(null),(0,p.U)(()=>{var t;return null===(t=this.ngControl)||void 0===t?void 0:t.control}),(0,f.h)(s.Pc),(0,g.x)(),(0,m.w)(t=>(0,l.T)(t.valueChanges,t.statusChanges)),(0,v.R)(this.destroy$)).subscribe(()=>{this.refreshLocalValue(this.safeCurrentValue)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}checkControlUpdate(){this.cdr.markForCheck()}registerOnChange(t){this.onChange=e=>{t(this.toControlValue(e))},this.refresh$.next()}registerOnTouched(t){this.onTouched=t}setDisabledState(){this.checkControlUpdate()}writeValue(t){this.refreshLocalValue(this.fromControlValue(this.ngControl instanceof r.On&&void 0===this.previousInternalValue?this.ngControl.model:t))}updateFocused(t){t||this.controlMarkAsTouched(),super.updateFocused(t)}updateValue(t){this.disabled||this.valueIdenticalComparator(this.value,t)||(this.previousInternalValue=t,this.controlSetValue(t))}valueIdenticalComparator(t,e){return t===e}safeNgControlData(t,e){var n;return null!==(n=this.ngControl&&t(this.ngControl))&&void 0!==n?n:e}controlMarkAsTouched(){this.onTouched(),this.checkControlUpdate()}controlSetValue(t){this.onChange(t),this.checkControlUpdate()}refreshLocalValue(t){this.previousInternalValue=t,this.checkControlUpdate()}fromControlValue(t){return this.valueTransformer?this.valueTransformer.fromControlValue(t):t}toControlValue(t){return this.valueTransformer?this.valueTransformer.toControlValue(t):t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.a5,8),i.Y36(i.sBO),i.Y36(x,8))},t.\u0275dir=i.lG2({type:t,hostVars:4,hostBindings:function(t,e){2&t&&i.ekj("_readonly",e.readOnly)("_invalid",e.computedInvalid)},inputs:{readOnly:"readOnly",pseudoInvalid:"pseudoInvalid"},features:[i.qOj]}),t})();function O(t){return{provide:k,useExisting:t}}let M=(()=>{class t{constructor(){this.change$=new a.xQ}ngOnChanges(){this.change$.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,features:[i.TTD]}),t})(),S=(()=>{class t extends c.y{constructor(t){super(t=>this.dialogs$.subscribe(t)),this.idService=t,this.dialogs$=new u.X([])}open(t,e={}){return new c.y(n=>{const i=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{content:t,completeWith:t=>{n.next(t),n.complete()},$implicit:n,component:this.component,createdAt:Date.now(),id:this.idService.generate()});return this.dialogs$.next([...this.dialogs$.value,i]),()=>{this.dialogs$.next(this.dialogs$.value.filter(t=>t!==i))}})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(_.ll))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t extends k{getFallbackValue(){return null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,features:[i.qOj]}),t})(),E=(()=>{class t{get safeHost(){if(!this.host)throw new y.ZB;return this.host}attach(t){this.host=t}add(t){return this.safeHost.addComponentChild(t)}remove({hostView:t}){t.destroy()}addTemplate(t,e){return this.safeHost.addTemplateChild(t,e)}removeTemplate(t){t.destroy()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{constructor(t,e,n){this.injector=t,this.el=e,n.attach(this)}get clientRect(){return this.el.nativeElement.getBoundingClientRect()}addComponentChild(e){const n=e.createInjector(this.injector),r=n.get(i._Vd).resolveComponentFactory(e.component),o=i.zs3.create({parent:n,providers:[{provide:t,useValue:this}]}),s=this.vcr.createComponent(r,void 0,o);return s.changeDetectorRef.detectChanges(),s}addTemplateChild(t,e){return this.vcr.createEmbeddedView(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.gxx),i.Y36(i.SBq),i.Y36(E))},t.\u0275dir=i.lG2({type:t,viewQuery:function(t,e){if(1&t&&i.Gf(w,5,i.s_b),2&t){let t;i.iGM(t=i.CRH())&&(e.vcr=t.first)}}}),t})(),A=(()=>{class t{constructor(t){if(this.doc=t,null!==this.style)return void this.addTheme();const e=this.doc.head.querySelectorAll("style");this.constructor.style=e[e.length-1]}get style(){return this.constructor.style}ngOnDestroy(){this.removeTheme()}addTheme(){this.style&&this.doc.head.appendChild(this.style)}removeTheme(){var t;null===(t=this.style)||void 0===t||t.remove()}}return t.style=null,t.\u0275fac=function(e){return new(e||t)(i.Y36(b.K0))},t.\u0275dir=i.lG2({type:t}),t})()},18939:function(t,e,n){"use strict";n.d(e,{T:function(){return o},z:function(){return r}});var i=n(33770);const r={enabled:!1,get assert(){return i.iD}};class o{constructor(t,e={}){this.message=t,this.context=e}}},75122:function(t,e,n){"use strict";n.d(e,{qY:function(){return a},mL:function(){return l},ae:function(){return s}});var i=n(74788),r=n(76480);const o=["*"];let s=(()=>{class t extends r.N9{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),a=(()=>{class t extends r.Er{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-dropdown-host"]],features:[i._Bn([{provide:r.N9,useExisting:s},{provide:r.Er,useExisting:t}]),i.qOj],ngContentSelectors:o,decls:3,vars:0,consts:[["viewContainer",""]],template:function(t,e){1&t&&(i.F$t(),i.Hsn(0),i.GkF(1,null,0))},styles:['[_nghost-%COMP%]{position:relative;z-index:0;display:block;height:100%}[_nghost-%COMP%]:before{content:"";display:block;overflow:hidden}.t-position-fixed-offset[_ngcontent-%COMP%]{position:fixed;left:0;top:0;pointer-events:none;visibility:hidden;width:100%;height:100%}'],changeDetection:0}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},81359:function(t,e,n){"use strict";n.d(e,{tZ:function(){return w},eI:function(){return x},ex:function(){return C}});var i=n(74788),r=n(62579),o=n(40946),s=n(99434),a=n(88002),l=n(43190),c=n(46782),u=n(43219),h=n(39761),d=n(87519),p=n(12057),f=n(33770),g=n(27103),m=n(66682);function v(t,e){if(1&t&&(i.TgZ(0,"div",3),i._UZ(1,"div",4),i.qZA()),2&t){const t=i.oxw().ngIf;i.ekj("t-bar_has-horizontal",t[1])}}function _(t,e){if(1&t&&(i.TgZ(0,"div",5),i._UZ(1,"div",6),i.qZA()),2&t){const t=i.oxw().ngIf;i.ekj("t-bar_has-vertical",t[0])}}function y(t,e){if(1&t&&(i.ynx(0),i.YNc(1,v,2,2,"div",1),i.YNc(2,_,2,2,"div",2),i.BQk()),2&t){const t=e.ngIf;i.xp6(1),i.Q6J("ngIf",t[0]),i.xp6(1),i.Q6J("ngIf",t[1])}}let b=(()=>{class t{constructor(t,e,n,i,r,s){this.container=i,this.doc=r,this.el=s,this.tuiScrollbar="vertical";const{nativeElement:h}=this.el,d=(0,o.mL)(h,"mousedown"),p=(0,o.mL)(this.doc,"mousemove"),g=(0,o.mL)(this.doc,"mouseup"),v=(0,o.mL)(this.wrapper,"mousedown");(0,m.T)(v.pipe((0,a.U)(t=>this.getScrolled(t,.5,.5))),d.pipe((0,o.vm)(),(0,l.w)(t=>{const e=h.getBoundingClientRect(),n=function({clientY:t},{top:e,height:n}){return(t-e)/n}(t,e),i=function({clientX:t},{left:e,width:n}){return(t-e)/n}(t,e);return p.pipe((0,a.U)(t=>this.getScrolled(t,n,i)),(0,c.R)(g))}))).pipe((0,o.fL)(t),(0,c.R)(e)).subscribe(([t,e])=>{"vertical"===this.tuiScrollbar?this.element.scrollTop=t:this.element.scrollLeft=e}),(0,m.T)(n.pipe((0,u.p)(f.Yg)),(0,o.pt)(this.element)).pipe((0,o.fL)(t),(0,c.R)(e)).subscribe(()=>{"vertical"===this.tuiScrollbar?(h.style.top=100*this.thumb+"%",h.style.height=100*this.view+"%"):(h.style.left=100*this.thumb+"%",h.style.width=100*this.view+"%")})}get wrapper(){return this.el.nativeElement.parentElement}get scrolled(){const{scrollTop:t,scrollHeight:e,clientHeight:n,scrollLeft:i,scrollWidth:r,clientWidth:o}=this.element;return"vertical"===this.tuiScrollbar?t/(e-n):i/(r-o)}get compensation(){const{clientHeight:t,scrollHeight:e,clientWidth:n,scrollWidth:i}=this.element;return t*t/e>24&&"vertical"===this.tuiScrollbar||n*n/i>24&&"horizontal"===this.tuiScrollbar?0:"vertical"===this.tuiScrollbar?24/t:24/n}get thumb(){return this.scrolled*(1-(this.compensation||this.view))}get view(){const{clientHeight:t,scrollHeight:e,clientWidth:n,scrollWidth:i}=this.element;return"vertical"===this.tuiScrollbar?Math.ceil(t/e*100)/100:Math.ceil(n/i*100)/100}get element(){return this.container.nativeElement}getScrolled({clientY:t,clientX:e},n,i){const{offsetHeight:r,offsetWidth:o}=this.el.nativeElement,{top:s,left:a,width:l,height:c}=this.wrapper.getBoundingClientRect();return[(t-s-r*n)/(c-r)*(this.element.scrollHeight-c),(e-a-o*i)/(l-o)*(this.element.scrollWidth-l)]}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.R0b),i.Y36(g.a3,2),i.Y36(r.L1),i.Y36(s.$_),i.Y36(p.K0),i.Y36(i.SBq))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiScrollbar",""]],inputs:{tuiScrollbar:"tuiScrollbar"},features:[i._Bn([g.a3])]}),t})(),w=(()=>{class t{constructor(t,e,n){this.zone=t,this.scrollRef=e,this.animationFrame$=n,this.refresh$=this.animationFrame$.pipe((0,u.p)(300),(0,a.U)(()=>this.scrollbars),(0,h.O)([!1,!1]),(0,d.x)((t,e)=>t[0]===e[0]&&t[1]===e[1]),(0,o.Yr)(this.zone))}get scrollbars(){const{clientHeight:t,scrollHeight:e,clientWidth:n,scrollWidth:i}=this.scrollRef.nativeElement;return[Math.ceil(t/e*100)<100,Math.ceil(n/i*100)<100]}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.R0b),i.Y36(s.$_),i.Y36(r.L1))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-scroll-controls"]],decls:2,vars:3,consts:[[4,"ngIf"],["class","t-bar t-bar_vertical",3,"t-bar_has-horizontal",4,"ngIf"],["class","t-bar t-bar_horizontal",3,"t-bar_has-vertical",4,"ngIf"],[1,"t-bar","t-bar_vertical"],["tuiScrollbar","vertical",1,"t-thumb"],[1,"t-bar","t-bar_horizontal"],["tuiScrollbar","horizontal",1,"t-thumb"]],template:function(t,e){1&t&&(i.YNc(0,y,3,2,"ng-container",0),i.ALo(1,"async")),2&t&&i.Q6J("ngIf",i.lcZ(1,1,e.refresh$))},directives:[p.O5,b],pipes:[p.Ov],styles:["[_nghost-%COMP%]{position:-webkit-sticky;position:sticky;top:0;left:0;z-index:1;min-width:calc(100% - 1px);min-height:calc(100% - 1px);max-width:calc(100% - 1px);max-height:calc(100% - 1px);float:left;-webkit-margin-end:calc(-100% + 1px);margin-inline-end:calc(-100% + 1px);pointer-events:none}.t-bar[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;pointer-events:auto;animation:tuiFadeIn var(--tui-duration, .3s) ease-in-out}.t-bar_vertical[_ngcontent-%COMP%]{top:0;width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%]{left:0;height:.875rem}.t-bar_has-horizontal[_ngcontent-%COMP%]{bottom:.5rem}.t-bar_has-vertical[_ngcontent-%COMP%]{right:.5rem}.t-thumb[_ngcontent-%COMP%]{position:absolute;border-radius:6.25rem;border:.25rem solid transparent;cursor:pointer;pointer-events:auto;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:currentColor;background-clip:content-box;box-sizing:border-box;transition:all var(--tui-duration, .3s) ease-in-out;transition-property:width,height,opacity;opacity:.2}.t-thumb[_ngcontent-%COMP%]:hover{opacity:.24}.t-thumb[_ngcontent-%COMP%]:active{opacity:.48}.t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{right:0;width:.75rem;min-height:1.25rem}.t-bar_vertical[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_vertical[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{width:.875rem}.t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]{bottom:0;height:.75rem;min-width:1.25rem}.t-bar_horizontal[_ngcontent-%COMP%]:hover .t-thumb[_ngcontent-%COMP%], .t-bar_horizontal[_ngcontent-%COMP%] .t-thumb[_ngcontent-%COMP%]:active{height:.875rem}"],changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiScrollRef",""]],features:[i._Bn([{provide:s.$_,useExisting:i.SBq}])]}),t})(),x=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[p.ez]]}),t})()},33770:function(t,e,n){"use strict";n.d(e,{Iy:function(){return o},Ye:function(){return s},F:function(){return _},fv:function(){return y},em:function(){return b},f$:function(){return v},LZ:function(){return l},Jy:function(){return h},iD:function(){return c},Mm:function(){return a},Yg:function(){return g},bg:function(){return p},yZ:function(){return d},Kx:function(){return f},Ml:function(){return w},Lw:function(){return m}});var i=n(74788),r=n(56083);const o=()=>!1,s=()=>!0,a=new i.n_E,l=[],c=()=>{},u={bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0},h=Object.assign(Object.assign({},u),{toJSON:()=>u}),d=t=>String(t),p=(t,e)=>t===e||function(t,e){return Array.isArray(t)&&Array.isArray(e)&&!t.length&&!e.length}(t,e),f=(0,r.X$)("tuiParentAnimation",[(0,r.eR)(":leave",[(0,r.IO)(":scope > *",[(0,r.pV)()],{optional:!0})])]),g=((0,r.X$)("tuiParentStop",[(0,r.eR)(":enter",[])]),1e3/15),m=t=>"ownerSVGElement"in t?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,v="\xa0",_="\u2013",y="-",b="\u2212",w="3.48.0"},44358:function(t,e,n){"use strict";n.d(e,{UM:function(){return o}});var i=n(27788);function r(t,e,n=!0){return function(){const i=t.call(this);return Object.defineProperty(this,e,{enumerable:n,value:i}),i}}function o(t,e,n){if("function"==typeof t){const n=e;if("getter"===n.kind)return r(t,n.name);if("method"===n.kind)return function(t){let e,n=[],i=!1;return function(...r){return i&&n.length===r.length&&r.every((t,e)=>t===n[e])||(n=r,e=t.apply(this,r),i=!0),e}}(t);throw new i.jw}const{get:o,enumerable:s,value:a}=n,l=e;if(o)return{configurable:!0,enumerable:s,get:r(o,l,s)};if("function"!=typeof a)throw new i.jw;const c=a;return{configurable:!0,enumerable:s,get(){let t,e=[],n=!1;const i=(...i)=>(n&&e.length===i.length&&i.every((t,n)=>t===e[n])||(e=i,t=c.apply(this,i),n=!0),t);return Object.defineProperty(this,l,{configurable:!0,value:i}),i}}}},221:function(t,e,n){"use strict";n.d(e,{e:function(){return p},A:function(){return f}});var i=n(97582),r=n(74788),o=n(44358),s=n(40946),a=n(99434),l=n(11927),c=n(88002),u=n(39761),h=n(87519),d=n(13653);let p=(()=>{class t{constructor(t,e,n,i){var r;this.active$=t,this.zone=e,this.el=n,this.directParentActiveZone=i,this.subActiveZones=[],this.tuiActiveZoneParent=null,this.tuiActiveZoneChange=this.active$.pipe((0,c.U)(t=>!!t&&this.contains(t)),(0,u.O)(!1),(0,h.x)(),(0,d.T)(1),(0,s.Yr)(this.zone)),null===(r=this.directParentActiveZone)||void 0===r||r.addSubActiveZone(this)}set tuiActiveZoneParentSetter(t){this.setZone(t)}ngOnDestroy(){var t,e;null===(t=this.directParentActiveZone)||void 0===t||t.removeSubActiveZone(this),null===(e=this.tuiActiveZoneParent)||void 0===e||e.removeSubActiveZone(this)}contains(t){return this.el.nativeElement.contains(t)||this.subActiveZones.some((e,n,i)=>i.indexOf(e)===n&&e.contains(t))}setZone(t){var e;null===(e=this.tuiActiveZoneParent)||void 0===e||e.removeSubActiveZone(this),null==t||t.addSubActiveZone(this),this.tuiActiveZoneParent=t}addSubActiveZone(t){this.subActiveZones=[...this.subActiveZones,t]}removeSubActiveZone(t){this.subActiveZones=(0,l.WX)(this.subActiveZones,this.subActiveZones.indexOf(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(a.wk),r.Y36(r.R0b),r.Y36(r.SBq),r.Y36(t,12))},t.\u0275dir=r.lG2({type:t,selectors:[["","tuiActiveZone","",5,"ng-container"],["","tuiActiveZoneChange","",5,"ng-container"],["","tuiActiveZoneParent","",5,"ng-container"]],inputs:{tuiActiveZoneParentSetter:["tuiActiveZoneParent","tuiActiveZoneParentSetter"]},outputs:{tuiActiveZoneChange:"tuiActiveZoneChange"},exportAs:["tuiActiveZone"]}),(0,i.gn)([o.UM],t.prototype,"setZone",null),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})()},44541:function(t,e,n){"use strict";n.d(e,{t:function(){return r},S:function(){return o}});var i=n(74788);let r=(()=>{class t{constructor(){this.indeterminate=!1,this.checked=!1,this.tuiCheckedChange=new i.vpe}get isChecked(){return this.checked}get isIndeterminate(){return this.indeterminate}set tuiChecked(t){this.checked=t||!1,this.indeterminate=null===t}onChange({checked:t}){this.checked=t,this.indeterminate=!1,this.tuiCheckedChange.emit(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["input","tuiChecked",""],["input","tuiCheckedChange",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("change",function(t){return e.onChange(t.target)}),2&t&&i.Ikx("checked",e.isChecked)("indeterminate",e.isIndeterminate)},inputs:{tuiChecked:"tuiChecked"},outputs:{tuiCheckedChange:"tuiCheckedChange"}}),t})(),o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},88491:function(t,e,n){"use strict";n.d(e,{q:function(){return o},c:function(){return s}});var i=n(74788),r=n(27103);let o=(()=>{class t{constructor(t){this.tuiFocusVisibleChange=t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.ku))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiFocusVisibleChange",""]],outputs:{tuiFocusVisibleChange:"tuiFocusVisibleChange"},features:[i._Bn([r.a3,r.ku])]}),t})(),s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},13633:function(t,e,n){"use strict";n.d(e,{t:function(){return r},u:function(){return o}});var i=n(74788);let r=(()=>{class t{constructor(){this.focusable=!0}get tabIndex(){return this.focusable?0:-1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiFocusable",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Ikx("tabIndex",e.tabIndex)},inputs:{focusable:["tuiFocusable","focusable"]}}),t})(),o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},75059:function(t,e,n){"use strict";n.d(e,{U:function(){return h},F:function(){return d}});var i=n(74788),r=n(40946),o=n(57179),s=n(66682),a=n(88002),l=n(39761),c=n(87519),u=n(13653);let h=(()=>{class t{constructor({nativeElement:t},e){this.tuiFocusedChange=(0,s.T)((0,r.mL)(t,"focusin"),(0,r.mL)(t,"focusout")).pipe((0,a.U)(()=>(0,o.V8)(t)),(0,l.O)(!1),(0,c.x)(),(0,u.T)(1),(0,r.Yr)(e))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiFocusedChange",""]],outputs:{tuiFocusedChange:"tuiFocusedChange"}}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},96111:function(t,e,n){"use strict";n.d(e,{co:function(){return f},VE:function(){return g},gs:function(){return p}});var i=n(74788),r=n(33770),o=n(40946),s=n(64493),a=n(29856),l=n(66682),c=n(88002),u=n(45435),h=n(87519);function d({currentTarget:t,relatedTarget:e}){return!(0,s.ve)(e)||!(0,s.ve)(t)||!t.contains(e)}let p=(()=>{class t extends a.y{constructor(t,e){super(t=>this.stream$.subscribe(t)),this.el=t,this.zone=e,this.stream$=(0,l.T)((0,o.mL)(this.el.nativeElement,"mouseenter").pipe((0,c.U)(r.Ye)),(0,o.mL)(this.el.nativeElement,"mouseleave").pipe((0,c.U)(r.Iy)),(0,o.mL)(this.el.nativeElement,"mouseout").pipe((0,u.h)(d),(0,c.U)(r.Iy))).pipe((0,h.x)(),(0,o.Yr)(this.zone))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),f=(()=>{class t{constructor(t){this.tuiHoveredChange=t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(p))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiHoveredChange",""]],outputs:{tuiHoveredChange:"tuiHoveredChange"},features:[i._Bn([p])]}),t})(),g=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},92668:function(t,e,n){"use strict";n.d(e,{Ls:function(){return o},WD:function(){return s}});var i=n(74788);class r{constructor(t){this.internalDirectiveInstance=t}get $implicit(){return this.internalDirectiveInstance.tuiLet}get tuiLet(){return this.internalDirectiveInstance.tuiLet}}let o=(()=>{class t{constructor(t,e){t.createEmbeddedView(e,new r(this))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiLet",""]],inputs:{tuiLet:"tuiLet"}}),t})(),s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},71486:function(t,e,n){"use strict";n.d(e,{W:function(){return h},e:function(){return d}});var i=n(74788),r=n(40946),o=n(27103),s=n(64493),a=n(45435),l=n(46782),c=n(43190),u=n(68307);let h=(()=>{class t{constructor({nativeElement:t},e,n){this.mode="scroll",(0,r.mL)(t,"wheel",{passive:!1}).pipe((0,a.h)(()=>this.enabled),(0,r.fL)(e),(0,l.R)(n)).subscribe(t=>{this.processEvent(t,!!t.deltaY,t.deltaY?t.deltaY<0:t.deltaX<0)}),(0,r.mL)(t,"touchstart",{passive:!0}).pipe((0,c.w)(({touches:e})=>{let n,{clientX:i,clientY:o}=e[0],s=0,l=0;return(0,r.mL)(t,"touchmove",{passive:!1}).pipe((0,a.h)(()=>this.enabled),(0,u.b)(t=>{const e=t.changedTouches[0];s=i-e.clientX,l=o-e.clientY,i=e.clientX,o=e.clientY,void 0===n&&(n=Math.abs(l)>Math.abs(s)),this.processEvent(t,n,n?l<0:s<0)}))}),(0,r.fL)(e),(0,l.R)(n)).subscribe()}get enabled(){return"none"!==this.mode}get overscrollBehavior(){return this.enabled?"contain":null}processEvent(t,e,n){var i;const{target:r,currentTarget:o,cancelable:a}=t;if(a&&(0,s.ve)(r)&&"range"!==(null===(i=r)||void 0===i?void 0:i.type)){if("all"===this.mode&&(e&&!o.contains((0,s.Hs)(r))||!e&&!o.contains((0,s.Hs)(r,!1))))return void t.preventDefault();if(e&&(n&&!(0,s.ty)(r,o,!0,!1)||!n&&!(0,s.ty)(r,o,!0,!0)))return void t.preventDefault();!e&&(n&&!(0,s.ty)(r,o,!1,!1)||!n&&!(0,s.ty)(r,o,!1,!0))&&t.preventDefault()}}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(o.a3,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiOverscroll",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.Udp("overscroll-behavior",e.overscrollBehavior)},inputs:{mode:["tuiOverscroll","mode"]},features:[i._Bn([o.a3])]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},36424:function(t,e,n){"use strict";n.d(e,{L:function(){return i},B:function(){return r}});var i=(()=>{return(t=i||(i={}))[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday",i;var t})(),r=(()=>{return(t=r||(r={}))[t.January=0]="January",t[t.February=1]="February",t[t.March=2]="March",t[t.April=3]="April",t[t.May=4]="May",t[t.June=5]="June",t[t.July=6]="July",t[t.August=7]="August",t[t.September=8]="September",t[t.October=9]="October",t[t.November=10]="November",t[t.December=11]="December",r;var t})()},27788:function(t,e,n){"use strict";n.d(e,{I4:function(){return i},AM:function(){return r},JY:function(){return o},ZB:function(){return s},aq:function(){return a},jw:function(){return l},j2:function(){return c}}),Error,Error;class i extends Error{constructor(t){super("")}}class r extends Error{constructor(t){super("")}}class o extends Error{constructor(t){super("")}}class s extends Error{constructor(){super("")}}class a extends Error{constructor(){super("")}}class l extends Error{constructor(){super("")}}Error,Error;class c extends Error{constructor(){super("")}}Error,Error},40946:function(t,e,n){"use strict";n.d(e,{EK:function(){return S},ix:function(){return I},Xd:function(){return D},fw:function(){return N},ll:function(){return L},pt:function(){return z},vm:function(){return F},mL:function(){return P},NA:function(){return R},Yr:function(){return B},fL:function(){return j}});var i=n(27788),r=n(29856),o=n(22759),s=n(34022),a=n(41291),l=n(66682),c=n(22416),u=n(59193),h=n(77393);class d{call(t,e){return e.subscribe(new p(t))}}class p extends h.L{_next(t){}}var f=n(39761),g=n(43190),m=n(88002),v=n(87519),_=n(47349),y=n(15257),b=n(45435),w=n(79196),C=n(57057),x=n(68307),k=n(11927),O=n(33770),M=n(57179);function S(t){return new r.y(e=>{if(!t.valueChanges)throw new i.j2;t.valueChanges.pipe((0,f.O)(t.value)).subscribe(e)})}function P(t,e,n={}){return(0,o.R)(t,e,n)}function E(t=0){return(0,s.z)((0,g.w)(()=>(0,a.H)(t).pipe((0,m.U)(O.Iy),(0,f.O)(!0))),(0,v.x)())}let T,A;function I(t){const e=P(t,"blur"),{ownerDocument:n}=t;if(!n)throw new i.aq;return(!A||!T)&&(T=P(n,"mouseup",{capture:!0}).pipe(E(),(0,f.O)(!1),(0,_.d)({bufferSize:1,refCount:!0})),A=P(n,"mousedown",{capture:!0}).pipe(E(),(0,f.O)(!1),(0,_.d)({bufferSize:1,refCount:!0}))),(0,l.T)((0,c.z)(P(t,"focus").pipe((0,y.q)(1)),e.pipe((0,b.h)(()=>!(0,M.V8)(t)),(0,y.q)(1),function(t){return t.lift(new d)})).pipe((0,w.r)(),(0,C.M)(A,T,(t,e,n)=>e||n),(0,b.h)(k.Mv))).pipe((0,g.w)(()=>e.pipe((0,m.U)(O.Iy),(0,y.q)(1),(0,f.O)(!0))),(0,v.x)())}function D(t,e=Boolean){return(0,s.z)((0,g.w)(n=>e(n)?t(n):u.E))}function N(t){var e,n;return"observed"in t?t.observed:!!(null===(n=null===(e=t)||void 0===e?void 0:e.observers)||void 0===n?void 0:n.length)}function L(t){return t.changes.pipe((0,f.O)(null),(0,m.U)(()=>(0,k.gD)(t)))}function z(t){return P(t===t.ownerDocument.documentElement?t.ownerDocument:t,"scroll")}function F(){return(0,x.b)(t=>{t.stopPropagation()})}function R(t){return(0,x.b)(()=>{t.markForCheck()})}function j(t){return e=>new r.y(n=>t.runOutsideAngular(()=>e.subscribe(n)))}function B(t){return(0,s.z)(j(t),function(t){return e=>new r.y(n=>e.subscribe({next:e=>t.run(()=>n.next(e)),error:e=>t.run(()=>n.error(e)),complete:()=>t.run(()=>n.complete())}))}(t))}},27103:function(t,e,n){"use strict";n.d(e,{a3:function(){return L},gH:function(){return z},ku:function(){return F},ll:function(){return R},AQ:function(){return B},b0:function(){return j},tl:function(){return V},Fr:function(){return $},$D:function(){return Z}});var i=n(74788),r=n(74235),o=n(29856),s=n(41439),a=n(66682),l=n(22759),c=n(97968),u=n(40946),h=n(46782),d=n(87874),p=n(43219),f=n(88002),g=n(39761),m=n(87519),v=n(5304),_=n(54395),y=n(9945),b=n(43190),w=n(47349),C=n(59328),x=n(45435),k=n(62579),O=n(33770),M=n(64493),S=n(12057);const P=new i.OlP("Box model to observe changes",{providedIn:"root",factory:()=>"content-box"}),E=new i.OlP("Resize Observer API support",{providedIn:"root",factory:()=>!!(0,i.f3M)(k.m9).ResizeObserver});let T=(()=>{class t extends o.y{constructor({nativeElement:t},e,n,i){let r;return super(o=>{if(n)return r=new ResizeObserver(t=>{e.run(()=>{o.next(t)})}),r.observe(t,{box:i}),()=>{r.disconnect()};o.error("ResizeObserver is not supported in your browser")}),this.pipe((0,y.B)())}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(E),i.LFG(P))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})();var A=n(11927),I=n(97582),D=n(59178);var N=n(99434);let L=(()=>{class t extends r.t{constructor(){super(1)}ngOnDestroy(){this.next(),this.complete()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{constructor(t,e){this.resolver=t,this.injector=e,this.map=new Map}addComponent(t){this.map.has(t)||this.map.set(t,this.resolver.resolveComponentFactory(t).create(this.injector))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i._Vd),i.LFG(i.gxx))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),F=(()=>{class t extends o.y{constructor({nativeElement:t},e,n){super(t=>this.focusVisible$.subscribe(t)),this.focusVisible$=(0,u.ix)(t).pipe((0,u.NA)(e),(0,h.R)(n))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.sBO),i.LFG(L,2))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),R=(()=>{class t{generate(){return`tui_${t.autoId++}${Date.now()}`}}return t.autoId=0,t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),j=(()=>{class t extends o.y{constructor(t,e){super(t=>this.callback$.subscribe(t)),this.callback$=(0,s.P)(()=>{let{nativeElement:n}=t;const i=[e,n];for(;n.parentElement;)n=n.parentElement,i.push(n);return(0,a.T)(...i.map(t=>(0,u.mL)(t,"scroll")))})}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(k.m9))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t extends o.y{constructor(t,{nativeElement:e},n,i,r,o){super(t=>this.obscured$.subscribe(t)),this.obscured$=(0,a.T)((0,a.T)(t,(0,l.R)(i,"resize")).pipe((0,d.g)(0)),o.pipe((0,p.p)(O.Yg))).pipe((0,f.U)(()=>(0,M.PU)(e)),(0,g.O)(null),(0,m.x)(),(0,u.Yr)(n),(0,h.R)(r))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(j,2),i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(k.m9),i.LFG(L,2),i.LFG(k.L1))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t extends T{constructor(t,e,n,i,r,o){return super(t,e,i,r),this.pipe((0,v.K)(()=>o.pipe((0,p.p)(O.Yg),(0,f.U)(()=>`${t.nativeElement.clientWidth} ${t.nativeElement.clientHeight}`),(0,m.x)(),(0,f.U)(()=>O.LZ))),(0,_.b)(0),(0,u.fL)(e),(0,y.B)(),(0,h.R)(n))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(i.R0b),i.LFG(L,2),i.LFG(E),i.LFG(P),i.LFG(k.L1))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),$=(()=>{class t{constructor(t,e){this.win=t,this.platformId=e,this.cache=new Map}request(t){const e=this.cache.get(t);if(e)return e;const n=("AbortController"in this.win||(0,S.PM)(this.platformId)?function(t,e={}){const{selector:n}=e,i=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r{const r=new AbortController,o=r.signal;let s=!0,a=!1;const l=new D.w;let u;if(l.add(()=>{a=!0,s&&r.abort()}),i){if(i.signal)if(i.signal.aborted)r.abort();else{const t=i.signal,e=()=>{o.aborted||r.abort()};t.addEventListener("abort",e),l.add(()=>t.removeEventListener("abort",e))}u=Object.assign({},i,{signal:o})}else u={signal:o};return fetch(t,u).then(t=>{n?l.add((0,c.D)(n(t)).subscribe(t=>e.next(t),t=>{s=!1,a||e.error(t)},()=>{s=!1,e.complete()})):(s=!1,e.next(t),e.complete())}).catch(t=>{s=!1,a||e.error(t)}),l})}(t):(0,s.P)(()=>(0,c.D)(fetch(t)))).pipe((0,b.w)(e=>(0,I.mG)(this,void 0,void 0,function*(){if(e.ok)return e.text();throw new Error(`Failed to load ${t} (${e.statusText})`)})),(0,w.d)({bufferSize:1,refCount:!1}));return this.cache.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(k.m9),i.LFG(i.Lbi))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Z=(()=>{class t extends o.y{constructor({nativeElement:t},{timeout:e,threshold:n},i){super(r=>{(0,a.T)((0,u.mL)(t,"touchstart",{passive:!0}),(0,u.mL)(i,"touchend")).pipe((0,C.G)(),(0,x.h)(([t,e])=>!!t.touches.length&&t.touches[0].identifier===e.changedTouches[0].identifier),(0,f.U)(([t,i])=>{const r=t.touches[0].clientX-i.changedTouches[0].clientX,o=t.touches[0].clientY-i.changedTouches[0].clientY,s=i.timeStamp-t.timeStamp;return(Math.abs(r)>n||Math.abs(o)>n)&&s1}const c=/^((?!chrome|android).)*safari/i;var u=n(11927),h=n(64493),d=n(26215),p=n(41291),f=n(66682),g=n(25917),m=n(97968),v=n(59193),_=n(43190),y=n(88002),b=n(39761),w=n(9945),C=n(46782),x=n(72361),k=n(57057),O=n(45435),M=n(15257),S=n(87519),P=n(47349),E=n(79221),T=n(33770);const A=(0,u.N1)(()=>{const t={onRemovalComplete:()=>{}},e=new d.X(null),n=(0,r.f3M)(E.Th,r.XFs.Optional)||t,{onRemovalComplete:i=t.onRemovalComplete}=n;return n.onRemovalComplete=(t,r)=>{e.next(t),i.call(n,t,r)},e.pipe((0,_.w)(t=>(0,p.H)(0).pipe((0,y.U)(()=>null),(0,b.O)(t))),(0,w.B)())}),I=(0,u.N1)(()=>{const t=(0,r.f3M)(A),e=(0,r.f3M)(o.m9),n=(0,r.f3M)(i.K0),a=(0,s.mL)(e,"focusout"),l=(0,s.mL)(e,"focusin"),c=(0,s.mL)(e,"blur"),u=(0,s.mL)(e,"mousedown"),d=(0,s.mL)(e,"mouseup");return(0,f.T)(a.pipe((0,C.R)(u),(0,x.a)(()=>d),(0,k.M)(t),(0,O.h)(([t,e])=>D((0,h.mA)(t),e)),(0,y.U)(([{relatedTarget:t}])=>t)),c.pipe((0,y.U)(()=>n.activeElement),(0,O.h)(t=>!!(null==t?void 0:t.matches("iframe")))),l.pipe((0,_.w)(t=>{const e=(0,h.mA)(t),i=(0,h.Wf)(e);return i===n?(0,g.of)(e):function(t){return(0,f.T)((0,s.mL)(t,"focusin").pipe((0,y.U)(({target:t})=>t)),(0,s.mL)(t,"focusout").pipe((0,O.h)(({target:t,relatedTarget:e})=>!!e&&D(t)),(0,y.U)(({relatedTarget:t})=>t)))}(i).pipe((0,b.O)(e))})),u.pipe((0,_.w)(t=>{const e=(0,h.mA)(t);return n.activeElement&&n.activeElement!==n.body?a.pipe((0,M.q)(1),(0,y.U)(()=>e),(0,C.R)((0,p.H)(0))):(0,g.of)(e)}))).pipe((0,S.x)(),(0,w.B)())});function D(t,e=null){return(0,h.Wf)(t).activeElement!==t&&!t.matches(":disabled")&&!(null==e?void 0:e.contains(t))}const N=(0,u.JN)([]);function L(t){return{provide:N,multi:!0,useExisting:t}}const z=(0,u.N1)(()=>{var t,e;return null!==(e=null===(t=(0,r.f3M)(i.K0).querySelector("base"))||void 0===t?void 0:t.href)&&void 0!==e?e:""}),F=((0,u.N1)(()=>(0,r.f3M)(r.FYo).createRenderer(null,null)),(0,u.JN)([]));function R(t){return{provide:F,multi:!0,useExisting:t}}(0,u.N1)(()=>{var t;const e=null===(t=(0,r.f3M)(i.K0).querySelector("base"))||void 0===t?void 0:t.href;if(e)return e;const n=(0,r.f3M)(i.K0).createElement("a");return n.href="",n.pathname});const j=new r.OlP("[TUI_FOCUSABLE_ITEM_ACCESSOR]");function B(t){return{provide:j,useExisting:t}}const V=new r.OlP("[TUI_FONTS_READY]",{factory:()=>{var t;return(0,m.D)((null===(t=(0,r.f3M)(i.K0).fonts)||void 0===t?void 0:t.ready)||v.E).pipe((0,P.d)({bufferSize:1,refCount:!1}))}}),$=(0,u.N1)(()=>l((0,r.f3M)(o.s5))),Z=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/,q=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/,Y=(0,u.N1)(()=>Z.test((0,r.f3M)(o.yZ).toLowerCase())||q.test((0,r.f3M)(o.yZ).slice(0,4).toLowerCase())),U=(0,u.N1)(()=>(0,r.f3M)(Y)&&!(0,r.f3M)($)),H=(0,u.N1)(()=>{return l(t=(0,r.f3M)(o.s5))||c.test(t.userAgent.toLowerCase());var t}),G=((0,u.N1)(()=>!!(0,r.f3M)(o.m9).chrome),(0,u.N1)(()=>!!(0,r.f3M)(o.m9).Cypress)),J=(0,u.N1)(T.Iy),X=(0,u.N1)(()=>(0,r.f3M)(G)||(0,r.f3M)(J)),Q=((0,u.N1)(()=>{var t;return void 0!==(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.mozCancelFullScreen)}),(0,u.N1)(()=>(0,r.f3M)(o.m9).location.host.endsWith("stackblitz.io")),(0,u.N1)(()=>{var t;return!!(null===(t=(0,r.f3M)(o.m9))||void 0===t?void 0:t.webkitConvertPointFromNodeToPage)}));(0,u.JN)("web"),(0,u.N1)(()=>(0,i.NF)((0,r.f3M)(r.Lbi))?new Range:{});const W=(0,u.N1)(()=>new r.SBq((0,r.f3M)(i.K0).documentElement)),K=(0,u.JN)({timeout:500,threshold:30}),tt=((0,u.N1)(T.Ye),(0,u.N1)(()=>(0,r.f3M)(o.m9).matchMedia("(any-pointer: coarse)").matches),new r.OlP("[TUI_WINDOW_SIZE]",{factory:()=>{const t=(0,r.f3M)(o.m9);return(0,s.mL)(t,"resize").pipe((0,b.O)(null),(0,y.U)(()=>{var e,n;const i=Math.max(t.innerWidth,(null===(e=t.visualViewport)||void 0===e?void 0:e.width)||0),r=Math.max(t.innerHeight,(null===(n=t.visualViewport)||void 0===n?void 0:n.height)||0);return{width:i,height:r,top:0,left:0,right:i,bottom:r}}),(0,P.d)({bufferSize:1,refCount:!0}))}}));(0,u.N1)(()=>(0,r.f3M)(tt).pipe((0,y.U)(({height:t})=>t))),(0,u.JN)({wheelSensitivity:.01})},41213:function(t,e,n){"use strict";function i(t){return t.toLowerCase().includes("firefox")}function r({ownerDocument:t}){var e,n,i,r,o,s,a,l;const c=null==t?void 0:t.defaultView,u=void 0!==c.safari&&"[object SafariRemoteNotification]"===(null===(n=null===(e=c.safari)||void 0===e?void 0:e.pushNotification)||void 0===n?void 0:n.toString()),h=!!(null===(r=null===(i=c.navigator)||void 0===i?void 0:i.vendor)||void 0===r?void 0:r.includes("Apple"))&&!(null===(s=null===(o=c.navigator)||void 0===o?void 0:o.userAgent)||void 0===s?void 0:s.includes("CriOS"))&&!(null===(l=null===(a=c.navigator)||void 0===a?void 0:a.userAgent)||void 0===l?void 0:l.includes("FxiOS"));return u||h}n.d(e,{oK:function(){return i},Ex:function(){return r}})},64493:function(t,e,n){"use strict";n.d(e,{ty:function(){return o},PP:function(){return s},mA:function(){return c},Wf:function(){return u},PU:function(){return h},YX:function(){return d},Hs:function(){return p},ve:function(){return a},Hn:function(){return f},dW:function(){return l},dD:function(){return g},UP:function(){return m}});var i=n(85648),r=n(11927);function o(t,e,n,i){return n?function(t,e,n){let i=t;for(;i!==e.parentElement;){if(Math.floor(i.scrollTop)>0&&!n||Math.ceil(i.scrollTop+i.clientHeight)0&&!n||Math.ceil(i.scrollLeft+i.clientWidth)!t.contains(e));return 4===m.length?m:null}function d(t,e){let{offsetTop:n,offsetLeft:i,offsetParent:r}=e;for(;l(r)&&r!==t;)n+=r.offsetTop,i+=r.offsetLeft,r=r.offsetParent;return{offsetTop:n,offsetLeft:i}}function p(t,e=!0){return null===t?null:e&&t.scrollHeight>t.clientHeight||!e&&t.scrollWidth>t.clientWidth?t:p(t.parentElement,e)}function f(t){return function(t){return function(t){return t.matches("input")}(t)||function(t){return t.matches("textarea")}(t)}(t)&&!t.readOnly||!!t.isContentEditable}function g(t=0,e=0){const n={x:t,y:e,left:t,right:t,top:e,bottom:e,width:0,height:0};return Object.assign(Object.assign({},n),{toJSON:()=>n})}function m(t){var e,n;return"explicitOriginalTarget"in t?(null==t?void 0:t.explicitOriginalTarget)!==t.target:"layerX"in t&&"layerY"in t&&((null!==(e=null==t?void 0:t.layerX)&&void 0!==e?e:0)<0||(null!==(n=null==t?void 0:t.layerY)&&void 0!==n?n:0)<0)}n(18939)},57179:function(t,e,n){"use strict";n.d(e,{hp:function(){return s},BW:function(){return c},ie:function(){return o},V8:function(){return u},zb:function(){return h},dT:function(){return a},VR:function(){return d},Pg:function(){return p}});var i=n(64493),r=n(33770);function o({activeElement:t}){if(!(null==t?void 0:t.shadowRoot))return t;let e=t.shadowRoot.activeElement;for(;null==e?void 0:e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function s(t){const e=o(t);(0,i.dW)(e)&&e.blur()}function a(t){if(t.hasAttribute("disabled")||"-1"===t.getAttribute("tabIndex"))return!1;if((0,i.dW)(t)&&t.isContentEditable||"0"===t.getAttribute("tabIndex"))return!0;switch(t.tagName){case"BUTTON":case"SELECT":case"TEXTAREA":return!0;case"VIDEO":case"AUDIO":return t.hasAttribute("controls");case"INPUT":return"hidden"!==t.getAttribute("type");case"A":case"LINK":return t.hasAttribute("href");default:return!1}}function l(t){return!t.hasAttribute("disabled")&&("-1"===t.getAttribute("tabIndex")||a(t))}function c({initial:t,root:e,previous:n=!1,keyboard:o=!0}){if(!e.ownerDocument)return null;const s=o?a:l,c=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,r.Lw);for(c.currentNode=t;n?c.previousNode():c.nextNode();)if((0,i.dW)(c.currentNode)&&(t=c.currentNode),(0,i.dW)(t)&&s(t))return t;return null}function u(t){return!!(null==t?void 0:t.ownerDocument)&&o(t.ownerDocument)===t}function h(t){if(!t.ownerDocument||!t.contains)return!1;const e=o(t.ownerDocument);return null!==e&&t.contains(e)}function d(t,e,n){for(t+=n;t>=0&&t=e&&t=n?n:Math.round(t)}function s(t,e,n){if(t===1/0)return t;e=Math.min(e,292);const i=`${t}e`.split("e"),r=`${n(Number(`${i[0]}e${Number(i[1])+e}`))}e`.split("e");return Number(`${r[0]}e${Number(r[1])-e}`)}function a({value:t,precision:e,method:n}){switch(n){case"round":return function(t,e=0){return s(t,e,Math.round)}(t,e);case"ceil":return function(t,e=0){return s(t,e,Math.ceil)}(t,e);case"floor":return function(t,e=0){return s(t,e,Math.floor)}(t,e);default:return function(t,e=0){return s(t,e,Math.trunc)}(t,e)}}function l(t){return t?1:0}function c(t){return parseInt(t,10)}n.d(e,{Ki:function(){return i},wf:function(){return r},G1:function(){return o},h0:function(){return a},HW:function(){return l},oY:function(){return c}}),n(18939)},11927:function(t,e,n){"use strict";n.d(e,{WX:function(){return r},xT:function(){return s},JN:function(){return a},N1:function(){return l},gD:function(){return c},M8:function(){return u},Mv:function(){return h},dt:function(){return d},Pc:function(){return p},Aj:function(){return o},vK:function(){return f},pf:function(){return g}});var i=n(74788);function r(t,e){return t.slice(0,Math.max(e,0)).concat(t.slice(Math.max(e+1,0)))}function o(t){return"string"==typeof t}function s(t){return JSON.parse(JSON.stringify(t,(t,e)=>function(t){const e=o(t)?t.trim():t;return[void 0,null,NaN,""].includes(e)}(e)?void 0:e))}function a(t){return l(()=>t)}function l(t){return new i.OlP("",{factory:t})}function c(t){let e=[];return t.find((t,n,i)=>(e=i,!0)),e}function u(t,e){return Math.abs(e)>Math.abs(t)?e>0?"top":"bottom":t>0?"left":"right"}function h(t){return!t}function d(t){return"number"==typeof t}function p(t){return null!=t}function f(t,e,n){return{provide:t,deps:[[new i.FiY,new i.tp0,t]],useFactory:t=>Object.assign(Object.assign({},t||n),e)}}function g(t,e){return Array.from(t.reduce((t,n)=>t.has(n[e])?t:t.set(n[e],n),new Map).values())}},68192:function(t,e,n){"use strict";n.d(e,{N:function(){return r}});var i=n(11927);function r(t,e=function(){return Math.floor(Math.random()*Date.now())}(),n="rgba(0, 0, 0, 0.7)"){if((0,i.Aj)(t)){const i=function(t){var e;const n=(null!==(e=t.match(/url\(("?)('*)#(.*?)('*)\)/g))&&void 0!==e?e:[]).map(t=>t.slice(4,t.length-1).replace(/['"#]+/g,""));return Array.from(new Set(n))}(t).reduce((t,n)=>{const i=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(n),r=`id_${e}_${n}`;return t.replace(new RegExp(`"${i}"`,"g"),`"${r}"`).replace(new RegExp(`'${i}'`,"g"),`'${r}'`).replace(new RegExp(`url\\('#${i}'\\)`,"g"),`url('#${r}')`).replace(new RegExp(`url\\("#${i}"\\)`,"g"),`url("#${r}")`).replace(new RegExp(`url\\(#${i}\\)`,"g"),`url(#${r})`)},t);return function(t,e){try{const n=(new DOMParser).parseFromString(t,"text/html");return n.body.querySelectorAll("[fill^=url]").forEach(t=>t.setAttribute("fill",`${t.getAttribute("fill")} ${e}`.trim())),n.body.innerHTML.trim()}catch(n){return t}}(i,n)}return t}},43631:function(t,e,n){"use strict";n.d(e,{FP:function(){return f},D1:function(){return g},kk:function(){return u},uG:function(){return m},O4:function(){return y},c2:function(){return d},UK:function(){return h},P7:function(){return _},Ic:function(){return C},Fe:function(){return p},Sv:function(){return w},ei:function(){return v},Wk:function(){return b}});var i=n(74788),r=n(27103),o=n(76480),s=n(29856),a=n(66682),l=n(87519),c=n(46782);class u extends s.y{}function h(t){return{provide:u,multi:!0,useExisting:t}}class d{}function p(t){return{provide:d,multi:!0,useExisting:t}}let f=(()=>{class t{constructor(t,e,n){this.destroy$=t,this.drivers=e,this.vehicles=n}ngOnInit(){const t=this.vehicles.find(({type:t})=>t===this.type);(0,a.T)(...this.drivers.filter(({type:t})=>t===this.type)).pipe((0,l.x)(),(0,c.R)(this.destroy$)).subscribe(e=>{null==t||t.toggle(e)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.a3,2),i.Y36(u),i.Y36(d))},t.\u0275dir=i.lG2({type:t}),t})(),g=(()=>{class t{constructor(t){this.host=t}get readOnly(){return this.host.readOnly}get disabled(){return this.host.computedDisabled}get invalid(){return this.host.computedInvalid}get focusable(){return this.host.computedFocusable}get inputMode(){return"text"}get value(){var t;return(null===(t=this.host.value)||void 0===t?void 0:t.toString())||""}process(t){}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(o.M$))},t.\u0275dir=i.lG2({type:t}),t})();class m{}function v(t){return{provide:m,deps:[[new i.tp0,m]],useFactory:e=>e.find(e=>e.type===t)}}function _(t){return{provide:m,multi:!0,useExisting:t}}class y{}function b(t,e){return{provide:y,deps:[[new i.tp0,y],e],useFactory:w(t)}}function w(t){return(e,n)=>e.find(e=>e!==n&&e.type===t)||n}function C(t){return{provide:y,multi:!0,useExisting:t}}},49941:function(t,e,n){"use strict";n.d(e,{i9:function(){return c},QF:function(){return l},eu:function(){return a},gI:function(){return u},Gw:function(){return h},X9:function(){return d}});var i=n(56083);const r="{{duration}}ms ease-in-out",o={params:{duration:300}},s=300,a=(0,i.X$)("tuiHeightCollapse",[(0,i.eR)(":enter",[(0,i.oB)({height:0}),(0,i.jt)(r,(0,i.oB)({height:"*"}))],o),(0,i.eR)(":leave",[(0,i.oB)({height:"*"}),(0,i.jt)(r,(0,i.oB)({height:0}))],o)]),l=((0,i.X$)("tuiHeightCollapseList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({height:0}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({height:"*"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({height:"*"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({height:0}))])],{optional:!0})],o)]),(0,i.X$)("tuiWidthCollapse",[(0,i.eR)(":enter",[(0,i.oB)({width:0}),(0,i.jt)(r,(0,i.oB)({width:"*"}))],o),(0,i.eR)(":leave",[(0,i.oB)({width:"*"}),(0,i.jt)(r,(0,i.oB)({width:0}))],o)]),(0,i.X$)("tuiWidthCollapseList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({width:0}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({width:"*"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({width:"*"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({width:0}))])],{optional:!0})],o)]),(0,i.X$)("tuiFadeIn",[(0,i.eR)(":enter",[(0,i.oB)({opacity:0}),(0,i.jt)(r,(0,i.oB)({opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({opacity:1}),(0,i.jt)(r,(0,i.oB)({opacity:0}))],o)])),c=((0,i.X$)("tuiFadeInList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({opacity:0}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({opacity:1}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({opacity:1}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({opacity:0}))])],{optional:!0})],o)]),(0,i.X$)("tuiFadeInTop",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(-10px)",opacity:0}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)",opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)",opacity:1}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(-10px)",opacity:0}))],o)]),(0,i.X$)("tuiFadeInBottom",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(10px)",opacity:0}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)",opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)",opacity:1}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(10px)",opacity:0}))],o)]),(0,i.X$)("tuiDropdownAnimation",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(-10px)",opacity:0}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)",opacity:1}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)",opacity:1}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(-10px)",opacity:0}))],o)])),u=(0,i.X$)("tuiScaleIn",[(0,i.eR)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(1)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"scale(1)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(0)"}))],o)]),h=((0,i.X$)("tuiPop",[(0,i.eR)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(1.1)"})),(0,i.jt)(r,(0,i.oB)({transform:"scale(1)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"scale(1)"}),(0,i.jt)(r,(0,i.oB)({transform:"scale(1.1)"})),(0,i.jt)(r,(0,i.oB)({transform:"scale(0)"}))],o)]),(0,i.X$)("tuiScaleInList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"scale(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"scale(1)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"scale(1)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"scale(0)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideIn",[(0,i.eR)("* => left",[(0,i.oB)({transform:"translateX(-100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)("left => *",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(-100%)"}))],o),(0,i.eR)("* => right",[(0,i.oB)({transform:"translateX(100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)("right => *",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(100%)"}))],o)])),d=((0,i.X$)("tuiSlideInLeft",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateX(-100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(-100%)"}))],o)]),(0,i.X$)("tuiSlideInLeftList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateX(-100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(-100%)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideInRight",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateX(100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateX(100%)"}))],o)]),(0,i.X$)("tuiSlideInRightList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateX(100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateX(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateX(100%)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideInTop",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translate3d(0,{{start}},0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translate3d(0,{{end}},0)"}))],{params:{end:0,start:"100%",duration:300}}),(0,i.eR)(":leave",[(0,i.oB)({transform:"translate3d(0,{{end}},0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translate3d(0,{{start}},0)"}))],{params:{end:0,start:"100%",duration:300}})]));(0,i.X$)("tuiSlideInTopList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateY(100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateY(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(100%)"}))])],{optional:!0})],o)]),(0,i.X$)("tuiSlideInBottom",[(0,i.eR)(":enter",[(0,i.oB)({transform:"translateY(-100%)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)"}))],o),(0,i.eR)(":leave",[(0,i.oB)({transform:"translateY(0)"}),(0,i.jt)(r,(0,i.oB)({transform:"translateY(-100%)"}))],o)]),(0,i.X$)("tuiSlideInBottomList",[(0,i.eR)("* => *",[(0,i.IO)(":enter",[(0,i.oB)({transform:"translateY(-100%)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(0)"}))])],{optional:!0}),(0,i.IO)(":leave",[(0,i.oB)({transform:"translateY(0)"}),(0,i.EY)(s,[(0,i.jt)(r,(0,i.oB)({transform:"translateY(-100%)"}))])],{optional:!0})],o)])},12628:function(t,e,n){"use strict";n.d(e,{v0:function(){return E},fN:function(){return T}});var i=n(74788),r=n(11927),o=n(76480),s=n(57179),a=n(99434),l=n(27103),c=n(75452),u=n(59193),h=n(39761),d=n(88002),p=n(87519),f=n(77320),g=n(54789),m=n(40719),v=n(12057),_=n(91489),y=n(89570);const b=["tuiButton",""];function w(t,e){1&t&&i.GkF(0)}function C(t,e){1&t&&i._UZ(0,"tui-svg",8),2&t&&i.Q6J("src",e.polymorpheusOutlet)}function x(t,e){if(1&t&&(i.TgZ(0,"span",6),i.YNc(1,C,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)}}function k(t,e){1&t&&i._UZ(0,"tui-svg",8),2&t&&i.Q6J("src",e.polymorpheusOutlet)}function O(t,e){if(1&t&&(i.TgZ(0,"span",9),i.YNc(1,k,1,1,"tui-svg",7),i.qZA()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.iconRight)}}function M(t,e){if(1&t&&i._UZ(0,"tui-loader",10),2&t){const t=i.oxw();i.Q6J("inheritColor",!0)("size",t.loaderSize)}}const S=["*"],P=(0,r.JN)({size:"l",shape:null,appearance:f.Nm.Primary});let E=(()=>{class t extends o.Xn{constructor(t,e,n){var i;super(),this.mode=t,this.el=e,this.options=n,this.mode$=(null===(i=this.mode)||void 0===i?void 0:i.change$)||u.E,this.appearance=null,this.disabled=!1,this.shape=this.options.shape,this.showLoader=!1,this.size=this.options.size,this.appearance$=this.mode$.pipe((0,h.O)(null),(0,d.U)(()=>this.computedAppearance),(0,p.x)())}get nativeFocusableElement(){return this.nativeDisabled?null:this.el.nativeElement}get focused(){return!this.showLoader&&(0,s.V8)(this.el.nativeElement)}get loaderSize(){return"l"===this.size||"xl"===this.size?"m":"s"}get computedAppearance(){var t;return null!==(t=this.appearance)&&void 0!==t?t:this.options.appearance||""}get nativeDisabled(){return this.computedDisabled||this.showLoader?"":null}get tabIndex(){return this.focusable?0:-1}onFocused(t){this.updateFocused(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.w,8),i.Y36(i.SBq),i.Y36(P))},t.\u0275cmp=i.Xpm({type:t,selectors:[["button","tuiButton",""],["button","tuiIconButton",""],["a","tuiButton",""],["a","tuiIconButton",""]],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("focusin",function(){return e.onFocused(!0)})("focusout",function(){return e.onFocused(!1)}),2&t&&(i.Ikx("tabIndex",e.tabIndex),i.uIk("data-shape",e.shape)("data-size",e.size)("data-appearance",e.computedAppearance)("disabled",e.nativeDisabled),i.ekj("_loading",e.showLoader))},inputs:{appearance:"appearance",disabled:"disabled",icon:"icon",iconRight:"iconRight",shape:"shape",showLoader:"showLoader",size:"size"},features:[i._Bn([(0,a.FT)(t),l.a3]),i.qOj],attrs:b,ngContentSelectors:S,decls:8,vars:10,consts:[[4,"ngIf"],["tuiWrapper","",1,"t-wrapper",3,"active","appearance","disabled","hover"],[1,"t-content"],["class","t-left",4,"ngIf"],["class","t-right",4,"ngIf"],["class","t-loader",3,"inheritColor","size",4,"ngIf"],[1,"t-left"],["class","t-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-icon",3,"src"],[1,"t-right"],[1,"t-loader",3,"inheritColor","size"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,w,1,0,"ng-container",0),i.ALo(1,"async"),i.TgZ(2,"div",1),i.TgZ(3,"span",2),i.YNc(4,x,2,1,"span",3),i.Hsn(5),i.YNc(6,O,2,1,"span",4),i.qZA(),i.YNc(7,M,1,2,"tui-loader",5),i.qZA()),2&t&&(i.Q6J("ngIf",i.lcZ(1,8,e.appearance$)),i.xp6(2),i.Q6J("active",e.pseudoActive)("appearance",e.computedAppearance)("disabled",e.computedDisabled)("hover",e.pseudoHover),i.xp6(2),i.Q6J("ngIf",e.icon),i.xp6(2),i.Q6J("ngIf",e.iconRight),i.xp6(1),i.Q6J("ngIf",e.showLoader))},directives:[v.O5,_.o,y.Li,g.PN,m.kM],pipes:[v.Ov],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:inline-block;flex-shrink:0;vertical-align:top;border-radius:var(--tui-radius-m);-webkit-user-select:none;-moz-user-select:none;user-select:none;text-decoration:none;outline:none;color:inherit}[data-shape=rounded][_nghost-%COMP%]{border-radius:6.25rem}[data-size=xs][_nghost-%COMP%]{height:var(--tui-height-xs);font-weight:normal}[data-size=xs][data-shape=square][_nghost-%COMP%], [data-size=xs][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-xs)}[data-size=s][_nghost-%COMP%]{height:var(--tui-height-s);font-weight:normal}[data-size=s][data-shape=square][_nghost-%COMP%], [data-size=s][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{height:var(--tui-height-m);font:var(--tui-font-text-m);font-weight:bold}[data-size=m][data-shape=square][_nghost-%COMP%], [data-size=m][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{height:var(--tui-height-l);font:var(--tui-font-text-m);font-weight:bold}[data-size=l][data-shape=square][_nghost-%COMP%], [data-size=l][tuiIconButton][_nghost-%COMP%]{width:var(--tui-height-l)}[data-size=xl][_nghost-%COMP%]{height:3.75rem;font:var(--tui-font-text-m);font-weight:bold}[data-size=xl][data-shape=square][_nghost-%COMP%], [data-size=xl][tuiIconButton][_nghost-%COMP%]{width:3.75rem}[tuiIconButton][_nghost-%COMP%]{font-size:0!important}[tuiIconButton][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0!important}.t-loader[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:default}.t-left[_ngcontent-%COMP%]{margin-right:.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.375rem}[data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%]{margin-right:.25rem}.t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .25rem}[data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.25rem 0 .375rem}[data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{margin:0 -.125rem 0 .25rem}.t-icon[_ngcontent-%COMP%]{display:flex;max-width:100%;max-height:100%;align-items:center;justify-content:center}.t-left[_ngcontent-%COMP%], .t-right[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem}[data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [data-size=xs][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1rem;height:1rem}[tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-left[_ngcontent-%COMP%], [tuiIconButton][data-appearance=icon][data-size=s][_nghost-%COMP%] .t-right[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.t-wrapper[_ngcontent-%COMP%]{position:relative;z-index:0;box-sizing:border-box;cursor:pointer}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .375rem)}[data-size=xs][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]:after{border-width:1px}[data-size=s][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, .75rem)}[data-size=m][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 1.5rem)}[data-size=l][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.25rem)}[data-size=xl][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0 var(--tui-padding, 2.5rem)}[data-shape=square][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%], [tuiIconButton][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{padding:0}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;align-items:center;justify-content:center;text-align:center}._loading[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{opacity:0}"],changeDetection:0}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[v.ez,y.wq,_.W,g.EI,m.dS]]}),t})()},75111:function(t,e,n){"use strict";n.d(e,{qi:function(){return E},gX:function(){return T},pc:function(){return I},Rs:function(){return A},vK:function(){return P}});var i=n(97582),r=n(74788),o=n(57179),s=n(33770),a=n(40946),l=n(11927),c=n(64493),u=n(44358),h=n(79588),d=n(79456),p=n(88002),f=n(98952),g=n(11557),m=n(54789),v=n(89570),_=n(12057);const y=["tuiOption",""];function b(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t,"\n")}}function w(t,e){if(1&t&&r._UZ(0,"tui-svg",3),2&t){const t=r.oxw(2);r.Q6J("src",t.icons.more)}}function C(t,e){if(1&t&&(r.Hsn(0),r.YNc(1,w,1,1,"tui-svg",2)),2&t){const t=r.oxw();r.xp6(1),r.Q6J("ngIf",t.dropdown)}}const x=function(t){return{$implicit:t}},k=["*"];function O(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}function M(t,e){if(1&t&&(r.TgZ(0,"div",2),r.YNc(1,O,2,1,"ng-container",3),r.ALo(2,"async"),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.emptyContent||r.lcZ(2,1,t.defaultEmptyContent$))}}function S({currentTarget:t}){return!(0,o.V8)(t)}let P=(()=>{class t{constructor(t,e,n,i,r,o){this.content=t,this.dataList=e,this.el=n,this.host=i,this.dropdown=r,this.icons=o,this.size=null,this.role="option",this.disabled=!1}get active(){return!!this.dropdown&&!!this.dropdown.dropdownBoxRef}onClick(){this.host&&void 0!==this.value&&this.host.handleOption(this.value)}onMouseMove({currentTarget:t}){t.focus({preventScroll:!0})}ngOnDestroy(){var t;null===(t=this.dataList)||void 0===t||t.handleFocusLossIfNecessary(this.el.nativeElement)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(d.IQ,8),r.Y36((0,r.Gpc)(()=>E),8),r.Y36(r.SBq),r.Y36(d.N1,8),r.Y36(f.td,10),r.Y36(d.Gs))},t.\u0275cmp=r.Xpm({type:t,selectors:[["button","tuiOption",""],["a","tuiOption",""]],hostAttrs:["tabIndex","-1","type","button"],hostVars:5,hostBindings:function(t,e){1&t&&r.NdJ("click",function(){return e.onClick()})("mousemove.silent",function(t){return e.onMouseMove(t)}),2&t&&(r.uIk("disabled",e.disabled||null)("data-size",e.size)("role",e.role),r.ekj("_with-dropdown",e.active))},inputs:{size:"size",role:"role",disabled:"disabled",value:"value"},attrs:y,ngContentSelectors:k,decls:3,vars:4,consts:[[4,"polymorpheusOutlet","polymorpheusOutletContext"],["base",""],["class","t-arrow",3,"src",4,"ngIf"],[1,"t-arrow",3,"src"]],template:function(t,e){if(1&t&&(r.F$t(),r.YNc(0,b,2,1,"ng-container",0),r.YNc(1,C,2,1,"ng-template",null,1,r.W1O)),2&t){const t=r.MAs(2);r.Q6J("polymorpheusOutlet",e.content||t)("polymorpheusOutletContext",r.VKq(2,x,t))}},directives:[v.Li,_.O5,m.PN],styles:['[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;justify-content:space-between;text-align:left;color:var(--tui-text-01);border-radius:var(--tui-radius-s);outline:none;text-decoration:none;cursor:pointer;background-clip:padding-box}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[_nghost-%COMP%]:focus, ._with-dropdown[_nghost-%COMP%]{background-color:var(--tui-clear)}[_nghost-%COMP%] [data-list-size="s"][_nghost-%COMP%], [data-list-size="s"] [_nghost-%COMP%], [_nghost-%COMP%] [data-list-size="xs"][_nghost-%COMP%], [data-list-size="xs"] [_nghost-%COMP%], [data-size=s][data-size=s][_nghost-%COMP%], [data-size=xs][data-size=xs][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}[_nghost-%COMP%] [data-list-size="m"][_nghost-%COMP%], [data-list-size="m"] [_nghost-%COMP%], [data-size=m][data-size=m][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}[_nghost-%COMP%] [data-list-size="l"][_nghost-%COMP%], [data-list-size="l"] [_nghost-%COMP%], [data-size=l][data-size=l][_nghost-%COMP%]{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}.t-arrow[_ngcontent-%COMP%]{margin:0 -.5rem 0 .75rem}'],changeDetection:0}),(0,i.gn)([(0,g.uX)(S)],t.prototype,"onMouseMove",null),t})(),E=(()=>{class t{constructor(t,e,n){var i;this.controller=t,this.el=e,this.defaultEmptyContent$=n,this.options=s.Mm,this.role="listbox",this.size=(null===(i=this.controller)||void 0===i?void 0:i.size)||"m"}get empty$(){return(0,a.ll)(this.options).pipe((0,p.U)(({length:t})=>!t))}onFocusIn(t,e){!e.contains(t)&&!this.origin&&(this.origin=t)}noop(){}onKeyDownArrow(t,e){const{elements:n}=this;(0,o.VR)(n.indexOf(t),n,e)}handleFocusLossIfNecessary(t=this.el.nativeElement){this.origin&&(0,o.zb)(t)&&(0,o.Pg)(this.origin,!0,!0)}getOptions(t=!1){return this.options.filter(({disabled:e})=>t||!e).map(({value:t})=>t).filter(l.Pc)}onFocus({target:t},e){if(!(0,c.ve)(t))return;const{elements:n}=this;(0,o.VR)(e?-1:n.length,n,e?1:-1),this.handleFocusLossIfNecessary(t)}get elements(){return Array.from(this.el.nativeElement.querySelectorAll("[tuiOption]"))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(h.Cs,8),r.Y36(r.SBq),r.Y36(d.PH))},t.\u0275cmp=r.Xpm({type:t,selectors:[["tui-data-list"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,P,5),2&t){let t;r.iGM(t=r.CRH())&&(e.options=t)}},hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("focusin",function(t){return e.onFocusIn(t.relatedTarget,t.currentTarget)})("mousedown.prevent",function(){return e.noop()})("keydown.arrowDown.prevent",function(t){return e.onKeyDownArrow(t.target,1)})("keydown.arrowUp.prevent",function(t){return e.onKeyDownArrow(t.target,-1)})("wheel.silent.passive",function(){return e.handleFocusLossIfNecessary()})("mouseleave",function(t){return e.handleFocusLossIfNecessary(t.target)}),2&t&&r.uIk("role",e.role)("data-list-size",e.size)},inputs:{role:"role",emptyContent:"emptyContent",size:"size"},features:[r._Bn([(0,d.RB)(t),h.Y0])],ngContentSelectors:k,decls:5,vars:3,consts:[["tabindex","0",1,"t-trap",3,"focusin"],["class","t-empty",4,"ngIf"],[1,"t-empty"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"div",0),r.NdJ("focusin",function(t){return e.onFocus(t,!0)}),r.qZA(),r.Hsn(1),r.YNc(2,M,3,3,"div",1),r.ALo(3,"async"),r.TgZ(4,"div",0),r.NdJ("focusin",function(t){return e.onFocus(t,!1)}),r.qZA()),2&t&&(r.xp6(2),r.Q6J("ngIf",r.lcZ(3,1,e.empty$)))},directives:[_.O5,v.Li],pipes:[_.Ov],styles:['tui-data-list{--tui-data-list-padding: .25rem;--tui-data-list-margin: .0625rem;display:flex;font:var(--tui-font-text-m);flex-direction:column;padding:calc(var(--tui-data-list-padding) - var(--tui-data-list-margin)) var(--tui-data-list-padding);color:var(--tui-text-03)}tui-data-list:focus-within .t-trap{display:none}tui-data-list:focus-within [tuiOption]._with-dropdown:not(:focus){background-color:transparent}tui-data-list[data-list-size=s]{--tui-data-list-margin: 0rem}tui-data-list[data-list-size=s]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2rem;padding:.3125rem .5rem}tui-data-list[data-list-size=m]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-s);min-height:2.5rem;padding:.375rem .5rem}tui-data-list[data-list-size=l]{--tui-data-list-padding: .375rem;--tui-data-list-margin: .125rem}tui-data-list[data-list-size=l]>.t-empty{display:flex;align-items:center;box-sizing:border-box;margin:var(--tui-data-list-margin) 0;font:var(--tui-font-text-m);min-height:2.75rem;padding:.375rem .625rem}tui-opt-group{position:relative;display:flex;font:var(--tui-font-text-xs);color:var(--tui-text-02);flex-direction:column;line-height:1rem}tui-data-list[data-list-size=l] tui-opt-group{font:var(--tui-font-text-s);line-height:1.25rem}tui-data-list[data-list-size=l] tui-opt-group:before{padding-left:.625rem;padding-right:.625rem}tui-data-list[data-list-size=l] tui-opt-group:after{left:.625rem;right:.625rem}tui-opt-group:empty:before,tui-opt-group:empty:after{display:none}tui-opt-group:before{content:attr(data-label);padding:var(--tui-data-list-padding) .5rem var(--tui-data-list-padding);margin:var(--tui-data-list-margin) 0;white-space:normal;word-break:break-word}tui-opt-group:after{position:absolute;left:.5rem;right:.5rem;top:var(--tui-data-list-padding);height:1px;background:var(--tui-base-03)}tui-opt-group:not(:empty)~tui-opt-group:before{padding-top:calc(.75rem + var(--tui-data-list-padding))}tui-opt-group:not(:empty)~tui-opt-group[data-label=""]:before,tui-opt-group:not(:empty)~tui-opt-group:not([data-label]):before{padding:var(--tui-data-list-padding) 0}tui-opt-group:not(:empty)~tui-opt-group:after{content:""}tui-opt-group[data-label=""]:before,tui-opt-group:not([data-label]):before{padding:0;margin:0}\n'],encapsulation:2,changeDetection:0}),(0,i.gn)([u.UM],t.prototype,"empty$",null),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["ng-template","tuiDataList",""]]}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["tui-opt-group"]],hostAttrs:["role","group"],hostVars:1,hostBindings:function(t,e){2&t&&r.uIk("data-label",e.label)},inputs:{label:"label"}}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[_.ez,m.EI,v.wq]]}),t})()},95974:function(t,e,n){"use strict";n.d(e,{gZ:function(){return a},n6:function(){return l}});var i=n(74788),r=n(27103),o=n(12057);let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-group-style"]],decls:0,vars:0,template:function(t,e){},styles:[".tui-group{position:relative;z-index:0;display:flex}.tui-group>*{flex:1 1 0;min-width:0}.tui-group>*:nth-child(n){border-radius:0}.tui-group>*:not(:last-child){margin-right:.125rem}.tui-group_collapsed>*{z-index:1}.tui-group_collapsed>*:not(:last-child){margin-right:-1px}.tui-group_collapsed>*._readonly,.tui-group_collapsed>*._disabled,.tui-group_collapsed>*._readonly:hover,.tui-group_collapsed>*._disabled:hover{z-index:0}.tui-group_collapsed>*:hover,.tui-group_collapsed>*._hovered,.tui-group_collapsed>*._pressed{z-index:3}.tui-group_collapsed>*._invalid{z-index:2}.tui-group_collapsed>*._invalid:hover,.tui-group_collapsed>*._invalid._hovered,.tui-group_collapsed>*._invalid._pressed{z-index:4}.tui-group_collapsed>*._hosted_dropdown_focused,.tui-group_collapsed>*._focus-visible,.tui-group_collapsed>*._focused.ng-touched,.tui-group_collapsed>*._focused.ng-untouched{z-index:5}.tui-group_collapsed>*._active,.tui-group_collapsed>*[data-appearance=whiteblock-active]{z-index:6}.tui-group_collapsed>*._focus-visible._focused,.tui-group_collapsed>*._focus-visible._active,.tui-group_collapsed>*._focus-visible[data-appearance=whiteblock-active]{z-index:7}.tui-group_orientation_vertical{display:inline-flex;flex-direction:column}.tui-group_orientation_vertical>*{min-height:auto;flex:0 0 auto}.tui-group_orientation_vertical>*:not(:last-child){margin-right:0;margin-bottom:.125rem}.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin-right:0;margin-bottom:-1px}.tui-group_rounded.tui-group_orientation_horizontal>*:first-child{border-top-left-radius:var(--tui-radius-m);border-bottom-left-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_horizontal>*:last-child{border-top-right-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_horizontal.tui-group_radius_large>*:first-child{border-top-left-radius:var(--tui-radius-l);border-bottom-left-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_horizontal.tui-group_radius_large>*:last-child{border-top-right-radius:var(--tui-radius-l);border-bottom-right-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_vertical>*:first-child{border-top-left-radius:var(--tui-radius-m);border-top-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_vertical>*:last-child{border-bottom-left-radius:var(--tui-radius-m);border-bottom-right-radius:var(--tui-radius-m)}.tui-group_rounded.tui-group_orientation_vertical.tui-group_radius_large>*:first-child{border-top-left-radius:var(--tui-radius-l);border-top-right-radius:var(--tui-radius-l)}.tui-group_rounded.tui-group_orientation_vertical.tui-group_radius_large>*:last-child{border-bottom-left-radius:var(--tui-radius-l);border-bottom-right-radius:var(--tui-radius-l)}@media screen and (max-width: 47.9625em){.tui-group_rounded.tui-group_adaptive.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_horizontal>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:last-child:not(:first-child),.tui-group_rounded.tui-group_adaptive.tui-group_orientation_horizontal>*:last-child:not(:first-child){border-radius:var(--tui-radius-m)}}@media screen and (max-width: 47.9625em){.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>*:first-child:not(:last-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical:not(.tui-group_collapsed)>*:last-child:not(:first-child),.tui-group_rounded.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>*:last-child:not(:first-child){border-radius:var(--tui-radius-l)}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_orientation_vertical{width:100%}.tui-group_adaptive.tui-group_orientation_vertical>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_vertical>*:not(:last-child){margin-bottom:1rem}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-m) var(--tui-radius-m) 0 0}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-m) var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_vertical.tui-group_collapsed>*:not(:last-child){margin-bottom:-1px}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_orientation_horizontal{flex-direction:column;width:100%}.tui-group_adaptive.tui-group_orientation_horizontal>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_horizontal>*:not(:last-child){margin-right:0;margin-bottom:1rem}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-m) var(--tui-radius-m) 0 0}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-m) var(--tui-radius-m)}.tui-group_adaptive.tui-group_orientation_horizontal.tui-group_collapsed>*:not(:last-child){margin-right:0;margin-bottom:-1px}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-l)}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_vertical.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-l) var(--tui-radius-l)}}@media screen and (max-width: 47.9625em){.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal>*:nth-child(n):not(:only-child){border-radius:var(--tui-radius-l)}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>*:nth-child(n):not(:only-child){border-radius:0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>*:first-child:not(:last-child){border-radius:var(--tui-radius-l) var(--tui-radius-l) 0 0}.tui-group_adaptive.tui-group_radius_large.tui-group_orientation_horizontal.tui-group_collapsed>*:last-child:not(:first-child){border-radius:0 0 var(--tui-radius-l) var(--tui-radius-l)}}.tui-group__auto-width-item{min-width:auto;flex:0 0 auto}.tui-group .tui-group__inherit-item{border-radius:inherit}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{constructor(t){this.orientation="horizontal",this.adaptive=!1,this.collapsed=!1,this.rounded=!0,this.size="m",t.addComponent(s)}get orientationHorizontal(){return"horizontal"===this.orientation}get orientationVertical(){return"vertical"===this.orientation}get sizeLarge(){return"l"===this.size}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.gH))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiGroup","",5,"ng-container"]],hostAttrs:["role","group",1,"tui-group"],hostVars:12,hostBindings:function(t,e){2&t&&i.ekj("tui-group_adaptive",e.adaptive)("tui-group_collapsed",e.collapsed)("tui-group_rounded",e.rounded)("tui-group_orientation_horizontal",e.orientationHorizontal)("tui-group_orientation_vertical",e.orientationVertical)("tui-group_radius_large",e.sizeLarge)},inputs:{orientation:"orientation",adaptive:"adaptive",collapsed:"collapsed",rounded:"rounded",size:"size"}}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[o.ez]]}),t})()},23917:function(t,e,n){"use strict";n.d(e,{o1:function(){return B},jh:function(){return V}});var i=n(74788),r=n(43631),o=n(221),s=n(40946),a=n(27103),l=n(79765),c=n(88002);let u=(()=>{class t{constructor(t,e){this.enabled$=new l.xQ;const n=e.pipe((0,c.U)(e=>!!e&&(!t||!e.length||e.every(e=>!t.contains(e)))));this.tuiObscured=this.enabled$.pipe((0,s.Xd)(()=>n))}set tuiObscuredEnabled(t){this.enabled$.next(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(o.e,8),i.Y36(a.AQ,2))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiObscured",""]],inputs:{tuiObscuredEnabled:"tuiObscuredEnabled"},outputs:{tuiObscured:"tuiObscured"},features:[i._Bn([a.AQ,a.b0,a.a3])]}),t})(),h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})();var d=n(92668),p=n(57179),f=n(64493),g=n(99434),m=n(98952),v=n(45435),_=n(46782),y=n(13653),b=n(87519),w=n(26215),C=n(66682),x=n(59193),k=n(97582),O=n(66640),M=n(11557),S=n(89570),P=n(12057);const E=["wrapper"];function T(t,e){if(1&t&&(i.ynx(0),i._uU(1),i.BQk()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}const A=function(t,e){return{$implicit:t,close:e}};function I(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",5,6),i.NdJ("keydown",function(e){return i.CHM(t),i.oxw(2).onKeydown(e)}),i.YNc(2,T,2,1,"ng-container",7),i.qZA(),i._UZ(3,"div")}if(2&t){i.oxw();const t=i.MAs(1),e=i.oxw();i.xp6(2),i.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",i.WLB(2,A,t,e.close))}}function D(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"div",1,2),i.NdJ("tuiActiveZoneChange",function(e){return i.CHM(t),i.oxw().onActiveZone(e)})("tuiObscured",function(e){return i.CHM(t),i.oxw().onHostObscured(e)}),i.Hsn(2),i.YNc(3,I,4,5,"ng-template",3,4,i.W1O),i.qZA()}if(2&t){const t=e.tuiLet,n=i.MAs(4),r=i.oxw();i.Q6J("tuiDropdown",n)("tuiDropdownManual",t&&r.canOpen)("tuiDropdownSided",r.sided)("tuiObscuredEnabled",t),i.xp6(3),i.Q6J("polymorpheus",r.context)}}const N=["*"];let L=(()=>{class t extends r.uG{constructor(){super(...arguments),this.type="dummy"}getPosition(){return[0,0]}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["","tuiAccessorProxy",""]],features:[i._Bn([{provide:r.uG,multi:!0,deps:[[new i.FiY,new i.tp0,t],t],useFactory:(t,e)=>t||e}]),i.qOj]}),t})();const z=new i.OlP("[TUI_HOSTED_DROPDOWN_COMPONENT]");let F=(()=>{class t{constructor(t,e,n,i){null==i||i.tuiDropdownOpenChange.pipe((0,v.h)(t=>t&&i.dropdown===n&&!e.focused),(0,_.R)(t)).subscribe(()=>{var t;null===(t=e.nativeFocusableElement)||void 0===t||t.focus(),e.updateOpen(!0)})}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(a.a3,2),i.Y36(z),i.Y36(m.td,2),i.Y36(m.oH,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiDropdownOpenMonitor",""]],features:[i._Bn([a.a3])]}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiHostedDropdownHost",""]]}),t})();function j(t){var e;return"key"in t&&"escape"===t.key.toLowerCase()&&this.canOpen&&this.open&&!(null===(e=this.dropdown)||void 0===e?void 0:e.nextElementSibling)}let B=(()=>{class t{constructor(t,e){this.hover$=t,this.el=e,this.openChange=new w.X(!1),this.sided=!1,this.canOpen=!0,this.open$=(0,C.T)(this.openChange,this.hover$||x.E).pipe((0,y.T)(1),(0,b.x)()),this.focusedChange=new i.vpe,this.close=()=>this.updateOpen(!1)}set open(t){this.openChange.next(t)}get open(){return this.openChange.value}get host(){var t;return(null===(t=this.dropdownHost)||void 0===t?void 0:t.nativeElement)||this.el.nativeElement}get computedHost(){var t;return(null===(t=this.dropdownHost)||void 0===t?void 0:t.nativeElement)||this.nativeFocusableElement||this.el.nativeElement}get dropdown(){var t,e;return null===(e=null===(t=this.dropdownDirective)||void 0===t?void 0:t.dropdownBoxRef)||void 0===e?void 0:e.location.nativeElement}get nativeFocusableElement(){return(0,p.dT)(this.host)?this.host:(0,p.BW)({initial:this.host,root:this.el.nativeElement})}get focused(){return(0,p.zb)(this.host)||this.open&&!!this.wrapper&&(0,p.zb)(this.wrapper.nativeElement)}onFocusIn(t){this.computedHost.contains(t)||this.updateOpen(!1)}onClick(t){var e;!this.hostEditable&&this.computedHost.contains(t)&&!(null===(e=this.hover$)||void 0===e?void 0:e.hovered)&&this.updateOpen(!this.open)}onKeyDownEsc(t){t.preventDefault(),this.closeDropdown()}onArrow(t,e){this.focusDropdown(t,e)}onKeydown({key:t,target:e,defaultPrevented:n}){!n&&(0,O.kL)(t)&&this.hostEditable&&(0,f.dW)(e)&&!(0,f.Hn)(e)&&this.focusHost()}onActiveZone(t){this.updateFocused(t),t||this.updateOpen(!1)}onHostObscured(t){t&&this.closeDropdown()}updateOpen(t){(!t||this.canOpen)&&(this.open=t)}get hostEditable(){return(0,f.Hn)(this.computedHost)}focusDropdown(t,e){const n=this.nativeFocusableElement;if(!(n&&(0,f.dW)(n)&&(0,f.ve)(t.target)&&n.contains(t.target)))return;if(!(this.wrapper&&this.open&&this.dropdown&&(0,f.dW)(this.wrapper.nativeElement.nextElementSibling)))return this.updateOpen(!0),void((0,f.Hn)(n)||t.preventDefault());const i=(0,p.BW)({initial:e?this.wrapper.nativeElement:this.wrapper.nativeElement.nextElementSibling,root:this.wrapper.nativeElement,previous:!e});!i||(i.focus(),t.preventDefault())}closeDropdown(){this.focused&&this.focusHost(),this.updateOpen(!1)}focusHost(){const t=this.nativeFocusableElement;t&&t.focus({preventScroll:!0})}updateFocused(t){this.focusedChange.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(m.E$,10),i.Y36(i.SBq))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-hosted-dropdown"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,R,5,i.SBq),2&t){let t;i.iGM(t=i.CRH())&&(e.dropdownHost=t.first)}},viewQuery:function(t,e){if(1&t&&(i.Gf(E,5,i.SBq),i.Gf(m.td,5),i.Gf(o.e,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.wrapper=t.first),i.iGM(t=i.CRH())&&(e.dropdownDirective=t.first),i.iGM(t=i.CRH())&&(e.activeZone=t.first)}},hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("focusin",function(t){return e.onFocusIn(t.target)})("click",function(t){return e.onClick(t.target)})("keydown.silent.capture",function(t){return e.onKeyDownEsc(t)},!1,i.evT)("keydown.arrowDown",function(t){return e.onArrow(t,!0)})("keydown.arrowUp",function(t){return e.onArrow(t,!1)}),2&t&&i.ekj("_hosted_dropdown_focused",e.focused)},inputs:{content:"content",sided:"sided",canOpen:"canOpen",open:"open"},outputs:{open$:"openChange",focusedChange:"focusedChange"},features:[i._Bn([(0,g.FT)(t),{provide:L,deps:[[new i.FiY,new i.PiD,r.uG]],useFactory:t=>null==t?void 0:t[0]},{provide:z,useExisting:t}])],ngContentSelectors:N,decls:2,vars:3,consts:[["tuiAccessorProxy","","tuiDropdownOpenMonitor","","class","t-wrapper",3,"tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled","tuiActiveZoneChange","tuiObscured",4,"tuiLet"],["tuiAccessorProxy","","tuiDropdownOpenMonitor","",1,"t-wrapper",3,"tuiDropdown","tuiDropdownManual","tuiDropdownSided","tuiObscuredEnabled","tuiActiveZoneChange","tuiObscured"],["activeZone","tuiActiveZone"],[3,"polymorpheus"],["dropdown","polymorpheus"],[1,"t-dropdown",3,"keydown"],["wrapper",""],[4,"polymorpheusOutlet","polymorpheusOutletContext"]],template:function(t,e){if(1&t&&(i.F$t(),i.YNc(0,D,5,5,"div",0),i.ALo(1,"async")),2&t){let t;i.Q6J("tuiLet",null!==(t=i.lcZ(1,1,e.open$))&&void 0!==t?t:e.openChange.value)}},directives:[d.Ls,L,F,m.td,m.VC,m.Tp,m.Cw,o.e,u,S.GL,S.Li],pipes:[P.Ov],styles:["[_nghost-%COMP%]{display:inline-flex}.t-wrapper[_ngcontent-%COMP%]{border-radius:inherit;height:inherit;flex:1 1 auto;width:100%}.t-dropdown[_ngcontent-%COMP%]{height:100%}"],changeDetection:0}),(0,k.gn)([(0,M.uX)(j)],t.prototype,"onKeyDownEsc",null),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[P.ez,S.wq,d.WD,h,o.A,m.dp]]}),t})()},82847:function(t,e,n){"use strict";n.d(e,{V:function(){return y},j:function(){return b}});var i=n(74788),r=n(40946),o=n(33770),s=n(57179),a=n(27103),l=n(99434),c=n(12130),u=n(79456),h=n(66682),d=n(88002),p=n(54789),f=n(12057);const g=["tuiLink",""];function m(t,e){if(1&t&&i._UZ(0,"tui-svg",3),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}function v(t,e){if(1&t&&i._UZ(0,"tui-svg",4),2&t){const t=i.oxw();i.Q6J("src",t.icon||"")}}const _=["*"];let y=(()=>{class t{constructor(t,e,n){this.el=t,this.mode$=e,this.pseudo=!1,this.icon="",this.iconAlign="right",this.iconRotated=!1,this.mode=null,this.focusVisible=!1,this.focusedChange=(0,h.T)((0,r.mL)(this.el.nativeElement,"focusin").pipe((0,d.U)(o.Ye)),(0,r.mL)(this.el.nativeElement,"focusout").pipe((0,d.U)(o.Iy))),n.subscribe(t=>{this.focusVisible=t})}get nativeFocusableElement(){return this.el.nativeElement}get focused(){return(0,s.V8)(this.nativeFocusableElement)}get hasIcon(){return!!this.icon}get iconAlignLeft(){return this.hasIcon&&"left"===this.iconAlign}get iconAlignRight(){return this.hasIcon&&"right"===this.iconAlign}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.SBq),i.Y36(u.Au),i.Y36(a.ku))},t.\u0275cmp=i.Xpm({type:t,selectors:[["a","tuiLink",""],["button","tuiLink",""]],hostVars:7,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",function(){return e.mode$}),2&t&&(i.uIk("data-host-mode",e.mode),i.ekj("_pseudo",e.pseudo)("_icon-rotated",e.iconRotated)("_focus-visible",e.focusVisible))},inputs:{pseudo:"pseudo",icon:"icon",iconAlign:"iconAlign",iconRotated:"iconRotated",mode:"mode"},exportAs:["tuiLink"],features:[i._Bn([(0,l.FT)(t),a.ku,a.a3,c.CV])],attrs:g,ngContentSelectors:_,decls:4,vars:2,consts:[["class","t-icon t-icon_left",3,"src",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_right",3,"src",4,"ngIf"],[1,"t-icon","t-icon_left",3,"src"],[1,"t-icon","t-icon_right",3,"src"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,m,1,1,"tui-svg",0),i.TgZ(1,"span",1),i.Hsn(2),i.qZA(),i.YNc(3,v,1,1,"tui-svg",2)),2&t&&(i.Q6J("ngIf",e.iconAlignLeft),i.xp6(3),i.Q6J("ngIf",e.iconAlignRight))},directives:[f.O5,p.PN],styles:["[_nghost-%COMP%]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;background:none;font-size:inherit;line-height:inherit;transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;color:var(--tui-link);text-decoration:none;text-align:left;text-transform:inherit;font-weight:inherit;cursor:pointer;outline:none}[_nghost-%COMP%]:hover{color:var(--tui-link-hover)}[_nghost-%COMP%]:disabled{opacity:var(--tui-disabled-opacity);cursor:default}[data-mode=onLight][_nghost-%COMP%]{color:var(--tui-text-02)}[data-mode=onLight][_nghost-%COMP%]:hover, [data-mode=onLight]._active[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01)}[data-mode=onLight]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(0,0,0,.48);text-decoration-color:#0000007a}[data-mode=onLight]._pseudo[_nghost-%COMP%]:hover, [data-mode=onLight]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative-night)}[data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:hover, [data-mode=onLight][data-host-mode=negative][_nghost-%COMP%]:active, [data-mode=onLight][data-host-mode=negative]._active[_nghost-%COMP%]{color:var(--tui-negative-night-hover)}[data-mode=onDark][_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][_nghost-%COMP%]:hover, [data-mode=onDark][_nghost-%COMP%]:active, [data-mode=onDark]._active[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%]{color:var(--tui-text-01-night)}[data-mode=onDark]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(255,255,255,.48);text-decoration-color:#ffffff7a}[data-mode=onDark]._pseudo[_nghost-%COMP%]:hover, [data-mode=onDark]._pseudo[_nghost-%COMP%]:active, [data-mode=onDark]._pseudo._active[_nghost-%COMP%]{color:var(--tui-text-03-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive-night)}[data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:hover, [data-mode=onDark][data-host-mode=positive][_nghost-%COMP%]:active, [data-mode=onDark][data-host-mode=positive]._active[_nghost-%COMP%]{color:var(--tui-positive-night-hover)}[data-host-mode=negative][_nghost-%COMP%]{color:var(--tui-negative)}[data-host-mode=negative][_nghost-%COMP%]:hover{color:var(--tui-negative-hover)}[data-host-mode=negative]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(222,76,30,.48);text-decoration-color:#de4c1e7a}[data-host-mode=positive][_nghost-%COMP%]{color:var(--tui-positive)}[data-host-mode=positive][_nghost-%COMP%]:hover{color:var(--tui-positive-hover)}[data-host-mode=positive]._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{-webkit-text-decoration-color:rgba(58,169,129,.48);text-decoration-color:#3aa9817a}._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-selection)}[data-mode=onLight]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear);color:var(--tui-text-01)}[data-mode=onDark]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-clear-inverse);color:var(--tui-text-01-night)}[data-host-mode=positive]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-success-bg)}[data-host-mode=negative]._focus-visible[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{background:var(--tui-error-bg)}._pseudo[_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding-bottom:.15em;-webkit-text-decoration:underline dashed rgba(51,111,238,.48);text-decoration:underline dashed rgba(51,111,238,.48);text-underline-offset:.2em;text-decoration-thickness:.7px}.t-icon[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;width:var(--tui-link-icon-size, 1.5rem);height:var(--tui-link-icon-size, 1.5rem);margin-top:-.125rem}.t-icon_left[_ngcontent-%COMP%]{margin-right:.25rem}.t-icon_right[_ngcontent-%COMP%]{margin-left:.25rem}._icon-rotated[_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0}),t})(),b=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[f.ez,p.EI]]}),t})()},40719:function(t,e,n){"use strict";n.d(e,{kM:function(){return m},dS:function(){return v}});var i=n(12057),r=n(74788),o=n(11927),s=n(41213),a=n(57179),l=n(99434),c=n(66640),u=n(89570);function h(t,e){if(1&t&&(r.ynx(0),r._uU(1),r.BQk()),2&t){const t=e.polymorpheusOutlet;r.xp6(1),r.hij(" ",t," ")}}function d(t,e){if(1&t&&(r.O4$(),r.kcU(),r.TgZ(0,"div",6),r.YNc(1,h,2,1,"ng-container",7),r.qZA()),2&t){const t=r.oxw(2);r.ekj("t-text_horizontal",t.isHorizontal),r.xp6(1),r.Q6J("polymorpheusOutlet",t.textContent)}}function p(t,e){if(1&t&&(r.TgZ(0,"div",2),r.O4$(),r.TgZ(1,"svg",3),r._UZ(2,"circle",4),r.qZA(),r.YNc(3,d,2,3,"div",5),r.qZA()),2&t){const t=r.oxw();r.ekj("t-loader_horizontal",t.isHorizontal)("t-loader_inherit-color",t.inheritColor),r.uIk("data-size",t.size),r.xp6(3),r.Q6J("ngIf",t.hasText)}}const f=["*"],g=(0,o.JN)({size:"m",inheritColor:!1,overlay:!1});let m=(()=>{class t{constructor(t,e,n,i){this.doc=t,this.el=e,this.isIos=n,this.options=i,this.size=this.options.size,this.inheritColor=this.options.inheritColor,this.overlay=this.options.overlay,this.loading=!0,this.isApple=(0,s.Ex)(this.el.nativeElement)||this.isIos}set showLoader(t){t&&this.focused&&(0,a.hp)(this.doc),this.loading=t}get hasOverlay(){return this.overlay&&this.loading}get hasText(){return!!this.textContent}get isHorizontal(){return!(0,c.R9)(this.size)}get focused(){return(0,a.zb)(this.el.nativeElement)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(i.K0),r.Y36(r.SBq),r.Y36(l.FA),r.Y36(g))},t.\u0275cmp=r.Xpm({type:t,selectors:[["tui-loader"]],hostVars:2,hostBindings:function(t,e){2&t&&r.ekj("_loading",e.loading)},inputs:{size:"size",inheritColor:"inheritColor",overlay:"overlay",textContent:"textContent",showLoader:"showLoader"},ngContentSelectors:f,decls:3,vars:7,consts:[[1,"t-content",3,"disabled"],["class","t-loader",3,"t-loader_horizontal","t-loader_inherit-color",4,"ngIf"],[1,"t-loader"],["automation-id","tui-loader__loader","focusable","false","viewBox","0 0 100 100","xmlns","http://www.w3.org/2000/svg",1,"t-icon"],["cx","50","cy","50","r","50","stroke-dasharray","314",1,"t-circle"],["automation-id","tui-loader__text","class","t-text",3,"t-text_horizontal",4,"ngIf"],["automation-id","tui-loader__text",1,"t-text"],[4,"polymorpheusOutlet"]],template:function(t,e){1&t&&(r.F$t(),r.TgZ(0,"fieldset",0),r.Hsn(1),r.qZA(),r.YNc(2,p,4,6,"div",1)),2&t&&(r.ekj("t-content_has-overlay",e.hasOverlay)("t-content_loading",e.loading),r.Q6J("disabled",e.loading&&!e.isApple),r.uIk("inert",e.loading||null),r.xp6(2),r.Q6J("ngIf",e.loading))},directives:[i.O5,u.Li],styles:["@keyframes tuiLoaderDashOffset{0%{stroke-dashoffset:-66}50%{stroke-dashoffset:-314}to{stroke-dashoffset:-66}}@keyframes tuiLoaderRotate{0%{transform:rotate(0)}50%{transform:rotate(1turn)}to{transform:rotate(3turn)}}[_nghost-%COMP%]{position:relative;display:flex}._loading[_nghost-%COMP%]{overflow:hidden}.t-content[_ngcontent-%COMP%]{z-index:0;min-width:100%;height:100%;padding:0;margin:0;border:none}.t-content_has-overlay[_ngcontent-%COMP%]{opacity:.3}.t-content_loading[_ngcontent-%COMP%]{pointer-events:none}.t-loader[_ngcontent-%COMP%]{position:relative;left:-100%;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:100%;flex-shrink:0;align-self:center;color:var(--tui-text-01);stroke:var(--tui-primary);animation:tuiFadeIn var(--tui-duration)}.t-loader.t-loader_horizontal[_ngcontent-%COMP%]{flex-direction:row}.t-loader.t-loader_inherit-color[_ngcontent-%COMP%]{color:inherit;stroke:currentColor}.t-loader[data-size=xs][_ngcontent-%COMP%]{font-size:.75rem;stroke-width:38}.t-loader[data-size=s][_ngcontent-%COMP%]{font-size:1rem;stroke-width:25}.t-loader[data-size=m][_ngcontent-%COMP%]{font-size:1.5rem;stroke-width:17}.t-loader[data-size=l][_ngcontent-%COMP%]{font-size:2.5rem;stroke-width:15}.t-loader[data-size=xl][_ngcontent-%COMP%]{font-size:3.5rem;stroke-width:14}.t-loader[data-size=xxl][_ngcontent-%COMP%]{font-size:5rem;stroke-width:10}.t-text[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1rem;color:inherit;max-width:100%;text-align:center;stroke-width:0}.t-text_horizontal[_ngcontent-%COMP%]{margin:0 0 0 1rem}.t-icon[_ngcontent-%COMP%]{display:block;min-width:1em;max-width:1em;min-height:1em;max-height:1em;margin:.25rem -.5em;border-radius:100%;overflow:hidden;transform:scaleY(-1);animation:tuiLoaderRotate 3s linear infinite}@supports (-webkit-hyphens: none){.t-icon[_ngcontent-%COMP%]{overflow:visible}}.t-circle[_ngcontent-%COMP%]{fill:none;stroke:inherit;stroke-width:inherit;animation:tuiLoaderDashOffset 3s linear infinite}"],changeDetection:0}),t})(),v=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[i.ez,u.wq]]}),t})()},60885:function(t,e,n){"use strict";n.d(e,{L:function(){return g},H:function(){return m}});var i=n(74788),r=n(40946),o=n(79456),s=n(54789),a=n(12628),l=n(12057),c=n(89570);function u(t,e){1&t&&i._UZ(0,"tui-svg",4),2&t&&i.Q6J("src",e.polymorpheusOutlet)}const h=function(t){return{$implicit:t}};function d(t,e){if(1&t&&(i.ynx(0),i.YNc(1,u,1,1,"tui-svg",3),i.BQk()),2&t){const t=i.oxw();i.xp6(1),i.Q6J("polymorpheusOutlet",t.icon)("polymorpheusOutletContext",i.VKq(2,h,t.status))}}function p(t,e){if(1&t){const t=i.EpF();i.TgZ(0,"button",5),i.NdJ("click",function(){return i.CHM(t),i.oxw().close.emit()}),i.ALo(1,"async"),i.qZA()}if(2&t){const t=i.oxw();i.Q6J("icon",t.icons.close)("title",i.lcZ(1,2,t.closeWord$))}}const f=["*"];let g=(()=>{class t{constructor(t,e,n){this.closeWord$=t,this.icons=e,this.options=n,this.hasIcon=this.options.hasIcon,this.icon=this.options.icon,this.status=this.options.status,this.size=this.options.size,this.hideClose=!1,this.close=new i.vpe}get hasClose(){return!this.hideClose&&(0,r.fw)(this.close)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(o.U0),i.Y36(o.Gs),i.Y36(o.Ln))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-notification"]],hostVars:2,hostBindings:function(t,e){2&t&&i.uIk("data-status",e.status)("data-size",e.size)},inputs:{hasIcon:"hasIcon",icon:"icon",status:"status",size:"size",hideClose:"hideClose"},outputs:{close:"close"},ngContentSelectors:f,decls:4,vars:2,consts:[[4,"ngIf"],[1,"t-content"],["appearance","icon","automation-id","tui-notification__close","size","xs","tuiIconButton","","type","button","class","t-close",3,"icon","title","click",4,"ngIf"],["automation-id","tui-notification__icon","class","t-icon",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["automation-id","tui-notification__icon",1,"t-icon",3,"src"],["appearance","icon","automation-id","tui-notification__close","size","xs","tuiIconButton","","type","button",1,"t-close",3,"icon","title","click"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,d,2,4,"ng-container",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA(),i.YNc(3,p,2,4,"button",2)),2&t&&(i.Q6J("ngIf",e.icon&&e.hasIcon),i.xp6(3),i.Q6J("ngIf",e.hasClose))},directives:[l.O5,c.Li,s.PN,a.v0],pipes:[l.Ov],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:flex;padding:.75rem 1rem;border-radius:var(--tui-radius-m);background:#fff;background:var(--tui-base-01);box-sizing:border-box;overflow:hidden}[data-size=s][_nghost-%COMP%]{padding:.375rem .625rem}[data-size=s][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1rem;height:1.25rem;margin:0 .375rem 0 -.125rem}[data-size=s][_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{margin:-.125rem -.375rem -.125rem .75rem}[data-size=m][_nghost-%COMP%]{padding:.75rem}[data-size=m][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;margin-right:.5rem}[data-size=m][_nghost-%COMP%] .t-close[_ngcontent-%COMP%]{margin:-.125rem -.125rem -.125rem 1rem}[data-size=l][_nghost-%COMP%]{padding:1rem;font:var(--tui-font-text-m);border-radius:var(--tui-radius-l)}[data-size=l][_nghost-%COMP%] .t-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem;margin-right:.5rem}[data-status=info][_nghost-%COMP%]{color:var(--tui-info-fill);background:linear-gradient(var(--tui-info-bg),var(--tui-info-bg)),var(--tui-base-01)}[data-status=success][_nghost-%COMP%]{color:var(--tui-success-fill);background:linear-gradient(var(--tui-success-bg),var(--tui-success-bg)),var(--tui-base-01)}[data-status=error][_nghost-%COMP%]{color:var(--tui-error-fill);background:linear-gradient(var(--tui-error-bg),var(--tui-error-bg)),var(--tui-base-01)}[data-status=warning][_nghost-%COMP%]{color:var(--tui-warning-fill);background:linear-gradient(var(--tui-warning-bg),var(--tui-warning-bg)),var(--tui-base-01)}[data-status=neutral][_nghost-%COMP%]{color:var(--tui-neutral-fill);background:linear-gradient(var(--tui-neutral-bg),var(--tui-neutral-bg)),var(--tui-base-01)}.t-content[_ngcontent-%COMP%]{flex:1;word-wrap:break-word;color:var(--tui-text-01)}"],changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[l.ez,s.EI,a.fN,c.wq]]}),t})()},94853:function(t,e,n){"use strict";n.d(e,{iQ:function(){return nt},yc:function(){return it},B1:function(){return rt},KW:function(){return st},MB:function(){return ot}});var i=n(97582),r=n(74788),o=n(27103);let s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Xpm({type:t,selectors:[["tui-autofilled-style"]],decls:0,vars:0,template:function(t,e){},styles:[".tui-autofill input,input.tui-autofill{transition:box-shadow .01s}\n"],encapsulation:2,changeDetection:0}),t})(),a=(()=>{class t{constructor(t){this.autofilled=!1,this.tuiAutofilledChange=new r.vpe,t.addComponent(s)}transitionStartHandler({propertyName:t,target:e}){var n;t.includes("box-shadow")&&(null===(n=e)||void 0===n?void 0:n.matches("input"))&&(this.autofilled=!this.autofilled,this.tuiAutofilledChange.emit(this.autofilled))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(o.gH))},t.\u0275dir=r.lG2({type:t,selectors:[["","tuiAutofilledChange",""]],hostAttrs:[1,"tui-autofill"],hostVars:2,hostBindings:function(t,e){1&t&&r.NdJ("transitionstart",function(t){return e.transitionStartHandler(t)}),2&t&&r.ekj("_autofilled",e.autofilled)},outputs:{tuiAutofilledChange:"tuiAutofilledChange"}}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})();var c=n(13633),u=n(99434),h=n(76480),d=n(57179),p=n(64493),f=n(44358),g=n(90022),m=n(79588),v=n(66640),_=n(89570),y=n(26215),b=n(66682),w=n(22759),C=n(87874),x=n(45435),k=n(88002),O=n(87519),M=n(54789),S=n(77320),P=n(1515),E=n(12057),T=n(91489),A=n(87862),I=n(79456);let D=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.lG2({type:t,selectors:[["input","tuiMaskAccessor",""]],features:[r._Bn([{provide:A.JU,deps:[[new r.FiY,I.sE],A.Fj],multi:!0,useFactory:(t,e)=>t?t[0]:e}])]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({}),t})();var L=n(43631);const z=["pre"],F=["focusableElement"];function R(t,e){1&t&&r.GkF(0)}function j(t,e){1&t&&r.GkF(0)}function B(t,e){1&t&&(r.TgZ(0,"div",17),r.Hsn(1,2),r.qZA())}function V(t,e){1&t&&r._UZ(0,"tui-svg",20),2&t&&r.Q6J("src",e.polymorpheusOutlet)}const $=function(t){return{$implicit:t}};function Z(t,e){if(1&t&&(r.TgZ(0,"div",18),r.YNc(1,V,1,1,"tui-svg",19),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.iconLeftContent)("polymorpheusOutletContext",r.VKq(2,$,t.size))}}function q(t,e){if(1&t&&(r.TgZ(0,"label",21),r.Hsn(1,3),r.qZA()),2&t){const t=r.oxw();r.ekj("t-placeholder_raised",t.placeholderRaised),r.Q6J("for",t.computedId)}}function Y(t,e){1&t&&r._UZ(0,"tui-svg",24),2&t&&r.Q6J("src",e.polymorpheusOutlet)}function U(t,e){if(1&t&&(r.TgZ(0,"div",22),r.YNc(1,Y,1,1,"tui-svg",23),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.controller.customContent)}}function H(t,e){1&t&&r._UZ(0,"tui-svg",27),2&t&&r.Q6J("src",e.polymorpheusOutlet)}function G(t,e){if(1&t){const t=r.EpF();r.TgZ(0,"span",25),r.NdJ("click.stop",function(){return r.CHM(t),r.oxw().clear()}),r.YNc(1,H,1,1,"tui-svg",26),r.qZA()}if(2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.iconCleaner||t.controller.options.iconCleaner)("polymorpheusOutletContext",r.VKq(2,$,t.size))}}function J(t,e){if(1&t&&r._UZ(0,"tui-tooltip",28),2&t){const t=r.oxw();r.Q6J("content",null==t.hintOptions?null:t.hintOptions.content)("describeId",t.computedId)}}function X(t,e){1&t&&r._UZ(0,"tui-svg",20),2&t&&r.Q6J("src",e.polymorpheusOutlet)}function Q(t,e){if(1&t&&(r.TgZ(0,"div",29),r.YNc(1,X,1,1,"tui-svg",19),r.qZA()),2&t){const t=r.oxw();r.xp6(1),r.Q6J("polymorpheusOutlet",t.iconContent)("polymorpheusOutletContext",r.VKq(2,$,t.size))}}const W=[[["input"]],[["select"]],[["tuiContent"]],"*"],K=["input","select","tuiContent","*"],tt=["tuiTextfield",""];let et=(()=>{class t{constructor(t,e){this.textfield=t,this.fontsReady$=e,this.prefix$=new y.X(""),this.pre$=(0,b.T)(this.fontsReady$,this.prefix$).pipe((0,C.g)(0),(0,x.h)(()=>{var t;return!!(null===(t=this.pre)||void 0===t?void 0:t.nativeElement.isConnected)}),(0,k.U)(()=>{var t;return(null===(t=this.pre)||void 0===t?void 0:t.nativeElement.offsetWidth)||0}),(0,O.x)())}get isContextTable(){return this.textfield.appearance===S.Nm.Table}get value(){return this.textfield.value}get filler(){const{focused:t,placeholder:e,exampleText:n,value:i,textfield:r}=this;return e&&n?"":t?n||r.filler.slice(i.length):""}get prefix(){return this.decorationsVisible?this.textfield.prefix:""}get postfix(){return this.decorationsVisible?this.computedPostfix:""}ngDoCheck(){this.prefix$.next(this.prefix)}get placeholder(){var t;return(null===(t=this.textfield.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||""}get exampleText(){return!this.value&&this.focused?this.placeholder:""}get decorationsVisible(){return!!this.value||this.focused&&!this.placeholder}get focused(){return this.textfield.computedFocused&&!this.textfield.readOnly}get computedPostfix(){return this.textfield.postfix&&(this.filler||this.value)?` ${this.textfield.postfix}`:this.textfield.postfix}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(u.KZ),r.Y36(u.tS))},t.\u0275cmp=r.Xpm({type:t,selectors:[["tui-value-decoration"]],viewQuery:function(t,e){if(1&t&&r.Gf(z,7,r.SBq),2&t){let t;r.iGM(t=r.CRH())&&(e.pre=t.first)}},hostVars:4,hostBindings:function(t,e){1&t&&r.NdJ("animationstart",function(){return e.ngDoCheck()}),2&t&&r.ekj("_table",e.isContextTable)("_filler",e.filler)},decls:5,vars:4,consts:[[1,"t-prefix",3,"textContent"],["pre",""],[1,"t-ghost",3,"textContent"],[1,"t-filler",3,"textContent"],[1,"t-postfix",3,"textContent"]],template:function(t,e){1&t&&(r._UZ(0,"span",0,1),r._UZ(2,"span",2),r._UZ(3,"span",3),r._UZ(4,"span",4)),2&t&&(r.Q6J("textContent",e.prefix),r.xp6(2),r.Q6J("textContent",e.value),r.xp6(1),r.Q6J("textContent",e.filler),r.xp6(1),r.Q6J("textContent",e.postfix))},styles:['[_nghost-%COMP%]{position:absolute;display:block;width:100%;line-height:var(--tui-height);margin-top:calc(var(--tui-height) / -2);box-sizing:content-box;color:var(--tui-text-03);animation:tuiPresent 1s;white-space:nowrap}._table[_nghost-%COMP%]{position:static;margin-top:0}._filler[_nghost-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]{color:var(--tui-text-03-night)}tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]{line-height:calc(var(--tui-height) - .25rem)}.t-ghost[_ngcontent-%COMP%]{visibility:hidden;white-space:pre;text-overflow:clip}.t-prefix[_ngcontent-%COMP%], .t-postfix[_ngcontent-%COMP%]{white-space:pre;color:var(--tui-text-01)}tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-prefix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"][_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%], tui-primitive-textfield [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%] .t-postfix[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-filler[_ngcontent-%COMP%]{max-width:100%;white-space:nowrap}']}),t})();const nt={s:1.25,m:1.75,l:2.25};let it=(()=>{class t extends h.Xn{constructor(t,e,n,i){super(),this.controller=t,this.hintOptions=e,this.options=n,this.el=i,this.editable=!0,this.textfieldFiller="",this.iconCleaner=this.options.iconCleaner,this.readOnly=!1,this.invalid=!1,this.disabled=!1,this.textfieldPrefix="",this.textfieldPostfix="",this.value="",this.valueChange=new r.vpe,this.autofilled=!1}get prefix(){return this.textfieldPrefix||this.controller.prefix}get postfix(){return this.textfieldPostfix||this.controller.postfix}get filler(){return this.textfieldFiller||this.controller.filler}get nativeFocusableElement(){if(this.computedDisabled||!this.focusableElement)return null;const{nativeElement:t}=this.focusableElement;return t.previousElementSibling||t}get focused(){return(0,d.zb)(this.el.nativeElement)}get appearance(){return this.controller.appearance}get size(){return this.controller.size}get computedInvalid(){return!this.readOnly&&!this.disabled&&this.invalid}get inputHidden(){var t;return!!(null===(t=this.content)||void 0===t?void 0:t.length)}get hasValue(){return!!this.value}get hasCleaner(){return this.controller.cleaner&&this.hasValue&&!this.computedDisabled&&!this.readOnly}get hasTooltip(){var t;return!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&!this.computedDisabled}get hasCustomContent(){return!!this.controller.customContent}get placeholderVisible(){var t;const e=((null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.placeholder)||this.prefix||this.postfix||this.filler)&&!this.readOnly&&this.computedFocused;return!this.hasValue&&!e}get hasPlaceholder(){return this.placeholderRaisable||this.placeholderVisible}get placeholderRaised(){return this.placeholderRaisable&&(this.computedFocused&&!this.readOnly||this.hasValue||this.autofilled)}get borderStart(){return this.iconLeftContent?this.iconPaddingLeft:0}get borderEnd(){return(0,v._X)(!!this.iconContent,this.hasCleaner,this.hasTooltip,this.hasCustomContent,this.size)}get iconContent(){return this.controller.icon}get iconLeftContent(){return this.controller.iconLeft}get showHint(){var t;return!!(null===(t=this.hintOptions)||void 0===t?void 0:t.content)&&(this.options.hintOnDisabled||!this.computedDisabled)}get name(){var t;return"cc-exp"===(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.autocomplete)?"ccexpiryyear":null}get computedId(){var t;return(null===(t=this.nativeFocusableElement)||void 0===t?void 0:t.id)||""}onFocused(t){this.updateFocused(t)}getIndent$(t){return(0,w.R)(t,"scroll").pipe((0,k.U)(()=>-1*Math.max(t.scrollLeft,0)))}clear(){this.nativeFocusableElement&&(this.nativeFocusableElement.value=""),this.updateValue("")}onMouseDown(t){const{nativeFocusableElement:e}=this;!e||t.target===e||(t.preventDefault(),e.focus())}onModelChange(t){this.updateValue(t)}onAutofilled(t){this.updateAutofilled(t)}detectRetargetFromLabel(t){(0,p.UP)(t)&&t.stopImmediatePropagation()}get iconPaddingLeft(){return nt[this.size]}get placeholderRaisable(){return"s"!==this.size&&!this.controller.labelOutside}updateAutofilled(t){this.autofilled!==t&&(this.autofilled=t)}updateValue(t){this.value=t,this.valueChange.emit(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(m.Cs),r.Y36(g.bZ,8),r.Y36(m.z1),r.Y36(r.SBq))},t.\u0275cmp=r.Xpm({type:t,selectors:[["tui-primitive-textfield"]],contentQueries:function(t,e,n){if(1&t&&r.Suo(n,_.Li,5),2&t){let t;r.iGM(t=r.CRH())&&(e.content=t)}},viewQuery:function(t,e){if(1&t&&r.Gf(F,5),2&t){let t;r.iGM(t=r.CRH())&&(e.focusableElement=t.first)}},hostVars:15,hostBindings:function(t,e){1&t&&r.NdJ("focusin",function(){return e.onFocused(!0)})("focusout",function(){return e.onFocused(!1)}),2&t&&(r.uIk("data-size",e.size),r.Udp("--border-start",e.borderStart,"rem")("--border-end",e.borderEnd,"rem"),r.ekj("_autofilled",e.autofilled)("_label-outside",e.controller.labelOutside)("_readonly",e.readOnly)("_invalid",e.computedInvalid)("_hidden",e.inputHidden))},inputs:{editable:"editable",textfieldFiller:["filler","textfieldFiller"],iconCleaner:"iconCleaner",readOnly:"readOnly",invalid:"invalid",disabled:"disabled",textfieldPrefix:["prefix","textfieldPrefix"],textfieldPostfix:["postfix","textfieldPostfix"],value:"value"},outputs:{valueChange:"valueChange"},features:[r._Bn([(0,u.FT)(t),m.Y0]),r.qOj],ngContentSelectors:K,decls:24,vars:37,consts:[[4,"ngIf"],["automation-id","tui-primitive-textfield__wrapper","tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid","readOnly","click.prevent.silent","mousedown","tuiAutofilledChange"],["automation-id","tui-primitive-textfield__native-input","tuiMaskAccessor","",1,"t-input",3,"disabled","id","ngModel","readOnly","tuiFocusable","ngModelChange"],["focusableElement",""],["automation-id","tui-primitive-textfield__value","class","t-input t-input_template",4,"ngIf"],[1,"t-content"],["class","t-icon t-icon_left t-textfield-icon",4,"ngIf"],[1,"t-wrapper"],["automation-id","tui-primitive-textfield__placeholder","class","t-placeholder",3,"t-placeholder_raised","for",4,"ngIf"],[1,"t-wrapper-value-decoration"],["aria-hidden","true","automation-id","tui-primitive-textfield__value-decoration",1,"t-value-decoration"],["decor",""],[1,"t-icons"],["automation-id","tui-primitive-textfield__custom-content","class","t-custom-content",4,"ngIf"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","","class","t-cleaner",3,"click.stop",4,"ngIf"],["automation-id","tui-primitive-textfield__tooltip","class","t-tooltip",3,"content","describeId",4,"ngIf"],["class","t-icon t-textfield-icon",4,"ngIf"],["automation-id","tui-primitive-textfield__value",1,"t-input","t-input_template"],[1,"t-icon","t-icon_left","t-textfield-icon"],["appearance","icon","tuiWrapper","",3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],["appearance","icon","tuiWrapper","",3,"src"],["automation-id","tui-primitive-textfield__placeholder",1,"t-placeholder",3,"for"],["automation-id","tui-primitive-textfield__custom-content",1,"t-custom-content"],["class","t-custom-icon",3,"src",4,"polymorpheusOutlet"],[1,"t-custom-icon",3,"src"],["appearance","icon","automation-id","tui-primitive-textfield__cleaner","tuiWrapper","",1,"t-cleaner",3,"click.stop"],[3,"src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"src"],["automation-id","tui-primitive-textfield__tooltip",1,"t-tooltip",3,"content","describeId"],[1,"t-icon","t-textfield-icon"]],template:function(t,e){if(1&t&&(r.F$t(W),r.YNc(0,R,1,0,"ng-container",0),r.ALo(1,"async"),r.YNc(2,j,1,0,"ng-container",0),r.ALo(3,"async"),r.TgZ(4,"div",1),r.NdJ("click.prevent.silent",function(t){return e.detectRetargetFromLabel(t)})("mousedown",function(t){return e.onMouseDown(t)})("tuiAutofilledChange",function(t){return e.onAutofilled(t)}),r.ALo(5,"async"),r.Hsn(6),r.Hsn(7,1),r.TgZ(8,"input",2,3),r.NdJ("ngModelChange",function(t){return e.onModelChange(t)}),r.qZA(),r.YNc(10,B,2,0,"div",4),r.TgZ(11,"div",5),r.YNc(12,Z,2,4,"div",6),r.TgZ(13,"div",7),r.YNc(14,q,2,3,"label",8),r.TgZ(15,"div",9),r.TgZ(16,"tui-value-decoration",10,11),r.ALo(18,"async"),r.qZA(),r.qZA(),r.qZA(),r.TgZ(19,"div",12),r.YNc(20,U,2,1,"div",13),r.YNc(21,G,2,4,"span",14),r.YNc(22,J,1,2,"tui-tooltip",15),r.YNc(23,Q,2,4,"div",16),r.qZA(),r.qZA(),r.qZA()),2&t){const t=r.MAs(9),n=r.MAs(17);r.Q6J("ngIf",r.lcZ(1,29,null==e.content?null:e.content.changes)),r.xp6(2),r.Q6J("ngIf",r.lcZ(3,31,null==e.hintOptions?null:e.hintOptions.change$)),r.xp6(2),r.Udp("--text-indent",r.lcZ(5,33,n.pre$),"px"),r.Q6J("active",e.pseudoActive)("appearance",e.appearance)("disabled",e.disabled)("focus",e.computedFocused)("hover",e.pseudoHover)("invalid",e.computedInvalid)("readOnly",e.readOnly),r.xp6(4),r.Q6J("disabled",e.computedDisabled)("id",e.id)("ngModel",e.value)("readOnly",e.readOnly||!e.editable)("tuiFocusable",e.computedFocusable),r.uIk("aria-invalid",e.computedInvalid)("name",e.name),r.xp6(2),r.Q6J("ngIf",e.inputHidden),r.xp6(2),r.Q6J("ngIf",e.iconLeftContent),r.xp6(2),r.Q6J("ngIf",e.hasPlaceholder),r.xp6(2),r.Udp("text-indent",r.lcZ(18,35,e.getIndent$(t)),"px"),r.ekj("t-has-value",e.value),r.xp6(4),r.Q6J("ngIf",e.hasCustomContent),r.xp6(1),r.Q6J("ngIf",e.hasCleaner),r.xp6(1),r.Q6J("ngIf",e.showHint),r.xp6(1),r.Q6J("ngIf",e.iconContent)}},directives:[E.O5,T.o,a,D,A.Fj,A.JJ,A.On,c.t,et,_.Li,M.PN,P.w],pipes:[E.Ov],styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;text-align:left;border-radius:var(--tui-radius-m);height:var(--tui-height);min-height:var(--tui-height);max-height:var(--tui-height)}[data-size=s][_nghost-%COMP%]{--tui-height: var(--tui-height-s)}[data-size=m][_nghost-%COMP%]{--tui-height: var(--tui-height-m)}[data-size=l][_nghost-%COMP%]{--tui-height: var(--tui-height-l);font:var(--tui-font-text-m);line-height:1.25rem}.t-input[_ngcontent-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}.t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input[_ngcontent-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}.t-input[_ngcontent-%COMP%]::-webkit-caps-lock-indicator, .t-input[_ngcontent-%COMP%]::-webkit-contacts-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credit-card-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-credentials-auto-fill-button, .t-input[_ngcontent-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}.t-input[_ngcontent-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly)[_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder{opacity:1}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]:-webkit-autofill:focus, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-input[_ngcontent-%COMP%]::placeholder, .t-input [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[data-size=s][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), .t-input tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), .t-input tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], .t-input tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], .t-input tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) .t-input[_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], .t-input tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input.t-input[_ngcontent-%COMP%], .t-input tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}.t-content[_ngcontent-%COMP%]{display:flex;height:100%;width:100%;box-sizing:border-box;align-items:center;overflow:hidden}[data-size=s][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{padding:0 var(--tui-padding-l)}.t-wrapper[_ngcontent-%COMP%]{flex:1;min-width:0;-webkit-padding-end:.25rem;padding-inline-end:.25rem}.t-placeholder[_ngcontent-%COMP%]{transition-property:transform,font-size,color,letter-spacing;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;font:var(--tui-font-text-s);color:var(--tui-text-02);pointer-events:none;will-change:transform;transform:translateY(0)}.t-placeholder_raised[_ngcontent-%COMP%]{transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font:var(--tui-font-text-xs);line-height:1.25rem;transform:translateY(-.5rem);letter-spacing:.025rem}._invalid[_nghost-%COMP%]:not(._focused) .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill)}._invalid[_nghost-%COMP%]:not(._focused) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%], ._invalid[_nghost-%COMP%]:not(._focused):hover [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{color:var(--tui-error-fill-night)}._focused[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-03)}[data-size=l][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font:var(--tui-font-text-m);line-height:1.25rem}[data-size=l][_nghost-%COMP%] .t-placeholder_raised[_ngcontent-%COMP%]{font-size:.8156rem}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01)}[tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}[data-size=m]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused[_nghost-%COMP%]:not(._label-outside) [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}._focused[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=m]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [data-size=l]._focused._label-outside[_nghost-%COMP%] [tuiWrapper][data-mode=onDark][_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{color:var(--tui-text-02-night)}@supports (-webkit-hyphens: none){.t-placeholder[_ngcontent-%COMP%]{will-change:unset;transition-property:transform,color,letter-spacing}}.t-cleaner[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none;pointer-events:auto}._readonly[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%], ._disabled[_nghost-%COMP%] .t-cleaner[_ngcontent-%COMP%]{pointer-events:none}.t-icon[_ngcontent-%COMP%]{position:relative;display:flex;width:1.5rem;height:1.5rem;align-items:center;justify-content:center;box-sizing:border-box;cursor:pointer;pointer-events:none}[data-size=s][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.375rem;margin-inline-start:-.375rem}[data-size=m][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-start:-.125rem;margin-inline-start:-.125rem;-webkit-margin-end:.375rem;margin-inline-end:.375rem}[data-size=l][_nghost-%COMP%] .t-icon_left[_ngcontent-%COMP%]{-webkit-margin-end:.75rem;margin-inline-end:.75rem}.t-icons[_ngcontent-%COMP%]{display:flex;align-items:center}[data-size=m][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.125rem;margin-inline-end:-.125rem}[data-size=s][_nghost-%COMP%] .t-icons[_ngcontent-%COMP%]{-webkit-margin-end:-.375rem;margin-inline-end:-.375rem}[_nghost-%COMP%]:not([data-size="s"]) .t-icons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:first-child){-webkit-margin-start:.25rem;margin-inline-start:.25rem}._autofilled[data-size=s][_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled._label-outside[_nghost-%COMP%] .t-placeholder[_ngcontent-%COMP%], ._autofilled[_nghost-%COMP%] .t-value-decoration[_ngcontent-%COMP%]:not(.t-has-value){visibility:hidden}.t-custom-content[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;min-width:2rem;height:2rem;pointer-events:none}.t-custom-icon[_ngcontent-%COMP%]{width:2rem;height:100%}.t-input[_ngcontent-%COMP%]:not(:first-child){display:none}[data-size][_nghost-%COMP%] .t-input_template[_ngcontent-%COMP%]{display:flex;width:calc(100% - 1rem);max-width:calc(100% - 1rem);align-items:center;pointer-events:none;-webkit-padding-end:0;padding-inline-end:0}.t-text-template[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.t-wrapper-value-decoration[_ngcontent-%COMP%]{position:relative;pointer-events:none}'],changeDetection:0}),(0,i.gn)([f.UM],t.prototype,"getIndent$",null),t})(),rt=(()=>{class t extends L.D1{constructor(t){super(t),this.textfield=t}get readOnly(){return this.textfield.readOnly||!this.textfield.editable}onValueChange(t){this.textfield.onModelChange(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(it))},t.\u0275dir=r.lG2({type:t,selectors:[["tui-primitive-textfield"]],features:[r._Bn([(0,I.cp)(t)]),r.qOj]}),t})(),ot=(()=>{class t{constructor(t,e,n,i,r){this.host=t,this.controller=e,this.el=n,this.idService=i,this.legacyMask=r,this.host.process(this.el.nativeElement)}get id(){return this.el.nativeElement.id||this.idService.generate()}get inputMode(){return this.el.nativeElement.inputMode||this.host.inputMode}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(I.S0),r.Y36(m.Cs),r.Y36(r.SBq),r.Y36(o.ll),r.Y36(I.sf,8))},t.\u0275cmp=r.Xpm({type:t,selectors:[["input","tuiTextfield",""],["textarea","tuiTextfield",""]],hostAttrs:["type","text"],hostVars:7,hostBindings:function(t,e){1&t&&r.NdJ("input",function(t){return!e.legacyMask&&e.host.onValueChange(t.target.value)}),2&t&&(r.Ikx("tabIndex",e.host.focusable?0:-1)("readOnly",e.host.readOnly)("value",e.host.value),r.uIk("id",e.id)("inputMode",e.inputMode)("aria-invalid",e.host.invalid)("disabled",e.host.disabled||null))},features:[r._Bn([m.Y0])],attrs:tt,decls:0,vars:0,template:function(t,e){},styles:['[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;border-style:solid;border-color:transparent;border-inline-start-width:var(--border-start, 0);border-inline-end-width:var(--border-end, 0);text-indent:var(--text-indent);text-align:inherit;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-transform:inherit;resize:none}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}[_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%]:-webkit-autofill:first-line{font-size:inherit;line-height:inherit}[_nghost-%COMP%]::-webkit-caps-lock-indicator, [_nghost-%COMP%]::-webkit-contacts-auto-fill-button, [_nghost-%COMP%]::-webkit-credit-card-auto-fill-button, [_nghost-%COMP%]::-webkit-credentials-auto-fill-button, [_nghost-%COMP%]::-webkit-strong-password-auto-fill-button{content:none!important;position:absolute;left:-62.4375rem;top:-62.4375rem;z-index:-999;display:none!important;background:transparent!important;pointer-events:none!important}[_nghost-%COMP%]::placeholder{color:var(--tui-text-03);opacity:0}._focused[_nghost-%COMP%]:not(._readonly) [_ngcontent-%COMP%]::placeholder, tui-primitive-textfield._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-textarea._focused:not(._readonly) [_nghost-%COMP%]::placeholder, tui-text-area._focused:not(._readonly) [_nghost-%COMP%]::placeholder{opacity:1}[tuiWrapper][data-mode=onDark] [_nghost-%COMP%]:-webkit-autofill, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill, [tuiWrapper][data-mode=onDark] [_nghost-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:hover, [tuiWrapper][data-mode=onDark] [_nghost-%COMP%]:-webkit-autofill:focus, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]:-webkit-autofill:focus, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01-night)!important;border-color:var(--tui-autofill-night);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill-night) inset!important}[tuiWrapper][data-mode=onDark] [_nghost-%COMP%]::placeholder, [_nghost-%COMP%] [tuiWrapper][data-mode="onDark"][_nghost-%COMP%]::placeholder, [tuiWrapper][data-mode="onDark"] [_nghost-%COMP%]::placeholder{color:var(--tui-text-03-night)}[data-size=s][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="s"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="s"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="s"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="s"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="s"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="s"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-s)}[data-size=m][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="m"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="m"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="m"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="m"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-m)}[data-size=l][_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"][_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"] [_nghost-%COMP%]:not(tui-primitive-textfield), [_nghost-%COMP%] tui-textarea[data-size="l"][_nghost-%COMP%]:not(tui-textarea), tui-textarea[data-size="l"] [_nghost-%COMP%]:not(tui-textarea), [_nghost-%COMP%] tui-text-area[data-size="l"][_nghost-%COMP%]:not(tui-text-area), tui-text-area[data-size="l"] [_nghost-%COMP%]:not(tui-text-area){padding:0 var(--tui-padding-l)}._disabled[_nghost-%COMP%] -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield._disabled[_nghost-%COMP%], tui-primitive-textfield._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-textarea._disabled[_nghost-%COMP%], tui-textarea._disabled [_nghost-%COMP%], [_nghost-%COMP%] tui-text-area._disabled[_nghost-%COMP%], tui-text-area._disabled [_nghost-%COMP%]{pointer-events:none}[data-size=l][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1.25rem}[data-size=l][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield[data-size="l"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="l"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.8156rem;transform:translateY(-.625rem)}[data-size=m][_nghost-%COMP%]:not(._label-outside) -shadowcsshost, [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield), tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield){padding-top:1rem}[data-size=m][_nghost-%COMP%]:not(._label-outside) [_ngcontent-%COMP%]:-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield[data-size="m"]:not(._label-outside)[_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%], tui-primitive-textfield[data-size="m"]:not(._label-outside) [_nghost-%COMP%]:not(tui-primitive-textfield):-webkit-autofill + .t-content[_ngcontent-%COMP%] .t-placeholder[_ngcontent-%COMP%]{font-size:.69rem;transform:translateY(-.5rem)}._hidden[_nghost-%COMP%] input[_ngcontent-%COMP%], [_nghost-%COMP%] tui-primitive-textfield._hidden[_nghost-%COMP%], tui-primitive-textfield._hidden [_nghost-%COMP%]{opacity:0;text-indent:-10em;-webkit-user-select:none}textarea[_nghost-%COMP%]{white-space:pre-wrap}textarea[_nghost-%COMP%] tui-textarea._ios[_nghost-%COMP%], tui-textarea._ios [_nghost-%COMP%], textarea[_nghost-%COMP%] tui-text-area._ios[_nghost-%COMP%], tui-text-area._ios [_nghost-%COMP%]{padding-left:.8125rem}'],changeDetection:0}),t})(),st=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[E.ez,A.u5,_.wq,N,c.u,T.W,M.EI,P.Q,l]]}),t})()},80134:function(t,e,n){"use strict";n.d(e,{IB:function(){return d},Jy:function(){return p}});var i=n(74788),r=n(81359),o=n(41213),s=n(64493),a=n(99434),l=n(62579),c=n(12057);function u(t,e){1&t&&i._UZ(0,"tui-scroll-controls",2)}const h=["*"];let d=(()=>{class t{constructor(t,e,n,r){this.cssRef=t,this.el=e,this.userAgent=n,this.isIos=r,this.delegated=!1,this.isLegacy=!this.cssRef.supports("position","sticky")||(0,o.oK)(this.userAgent)&&!this.cssRef.supports("scrollbar-width","none"),this.hidden=!1,this.browserScrollRef=new i.SBq(this.el.nativeElement)}get showScrollbars(){return!this.hidden&&!this.isIos&&(!this.isLegacy||this.delegated)}get showNative(){return this.isLegacy&&!this.hidden&&!this.delegated}onScrollable(t){this.delegated=!0,this.browserScrollRef.nativeElement=t}scrollIntoView(t){var e;if(this.delegated)return;const{nativeElement:n}=this.browserScrollRef,{offsetTop:i,offsetLeft:r}=(0,s.YX)(n,t),{clientHeight:o,clientWidth:a}=n,{offsetHeight:l,offsetWidth:c}=t;null===(e=n.scrollTo)||void 0===e||e.call(n,r+c/2-a/2,i+l/2-o/2)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(l.ux),i.Y36(i.SBq),i.Y36(l.yZ),i.Y36(a.FA))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-scrollbar"]],hostVars:2,hostBindings:function(t,e){1&t&&i.NdJ("tui-scrollable.stop",function(t){return e.onScrollable(t.detail)})("tui-scroll-into-view.stop",function(t){return e.scrollIntoView(t.detail)}),2&t&&i.ekj("_legacy",e.showNative)},inputs:{hidden:"hidden"},features:[i._Bn([{provide:a.$_,deps:[t],useFactory:({browserScrollRef:t})=>t}])],ngContentSelectors:h,decls:3,vars:1,consts:[["class","t-bars",4,"ngIf"],[1,"t-content"],[1,"t-bars"]],template:function(t,e){1&t&&(i.F$t(),i.YNc(0,u,1,0,"tui-scroll-controls",0),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()),2&t&&i.Q6J("ngIf",e.showScrollbars)},directives:[c.O5,r.tZ],styles:["[_nghost-%COMP%]{z-index:0;position:relative;display:flex;overflow:auto}[_nghost-%COMP%]:not(._legacy){scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar, [_nghost-%COMP%]:not(._legacy)::-webkit-scrollbar-thumb{background:transparent;width:0;height:0}._legacy[_nghost-%COMP%]{overflow:overlay}@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm){._legacy[_nghost-%COMP%]::-webkit-scrollbar, ._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{width:1rem;height:1rem;border-radius:6.25rem;background-clip:padding-box;border:.375rem solid transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar{background-color:transparent}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--tui-clear-hover)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:var(--tui-clear-active)}._legacy[_nghost-%COMP%]::-webkit-scrollbar-thumb:active{background-color:var(--tui-text-03)}}.t-content[_ngcontent-%COMP%]{position:relative;z-index:0;flex:1;flex-basis:auto;width:100%;height:-webkit-max-content;height:max-content}.t-bars[_ngcontent-%COMP%]{color:var(--tui-text-01)}"],changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[c.ez,r.eI]]}),t})()},54789:function(t,e,n){"use strict";n.d(e,{$E:function(){return A},PN:function(){return D},EI:function(){return N}});var i=n(97582),r=n(12057),o=n(74788),s=n(91211),a=n(62579),l=n(92668),c=n(68192),u=n(11927),h=(n(18939),n(64493)),d=n(27103),p=n(99434),f=n(44358),g=n(18269),m=n(87941),v=n(79456),_=n(66640),y=n(54487),b=n(74235),w=n(25917),C=n(43190),x=n(39761),k=n(5304),O=n(88002);function M(t,e){if(1&t&&o._UZ(0,"div",3),2&t){const t=o.oxw().tuiLet;o.Q6J("innerHTML",t,o.oJD)}}function S(t,e){if(1&t){const t=o.EpF();o.O4$(),o.TgZ(0,"svg",4),o.NdJ("error",function(){return o.CHM(t),o.oxw(2).onError()}),o._UZ(1,"use"),o.qZA()}if(2&t){const t=o.oxw(2);o.xp6(1),o.uIk("href",t.use,null,"xlink")}}function P(t,e){if(1&t&&(o.ynx(0),o.YNc(1,M,1,1,"div",1),o.YNc(2,S,2,1,"ng-template",null,2,o.W1O),o.BQk()),2&t){const t=o.MAs(3),e=o.oxw();o.xp6(1),o.Q6J("ngIf",e.isInnerHTML)("ngIfElse",t)}}const E={tuiIconAttach:"tuiIconPaperclip",tuiIconAttention:"tuiIconAlertCircle",tuiIconBackCircle:"tuiIconArrowLeftCircle",tuiIconCall:"tuiIconPhone",tuiIconCallIn:"tuiIconPhoneIncoming",tuiIconCallOut:"tuiIconPhoneOutgoing",tuiIconCallTransfer:"tuiIconPhoneForwarded",tuiIconCancel:"tuiIconXCircle",tuiIconCancelCircle:"tuiIconSlash",tuiIconCard:"tuiIconCreditCard",tuiIconCards:"tuiIconCreditCard",tuiIconChartBar:"tuiIconBarChart",tuiIconChart:"tuiIconBarChart",tuiIconCheckList:"tuiIconClipboard",tuiIconCloseCircle:"tuiIconXCircle",tuiIconCollapse:"tuiIconMinimize",tuiIconComment:"tuiIconMessageSquare",tuiIconCommentFw:"tuiIconMessageForward",tuiIconCompany:"tuiIconBriefcase",tuiIconDefaultDoc:"tuiIconFile",tuiIconDesktop:"tuiIconMonitor",tuiIconDesktopOff:"tuiIconMonitorOff",tuiIconDislike:"tuiIconThumbsDown",tuiIconDone:"tuiIconCheckCircle",tuiIconDraft:"tuiIconEdit2",tuiIconEyeOpen:"tuiIconEye",tuiIconEyeClosed:"tuiIconEyeOff",tuiIconExpand:"tuiIconMaximize",tuiIconExternal:"tuiIconExternalLink",tuiIconFrame:"tuiIconLayout",tuiIconGeo:"tuiIconMapPin",tuiIconHeartFilled:"tuiIconHeart",tuiIconHide:"tuiIconEyeOff",tuiIconImg:"tuiIconImage",tuiIconInfoCircle:"tuiIconInfo",tuiIconLike:"tuiIconThumbsUp",tuiIconLockOpen:"tuiIconUnlock",tuiIconMobile:"tuiIconSmartphone",tuiIconMoreHor:"tuiIconMoreHorizontal",tuiIconMoreVer:"tuiIconMoreVertical",tuiIconMoreVert:"tuiIconMoreVertical",tuiIconPicture:"tuiIconImage",tuiIconPin:"tuiIconMapPin",tuiIconPrint:"tuiIconPrinter",tuiIconRefresh:"tuiIconRefreshCw",tuiIconRemove:"tuiIconX",tuiIconShow:"tuiIconEye",tuiIconSound:"tuiIconVolume",tuiIconSoundOff:"tuiIconVolumeX",tuiIconStarFilled:"tuiIconStar",tuiIconStop:"tuiIconSquare",tuiIconStructure:"tuiIconGrid",tuiIconTime:"tuiIconClock",tuiIconTooltip:"tuiIconHelpCircle",tuiIconViewList:"tuiIconList",tuiIconWifiOn:"tuiIconWifi"},T={iconsPlace:v.xp,path:(0,_.ht)(v.xp),srcProcessor:y.y,contentProcessor:c.N,deprecated:t=>{const e=t.replace("Large","").replace("Outline",""),n=E[e];return n?`${e}/(Large|Outline) is deprecated, use ${n}/(Large|Outline) instead`:""}},A=(0,u.N1)(()=>({iconsPlace:(0,o.f3M)(v.AA),path:(0,o.f3M)(v.ki),deprecated:T.deprecated,srcProcessor:(0,o.f3M)(v.V5),contentProcessor:(0,o.f3M)(v.u_)})),I=new o.OlP("[TUI_SVG_SRC_INTERCEPTORS]");let D=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c){this.doc=t,this.win=e,this.options=n,this.srcInterceptors=i,this.tuiSanitizer=r,this.svgService=o,this.staticRequestService=s,this.sanitizer=a,this.el=l,this.baseHref=c,this.src$=new b.t(1),this.icon="",this.innerHTML$=this.src$.pipe((0,C.w)(()=>(0,u.Aj)(this.icon)?this.isExternal?this.getExternalIcon(this.icon):(0,w.of)(this.getSafeHtml(this.icon)):(0,w.of)(this.icon)),(0,x.O)(""))}set src(t){var e;this.options.deprecated(String(t)),this.icon=(null!==(e=this.srcInterceptors)&&void 0!==e?e:[]).reduce((t,e)=>e(t,this.options),this.options.srcProcessor(t||"")),this.src$.next()}get src(){return this.icon}get use(){return(0,u.Aj)(this.icon)?this.icon.includes(".svg#")?this.icon:this.resolveName(this.icon,this.options.path):""}get isInnerHTML(){return!(0,u.Aj)(this.icon)||this.isSrc||this.isExternal||this.isName&&this.isShadowDOM}get isShadowDOM(){return(0,h.Wf)(this.el.nativeElement)!==this.doc}get isUse(){return this.use.replace(g.uJ,"").includes(".svg#")}get isExternal(){return this.isUrl||this.isCrossDomain}get isUrl(){return(0,u.Aj)(this.icon)&&this.icon.replace(g.uJ,"").endsWith(".svg")}get isSrc(){return(0,u.Aj)(this.icon)&&(0,_.jL)(this.icon)}get isName(){return!this.isUrl&&!this.isUse&&!this.isSrc}get isCrossDomain(){const{use:t,isUse:e,win:n}=this;return e&&t.startsWith("http")&&!!n.origin&&!t.startsWith(n.origin)}onError(t="External icon is missing on the given URL"){const{icon:e}=this,n=new CustomEvent(g.qT,{bubbles:!0,detail:{message:t,icon:e}});this.el.nativeElement.dispatchEvent(n)}resolveName(t,e){return e(t,this.baseHref)}getSafeHtml(t){return this.isSrc?this.sanitize(t):this.process(t)}process(t){const e=this.svgService.getOriginal(t);return this.isName&&!e&&!!t&&this.onError("Attempted to use undefined named icon"),this.isShadowDOM&&this.isName?this.sanitize(e||""):""}sanitize(t){return t=this.options.contentProcessor(t),this.tuiSanitizer&&(0,u.Aj)(t)?this.sanitizer.bypassSecurityTrustHtml(this.tuiSanitizer.sanitize(o.q3G.HTML,t)||""):t}getExternalIcon(t){const e=t.includes(".svg")?t:this.use;return this.staticRequestService.request(e).pipe((0,k.K)(()=>(this.onError("Failed to load external SVG"),(0,w.of)(""))),(0,O.U)(t=>this.sanitize(t.replace("{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=o.oAB({type:t}),t.\u0275inj=o.cJS({imports:[[r.ez,l.WD]]}),t})()},1515:function(t,e,n){"use strict";n.d(e,{w:function(){return g},Q:function(){return m}});var i=n(74788),r=n(27103),o=n(99434),s=n(90022),a=n(12130),l=n(79456),c=n(46782),u=n(54789),h=n(91489),d=n(89570),p=n(12057);function f(t,e){1&t&&i._UZ(0,"tui-svg",3),2&t&&i.Q6J("src",e.polymorpheusOutlet)}let g=(()=>{class t extends s.bZ{constructor(t,e,n,i){super(n),this.isMobile=i,this.mode=null,this.describeId="",e.pipe((0,c.R)(t)).subscribe(t=>{this.mode=t})}get computedAppearance(){return this.appearance||this.mode||""}stopOnMobile(t){var e;this.isMobile&&(t.preventDefault(),t.stopPropagation()),null===(e=this.driver$)||void 0===e||e.toggle()}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.a3,2),i.Y36(l.Au),i.Y36(s.H3),i.Y36(o.fL))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-tooltip"]],viewQuery:function(t,e){if(1&t&&i.Gf(s.t6,5),2&t){let t;i.iGM(t=i.CRH())&&(e.driver$=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&i.NdJ("mousedown",function(t){return e.stopOnMobile(t)}),2&t&&i.uIk("data-appearance",e.computedAppearance)},inputs:{content:"content",direction:"direction",appearance:"appearance",showDelay:"showDelay",hideDelay:"hideDelay",describeId:"describeId",context:"context"},features:[i._Bn([r.a3,a.CV]),i.qOj],decls:4,vars:11,consts:[["appearance","icon","automation-id","tui-tooltip__icon","tuiWrapper","",1,"t-tooltip-icon",3,"hover","tuiHint","tuiHintAppearance","tuiHintContext","tuiHintDescribe","tuiHintDirection","tuiHintHideDelay","tuiHintShowDelay"],["driver","tuiHintHover"],[3,"src",4,"polymorpheusOutlet"],[3,"src"]],template:function(t,e){if(1&t&&(i.TgZ(0,"span",0,1),i.ALo(2,"async"),i.YNc(3,f,1,1,"tui-svg",2),i.qZA()),2&t){const t=i.MAs(1);i.Q6J("hover",i.lcZ(2,9,t)||null)("tuiHint",e.content)("tuiHintAppearance",e.computedAppearance)("tuiHintContext",e.context)("tuiHintDescribe",e.describeId)("tuiHintDirection",e.direction)("tuiHintHideDelay",e.hideDelay)("tuiHintShowDelay",e.showDelay),i.xp6(3),i.Q6J("polymorpheusOutlet",e.icon)}},directives:[h.o,s.D,s.xn,s.t6,s.DM,s.$o,d.Li,u.PN],pipes:[p.Ov],styles:['[_nghost-%COMP%]{transition-property:color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:inline-block;width:1.5rem;height:1.5rem;vertical-align:middle;font-size:0;line-height:0;pointer-events:auto;cursor:pointer;color:var(--tui-text-01)}[data-appearance=error][_nghost-%COMP%]{color:var(--tui-error-fill)}.t-tooltip-icon[_ngcontent-%COMP%]{display:inline-block;width:100%;height:100%;color:inherit}[tuiWrapper][data-appearance="textfield"][data-state="disabled"][_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%], [tuiWrapper][data-appearance="textfield"][data-state="disabled"] [_nghost-%COMP%] .t-tooltip-icon[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0}),t})(),m=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[p.ez,h.W,u.EI,s.go,d.wq]]}),t})()},18269:function(t,e,n){"use strict";n.d(e,{oA:function(){return o},uJ:function(){return r},Jl:function(){return s},Fw:function(){return u},qT:function(){return c},fe:function(){return l},Nq:function(){return a}});var i=n(33770);const r=`?v=${i.Ml}`,o=t=>t.includes(".svg#")?t:`#${t}`,s={decimalLimit:1/0,decimalSeparator:",",thousandSeparator:i.f$,zeroPadding:!0,rounding:"truncate"},a=["Spacebar","Backspace","Delete","ArrowLeft","ArrowRight","Left","Right","End","Home"],l="tui-scroll-into-view",c="tui-icon-error",u=["bottom-left","bottom","bottom-right","top-left","top","top-right","left-top","left","left-bottom","right-top","right","right-bottom"]},98952:function(t,e,n){"use strict";n.d(e,{td:function(){return V},VC:function(){return J},E$:function(){return Z},Tp:function(){return X},dp:function(){return K},oH:function(){return B},Ek:function(){return H},Cw:function(){return W},fx:function(){return U}});var i=n(74788),r=n(62579),o=n(221),s=n(71486),a=n(96111),l=n(11927),c=n(27103),u=n(75122),h=n(44358),d=n(75675),p=n(57179),f=n(76480),g=n(33770),m=n(43631),v=n(49941),_=n(12130),y=n(87941),b=n(79456),w=n(43219),C=n(46782),x=n(43190),k=n(87874),O=n(68307),M=n(9945),S=n(88002),P=n(97582),E=n(47766),T=n(66640),A=n(89570),I=n(79765),D=n(66682),N=n(25917),L=n(26215),z=n(80134);function F(t,e){if(1&t&&(i.TgZ(0,"div",4),i._uU(1),i.qZA()),2&t){const t=e.polymorpheusOutlet;i.xp6(1),i.hij(" ",t," ")}}const R=function(t){return{$implicit:t}},j=(0,l.N1)(()=>G);let B=(()=>{class t{constructor(){this.tuiDropdownOpenChange=new i.vpe}set tuiDropdownOpen(t){var e;null===(e=this.dropdown)||void 0===e||e.toggle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiDropdownOpen",""],["","tuiDropdownOpenChange",""]],inputs:{tuiDropdownOpen:"tuiDropdownOpen"},outputs:{tuiDropdownOpenChange:"tuiDropdownOpenChange"}}),t})(),V=(()=>{class t{constructor(t,e,n,i,r,o){this.el=e,this.dropdown=n,this.injector=i,this.dropdownService=r,this.open=o,this.refresh$=new I.xQ,this.dropdownBoxRef=null,this.type="dropdown",this.component=new A.Al(this.dropdown,this.injector),this.open&&!this.open.dropdown?this.open.dropdown=this:this.open=null,this.refresh$.pipe((0,w.p)(0),(0,C.R)(t)).subscribe(()=>{var t,e;null===(t=this.dropdownBoxRef)||void 0===t||t.changeDetectorRef.detectChanges(),null===(e=this.dropdownBoxRef)||void 0===e||e.changeDetectorRef.markForCheck()})}get position(){return(0,E.qK)(this.el.nativeElement)?"fixed":"absolute"}ngAfterViewChecked(){this.refresh$.next()}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1),this.open&&(this.open.dropdown=void 0)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(t){var e,n;t&&this.content&&!this.dropdownBoxRef?(this.dropdownBoxRef=this.dropdownService.add(this.component),null===(e=this.open)||void 0===e||e.tuiDropdownOpenChange.emit(!0)):!t&&this.dropdownBoxRef&&(this.dropdownService.remove(this.dropdownBoxRef),this.dropdownBoxRef=null,null===(n=this.open)||void 0===n||n.tuiDropdownOpenChange.emit(!1))}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.a3,2),i.Y36(i.SBq),i.Y36(j),i.Y36(i.gxx),i.Y36(u.ae),i.Y36(B,8))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiDropdown","",5,"ng-container"]],inputs:{content:["tuiDropdown","content"]},exportAs:["tuiDropdown"],features:[i._Bn([c.a3,(0,m.Ic)(t),(0,m.Fe)(t)]),i.TTD]}),(0,P.gn)([h.UM],t.prototype,"position",null),t})();const $=(0,l.JN)({showDelay:200,hideDelay:500});let Z=(()=>{class t extends m.kk{constructor(t,e,n){super(t=>this.stream$.subscribe(t)),this.hovered$=t,this.options=e,this.parentHover=n,this.toggle$=new I.xQ,this.stream$=(0,D.T)(this.toggle$,this.hovered$).pipe((0,x.w)(t=>(0,N.of)(t).pipe((0,k.g)(t?this.showDelay:this.hideDelay))),(0,O.b)(t=>{this.hovered=t}),(0,M.B)()),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.hovered=!1,this.type="dropdown"}toggle(t){var e;null===(e=this.parentHover)||void 0===e||e.toggle(t),this.toggle$.next(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(a.gs),i.Y36($),i.Y36(t,12))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiDropdownHover","",5,"ng-container"]],inputs:{showDelay:["tuiDropdownShowDelay","showDelay"],hideDelay:["tuiDropdownHideDelay","hideDelay"]},features:[i._Bn([(0,m.UK)(t),a.gs]),i.qOj]}),t})();const q={align:"left",direction:null,limitWidth:"auto",maxHeight:400,minHeight:80,offset:4,appearance:""},Y=(0,l.JN)(q),U=t=>({provide:Y,deps:[[new i.FiY,H],[new i.FiY,new i.tp0,Y]],useFactory:(0,T.lp)(t,q)});let H=(()=>{class t{constructor(t){this.options=t,this.align=this.options.align,this.appearance=this.options.appearance,this.direction=this.options.direction,this.limitWidth=this.options.limitWidth,this.minHeight=this.options.minHeight,this.maxHeight=this.options.maxHeight,this.offset=this.options.offset}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Y,4))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiDropdownAlign",""],["","tuiDropdownAppearance",""],["","tuiDropdownDirection",""],["","tuiDropdownLimitWidth",""],["","tuiDropdownMinHeight",""],["","tuiDropdownMaxHeight",""],["","tuiDropdownOffset",""]],inputs:{align:["tuiDropdownAlign","align"],appearance:["tuiDropdownAppearance","appearance"],direction:["tuiDropdownDirection","direction"],limitWidth:["tuiDropdownLimitWidth","limitWidth"],minHeight:["tuiDropdownMinHeight","minHeight"],maxHeight:["tuiDropdownMaxHeight","maxHeight"],offset:["tuiDropdownOffset","offset"]},features:[i._Bn([{provide:Y,useExisting:(0,i.Gpc)(()=>t)}])]}),t})(),G=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c,u,h){this.directive=i,this.animation=r,this.el=o,this.host=s,this.accessor=a,this.win=l,this.mode$=c,this.options=u,this.hoverDirective=h,e.pipe((0,S.U)(e=>"fixed"===this.directive.position?t.correct(e):e),(0,C.R)(n)).subscribe(([t,e])=>{this.update(t,e)}),this.updateWidth(this.accessor.getClientRect().width)}onHoveredChange(t){this.hoverDirective&&this.hoverDirective.toggle(t)}onTopFocus(){this.moveFocusOutside(!0)}onBottomFocus(){this.moveFocusOutside(!1)}update(t,e){const{style:n}=this.el.nativeElement,{right:i}=this.el.nativeElement.getBoundingClientRect(),{maxHeight:r,offset:o}=this.options,{innerHeight:s}=this.win,{clientRect:a}=this.host,{position:l}=this.directive,c=this.accessor.getClientRect(),u="fixed"===l?0:-a.top;t+=u;const h=(e+="fixed"===l?0:-a.left)c.left&&t{class t extends m.FP{constructor(t,e,n){super(t,e,n),this.type="dropdown"}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(c.a3,2),i.Y36(m.kk),i.Y36(m.c2))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiDropdown",""]],features:[i._Bn([c.a3]),i.qOj]}),t})(),X=(()=>{class t extends m.kk{constructor(){super(t=>this.stream$.subscribe(t)),this.stream$=new L.X(!1),this.tuiDropdownManual=!1,this.type="dropdown"}ngOnChanges(){this.stream$.next(this.tuiDropdownManual)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiDropdown","","tuiDropdownManual",""]],inputs:{tuiDropdownManual:"tuiDropdownManual"},features:[i._Bn([(0,m.UK)(t)]),i.qOj,i.TTD]}),t})(),Q=(()=>{class t extends m.uG{constructor(t,e,n,i){super(),this.options=t,this.viewport=e,this.accessors=n,this.directive=i,this.type="dropdown"}getPosition({width:t,height:e}){var n,i;!t&&!e&&(this.previous=void 0);const r=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:g.Jy,o=this.viewport.getClientRect(),{minHeight:s,align:a,direction:l,offset:c}=this.options,u=this.previous||l||"bottom",h=Math.max(r.right-t,c),d={top:r.top-2*c-o.top,bottom:o.bottom-r.bottom-2*c},p={top:r.top-c-e,bottom:r.bottom+c,right:h,center:r.left+r.width/2+t/2d.bottom?"top":"bottom";return d[u]>s&&l||d[u]>e?[p[u],p[a]]:(this.previous=f,[p[f],p[a]])}get accessor(){return(0,m.Sv)("dropdown")(this.accessors,this.directive)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Y),i.Y36(b.EO),i.Y36(m.O4),i.Y36(V))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiDropdown","",3,"tuiDropdownCustomPosition","",3,"tuiDropdownSided",""]],features:[i._Bn([(0,m.P7)(t)]),i.qOj]}),(0,P.gn)([h.UM],t.prototype,"accessor",null),t})(),W=(()=>{class t extends m.uG{constructor(t,e,n){super(),this.options=t,this.viewport=e,this.vertical=n,this.previous=this.options.direction||"bottom",this.tuiDropdownSided="",this.tuiDropdownSidedOffset=4,this.type="dropdown"}getPosition(t){var e,n;if(!1===this.tuiDropdownSided)return this.vertical.getPosition(t);const{height:i,width:r}=t,o=null!==(n=null===(e=this.vertical.accessor)||void 0===e?void 0:e.getClientRect())&&void 0!==n?n:g.Jy,s=this.viewport.getClientRect(),{direction:a,minHeight:l,offset:c}=this.options,u="center"===this.options.align?"left":this.options.align,h={top:o.bottom-s.top,left:o.left-c-s.left,right:s.right-o.right-c,bottom:s.bottom-o.top},d={top:o.bottom-i+this.tuiDropdownSidedOffset+1,left:o.left-r-c,right:o.right+c,bottom:o.top-this.tuiDropdownSidedOffset-1},p=h.top>h.bottom?"top":"bottom",f=h[u]>r?d[u]:h.left>h.right?d.left:d.right;return h[this.previous]>l&&a||this.previous===p?[d[this.previous],f]:(this.previous=p,[d[p],f])}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(Y),i.Y36(b.EO),i.Y36(Q))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiDropdownSided",""]],inputs:{tuiDropdownSided:"tuiDropdownSided",tuiDropdownSidedOffset:"tuiDropdownSidedOffset"},features:[i._Bn([Q,(0,m.P7)(t)]),i.qOj]}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[A.wq,o.A,s.e,z.Jy,a.VE]]}),t})()},90022:function(t,e,n){"use strict";n.d(e,{H3:function(){return Y},$o:function(){return Q},D:function(){return H},xn:function(){return W},t6:function(){return G},go:function(){return tt},bZ:function(){return U},DM:function(){return K}});var i=n(97582),r=n(74788),o=n(11927),s=n(76480),a=n(221),l=n(64493),c=n(96111),u=n(33770),h=n(85648),d=n(75675),p=n(27103),f=n(44358),g=n(40946),m=n(57179),v=n(43631),_=n(49941),y=n(75452),b=n(87941),w=n(79456),C=n(89570),x=n(85345);class k{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new O(t,this.durationSelector))}}class O extends x.Ds{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){try{const e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(e){this.destination.error(e)}}_complete(){this.emitValue(),this.destination.complete()}_tryNext(t,e){let n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=(0,x.ft)(e,new x.IY(this)),n&&!n.closed&&this.add(this.durationSubscription=n)}notifyNext(){this.emitValue()}notifyComplete(){this.emitValue()}emitValue(){if(this.hasValue){const t=this.value,e=this.durationSubscription;e&&(this.durationSubscription=void 0,e.unsubscribe(),this.remove(e)),this.value=void 0,this.hasValue=!1,super._next(t)}}}var M=n(43190),S=n(87874),P=n(46782),E=n(79196),T=n(45435),A=n(88002),I=n(68307),D=n(39761),N=n(87519),L=n(13653),z=n(79765),F=n(66682),R=n(25917),j=n(74235),B=n(41291),V=n(12057),$=n(18269);function Z(t,e){1&t&&r._UZ(0,"span",1),2&t&&r.Q6J("innerHTML",e.polymorpheusOutlet,r.oJD)}const q=(0,o.N1)(()=>X),Y=(0,o.JN)({direction:"bottom-left",showDelay:500,hideDelay:200,appearance:"",icon:"tuiIconHelpCircle"});let U=(()=>{class t extends s.QJ{constructor(t){super(),this.options=t,this.direction=this.options.direction,this.appearance=this.options.appearance,this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.icon=this.options.icon}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(Y,4))},t.\u0275dir=r.lG2({type:t,selectors:[["","tuiHintContent",""]],inputs:{content:["tuiHintContent","content"],direction:["tuiHintDirection","direction"],appearance:["tuiHintAppearance","appearance"],showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},features:[r._Bn([{provide:Y,useExisting:(0,r.Gpc)(()=>t)}]),r.qOj]}),t})(),H=(()=>{class t{constructor(t,e,n,i,r){this.el=t,this.component=e,this.hintService=n,this.options=i,this.activeZone=r,this.tuiHintAppearance=null,this.type="hint"}get appearance(){var t;return null!==(t=this.tuiHintAppearance)&&void 0!==t?t:this.options.appearance}ngOnChanges(){this.content||this.toggle(!1)}ngOnDestroy(){this.toggle(!1)}getClientRect(){return this.el.nativeElement.getBoundingClientRect()}toggle(t){t&&this.content?this.hintService.add(this):this.hintService.remove(this)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.SBq),r.Y36(C.Al),r.Y36(b.BN),r.Y36(Y),r.Y36(a.e,8))},t.\u0275dir=r.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{content:["tuiHint","content"],context:["tuiHintContext","context"],tuiHintAppearance:"tuiHintAppearance"},features:[r._Bn([(0,v.Ic)(t),(0,v.Fe)(t),{provide:C.Al,deps:[q,r.gxx],useClass:C.Al}]),r.TTD]}),t})(),G=(()=>{class t extends v.kk{constructor(t,e,n){super(t=>this.stream$.subscribe(t)),this.hovered$=t,this.options=e,this.el=n,this.visible=!1,this.toggle$=new z.xQ,this.stream$=(0,F.T)(this.toggle$.pipe((0,M.w)(t=>(0,R.of)(t).pipe((0,S.g)(t?0:this.hideDelay))),(0,P.R)(this.hovered$),(0,E.r)()),this.hovered$.pipe((0,M.w)(t=>(0,R.of)(t).pipe((0,S.g)(t?this.showDelay:this.hideDelay))),(0,P.R)(this.toggle$),(0,E.r)())).pipe((0,T.h)(()=>this.enabled),(0,A.U)(t=>{var e;return t&&!(null===(e=(0,l.PU)(this.el.nativeElement))||void 0===e?void 0:e.length)}),(0,I.b)(t=>{this.visible=t})),this.showDelay=this.options.showDelay,this.hideDelay=this.options.hideDelay,this.type="hint",this.enabled=!0}toggle(t=!this.visible){this.toggle$.next(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.gs),r.Y36(Y),r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","tuiHint","",5,"ng-container"]],inputs:{showDelay:["tuiHintShowDelay","showDelay"],hideDelay:["tuiHintHideDelay","hideDelay"]},exportAs:["tuiHintHover"],features:[r._Bn([(0,v.UK)(t),c.gs]),r.qOj]}),t})(),J=(()=>{class t extends G{constructor(){super(...arguments),this.currentRect=u.Jy}onMove({clientX:t,clientY:e}){this.currentRect=(0,l.dD)(t,e)}getClientRect(){return this.currentRect}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275dir=r.lG2({type:t,selectors:[["","tuiHint","","tuiHintPointer",""]],hostBindings:function(t,e){1&t&&r.NdJ("mousemove.silent",function(t){return e.onMove(t)})},features:[r._Bn([(0,v.Ic)(t),(0,v.UK)(t)]),r.qOj]}),t})(),X=(()=>{class t{constructor(t,e,n,i,r,o,s,a,l,c,u,h){var d;this.animation=i,this.pointer=r,this.accessor=o,this.el=s,this.polymorpheus=a,this.hover=l,this.mode=c,this.visualViewportService=u,this.viewport=h,this.appearance=this.polymorpheus.$implicit.appearance||(null===(d=this.mode)||void 0===d?void 0:d.mode),e.pipe((0,A.U)(t=>this.visualViewportService.correct(t)),(0,P.R)(n)).subscribe(([t,e])=>{this.update(t,e)}),t.pipe((0,P.R)(n)).subscribe(t=>this.hover.toggle(t))}get content(){return this.polymorpheus.$implicit.content}get context(){return this.polymorpheus.$implicit.context}onClick(t){var e;(!this.el.nativeElement.contains(t)&&!this.hover.el.nativeElement.contains(t)||(null===(e=(0,l.PU)(this.hover.el.nativeElement))||void 0===e?void 0:e.length))&&this.hover.toggle(!1)}update(t,e){const{height:n,width:i}=this.el.nativeElement.getBoundingClientRect(),{style:r}=this.el.nativeElement,o=this.accessor.getClientRect(),s=this.viewport.getClientRect();if(o===u.Jy)return;const a=(0,h.Ki)(e,4,s.width-i-4),[l,c]=this.visualViewportService.correct([o.top+o.height/2-t,o.left+o.width/2-a]);r.top=(0,d.O)(t),r.left=(0,d.O)(a),r.setProperty("--top",(0,d.O)((0,h.Ki)(l,.5,n-1))),r.setProperty("--left",(0,d.O)((0,h.Ki)(c,.5,i-1)))}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(c.gs),r.Y36(b.KG),r.Y36(p.a3,2),r.Y36(w.Pw),r.Y36(J,8),r.Y36(v.O4),r.Y36(r.SBq),r.Y36(C.yf),r.Y36(G),r.Y36(y.w,8),r.Y36(b.Lp),r.Y36(w.EO))},t.\u0275cmp=r.Xpm({type:t,selectors:[["tui-hint"]],hostVars:4,hostBindings:function(t,e){1&t&&r.NdJ("click",function(t){return e.onClick(t.target)},!1,r.evT),2&t&&(r.uIk("data-appearance",e.appearance),r.d8E("@tuiFadeIn",e.animation),r.ekj("_untouchable",e.pointer))},features:[r._Bn([p.a3,b.KG,c.gs,(0,v.ei)("hint"),(0,v.Wk)("hint",H)])],decls:1,vars:2,consts:[[3,"innerHTML",4,"polymorpheusOutlet","polymorpheusOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&r.YNc(0,Z,1,1,"span",0),2&t&&r.Q6J("polymorpheusOutlet",e.content)("polymorpheusOutletContext",e.context)},directives:[C.Li],styles:['[_nghost-%COMP%]{position:absolute;max-width:18rem;min-height:var(--tui-height-m);padding:.75rem 1rem;background:var(--tui-primary);border-radius:var(--tui-radius-l);color:var(--tui-primary-text);box-sizing:border-box;font:var(--tui-font-text-s);white-space:pre-line;word-wrap:break-word}[_nghost-%COMP%]:before{content:"";position:absolute;top:var(--top);left:var(--left);width:.5rem;height:.5rem;border-radius:.125rem;box-sizing:border-box;background:inherit;transform:translate(-50%,-50%) rotate(45deg)}[data-appearance=error][_nghost-%COMP%]{background:var(--tui-error-fill)}[data-appearance=onDark][_nghost-%COMP%]{background:var(--tui-elevation-02);color:var(--tui-text-01);filter:drop-shadow(0 0 .125rem rgba(0,0,0,.16)) drop-shadow(0 1.5rem 1rem rgba(0,0,0,.03)) drop-shadow(0 .75rem .75rem rgba(0,0,0,.04)) drop-shadow(0 .25rem .375rem rgba(0,0,0,.05))}[_nghost-%COMP%]:not([style*="top"]){visibility:hidden}._untouchable[_nghost-%COMP%]{pointer-events:none}'],data:{animation:[_.QF]},changeDetection:0}),(0,i.gn)([f.UM],t.prototype,"update",null),t})(),Q=(()=>{class t extends v.kk{constructor(t,e,n){super(t=>this.stream$.subscribe(t)),this.zone=t,this.doc=e,this.el=n,this.id$=new j.t(1),this.stream$=this.id$.pipe((0,g.Xd)(()=>(0,g.mL)(this.doc,"keydown",{capture:!0}),o.Pc),(0,M.w)(()=>this.focused?(0,R.of)(!1):(0,F.T)((0,g.mL)(this.doc,"keyup"),(0,g.mL)(this.element,"blur")).pipe((0,A.U)(()=>this.focused))),function(t){return e=>e.lift(new k(t))}(t=>t?(0,B.H)(1e3):(0,R.of)(null)),(0,D.O)(!1),(0,N.x)(),(0,L.T)(1),(0,g.Yr)(this.zone)),this.tuiHintDescribe="",this.type="hint"}ngOnChanges(){this.id$.next(this.tuiHintDescribe)}get focused(){return(0,m.V8)(this.element)}get element(){return this.doc.getElementById(this.tuiHintDescribe||"")||this.el.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(r.R0b),r.Y36(V.K0),r.Y36(r.SBq))},t.\u0275dir=r.lG2({type:t,selectors:[["","tuiHintDescribe",""]],inputs:{tuiHintDescribe:"tuiHintDescribe"},features:[r._Bn([(0,v.UK)(t)]),r.qOj,r.TTD]}),(0,i.gn)([f.UM],t.prototype,"element",null),t})(),W=(()=>{class t extends v.FP{constructor(t,e,n){super(t,e,n),this.type="hint"}}return t.\u0275fac=function(e){return new(e||t)(r.Y36(p.a3,2),r.Y36(v.kk),r.Y36(v.c2))},t.\u0275dir=r.lG2({type:t,selectors:[["","tuiHint",""]],features:[r._Bn([p.a3]),r.qOj]}),t})(),K=(()=>{class t extends v.uG{constructor(t,e,n,i){super(),this.options=t,this.viewport=e,this.directive=n,this.accessors=i,this.points=$.Fw.reduce((t,e)=>Object.assign(Object.assign({},t),{[e]:[0,0]}),{}),this.direction=this.options.direction,this.type="hint"}getPosition({width:t,height:e}){var n,i;const r=null!==(i=null===(n=this.accessor)||void 0===n?void 0:n.getClientRect())&&void 0!==i?i:u.Jy,o=r.left+r.width/2,s=r.top+r.height/2;if(this.points["top-left"][0]=r.top-e-8,this.points["top-left"][1]=o-t+22,this.points.top[0]=this.points["top-left"][0],this.points.top[1]=o-t/2,this.points["top-right"][0]=this.points["top-left"][0],this.points["top-right"][1]=o-22,this.points["bottom-left"][0]=r.bottom+8,this.points["bottom-left"][1]=this.points["top-left"][1],this.points.bottom[0]=this.points["bottom-left"][0],this.points.bottom[1]=this.points.top[1],this.points["bottom-right"][0]=this.points["bottom-left"][0],this.points["bottom-right"][1]=this.points["top-right"][1],this.points["left-top"][0]=s-e+22,this.points["left-top"][1]=r.left-t-8,this.points.left[0]=s-e/2,this.points.left[1]=this.points["left-top"][1],this.points["left-bottom"][0]=s-22,this.points["left-bottom"][1]=this.points["left-top"][1],this.points["right-top"][0]=this.points["left-top"][0],this.points["right-top"][1]=r.right+8,this.points.right[0]=this.points.left[0],this.points.right[1]=this.points["right-top"][1],this.points["right-bottom"][0]=this.points["left-bottom"][0],this.points["right-bottom"][1]=this.points["right-top"][1],this.checkPosition(this.points[this.direction],t,e))return this.points[this.direction];const a=$.Fw.find(n=>this.checkPosition(this.points[n],t,e));return this.points[a||this.fallback]}get accessor(){return(0,v.Sv)("hint")(this.accessors,this.directive)}get fallback(){return this.points.top[0]>this.viewport.getClientRect().bottom-this.points.bottom[0]?"top":"bottom"}checkPosition([t,e],n,i){const r=this.viewport.getClientRect();return t>8&&e>8&&t+i{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({imports:[[V.ez,C.wq]]}),t})()},75452:function(t,e,n){"use strict";n.d(e,{w:function(){return o},z:function(){return s}});var i=n(74788),r=n(76480);let o=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.mode=null}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["","tuiMode",""]],inputs:{mode:["tuiMode","mode"]},features:[i.qOj]}),t})(),s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},79588:function(t,e,n){"use strict";n.d(e,{Y0:function(){return R},Ym:function(){return _},z1:function(){return g},kI:function(){return N},Cs:function(){return F},be:function(){return y},cn:function(){return z},B7:function(){return w},kD:function(){return x},AW:function(){return O},aR:function(){return S},xT:function(){return E},Tq:function(){return A},A7:function(){return D},sz:function(){return L}});var i=n(11927),r=n(76480),o=n(27103),s=n(40946),a=n(74788),l=n(79456),c=n(29856),u=n(98640);const h=new c.y(u.Z);var d=n(66682),p=n(46782);class f{constructor(t,e,n,i,r,o,s,a,l,c,u,h,d){this.change$=t,this.options=e,this.legacyAppearance=n,this.appearanceDirective=i,this.cleanerDirective=r,this.customContentDirective=o,this.iconDirective=s,this.iconLeftDirective=a,this.labelOutsideDirective=l,this.sizeDirective=c,this.prefixDirective=u,this.postfixDirective=h,this.fillerDirective=d}get appearance(){return this.appearanceDirective.appearance||this.legacyAppearance}get cleaner(){return this.cleanerDirective.cleaner}get customContent(){return this.customContentDirective.customContent||""}get icon(){return this.iconDirective.icon}get iconLeft(){return this.iconLeftDirective.iconLeft}get labelOutside(){return this.labelOutsideDirective.labelOutside}get size(){return this.sizeDirective.size}get prefix(){return this.prefixDirective.prefix}get postfix(){return this.postfixDirective.postfix}get filler(){return this.fillerDirective.filler}}const g=(0,i.JN)({iconCleaner:"tuiIconClose",hintOnDisabled:!1}),m=(0,i.N1)(()=>new v);let v=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.appearance=""}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldAppearance",""]],inputs:{appearance:["tuiTextfieldAppearance","appearance"]},features:[a._Bn([{provide:m,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})();const _=(0,i.N1)(()=>new y);let y=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.cleaner=!1}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldCleaner",""]],inputs:{cleaner:["tuiTextfieldCleaner","cleaner"]},features:[a._Bn([{provide:_,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})();const b=(0,i.N1)(()=>new w);let w=(()=>{class t extends r.QJ{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldCustomContent",""]],inputs:{customContent:["tuiTextfieldCustomContent","customContent"]},features:[a._Bn([{provide:b,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})();const C=(0,i.N1)(()=>new x);let x=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.filler=""}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldFiller",""]],inputs:{filler:["tuiTextfieldFiller","filler"]},features:[a._Bn([{provide:C,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})();const k=(0,i.N1)(()=>new O);let O=(()=>{class t extends r.QJ{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldIcon",""]],inputs:{icon:["tuiTextfieldIcon","icon"]},features:[a._Bn([{provide:k,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})();const M=(0,i.N1)(()=>new S);let S=(()=>{class t extends r.QJ{}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldIconLeft",""]],inputs:{iconLeft:["tuiTextfieldIconLeft","iconLeft"]},features:[a._Bn([{provide:M,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})();const P=(0,i.N1)(()=>new E);let E=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.labelOutside=!1}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldLabelOutside",""]],inputs:{labelOutside:["tuiTextfieldLabelOutside","labelOutside"]},features:[a._Bn([{provide:P,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})();const T=(0,i.N1)(()=>new A);let A=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.postfix=""}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldPostfix",""]],inputs:{postfix:["tuiTextfieldPostfix","postfix"]},features:[a._Bn([{provide:T,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})();const I=(0,i.N1)(()=>new D);let D=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.prefix=""}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldPrefix",""]],inputs:{prefix:["tuiTextfieldPrefix","prefix"]},features:[a._Bn([{provide:I,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})();const N=(0,i.N1)(()=>new L);let L=(()=>{class t extends r.QJ{constructor(){super(...arguments),this.size="l"}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=a.n5z(t)))(n||t)}}(),t.\u0275dir=a.lG2({type:t,selectors:[["","tuiTextfieldSize",""]],inputs:{size:["tuiTextfieldSize","size"]},features:[a._Bn([{provide:N,useExisting:(0,a.Gpc)(()=>t)}]),a.qOj]}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=a.oAB({type:t}),t.\u0275inj=a.cJS({}),t})();const F=new a.OlP("[TUI_TEXTFIELD_WATCHED_CONTROLLER]"),R=[o.a3,{provide:F,deps:[a.sBO,o.a3,g,l.jt,m,_,b,k,M,P,N,I,T,C],useFactory:(t,e,n,i,...r)=>{const o=(0,d.T)(...r.map(({change$:t})=>t||h)).pipe((0,s.NA)(t),(0,p.R)(e));return o.subscribe(),new f(o,n,i,...r)}}]},91489:function(t,e,n){"use strict";n.d(e,{o:function(){return a},W:function(){return l}});var i=n(74788),r=n(77320),o=n(12130),s=n(79456);let a=(()=>{class t{constructor(t){this.mode$=t,this.disabled=!1,this.readOnly=!1,this.hover=null,this.active=null,this.focus=!1,this.invalid=!1,this.appearance=""}get computedInvalid(){return!this.disabled&&!this.readOnly&&this.invalid}get computedFocused(){return this.focus&&!this.disabled}get interactiveState(){return this.disabled?r.z3.Disabled:this.readOnly?r.z3.Readonly:this.active?r.z3.Active:this.hover?r.z3.Hover:null}get noHover(){return this.readOnly||!1===this.hover}get noActive(){return this.readOnly||!1===this.active}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(s.Au))},t.\u0275dir=i.lG2({type:t,selectors:[["","tuiWrapper",""]],hostVars:10,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",function(){return e.mode$}),2&t&&(i.uIk("data-appearance",e.appearance)("data-state",e.interactiveState),i.ekj("_invalid",e.computedInvalid)("_focused",e.computedFocused)("_no-hover",e.noHover)("_no-active",e.noActive))},inputs:{disabled:"disabled",readOnly:"readOnly",hover:"hover",active:"active",focus:"focus",invalid:"invalid",appearance:"appearance"},features:[i._Bn([o.CV])]}),t})(),l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},77320:function(t,e,n){"use strict";n.d(e,{Nm:function(){return i},z3:function(){return r}});var i=(()=>{return(t=i||(i={})).Accent="accent",t.Flat="flat",t.Icon="icon",t.Outline="outline",t.Primary="primary",t.Secondary="secondary",t.SecondaryDestructive="secondary-destructive",t.Table="table",t.Textfield="textfield",t.Whiteblock="whiteblock",t.WhiteblockActive="whiteblock-active",i;var t})(),r=(()=>{return(t=r||(r={})).Active="active",t.Disabled="disabled",t.Hover="hover",t.Readonly="readonly",r;var t})()},12130:function(t,e,n){"use strict";n.d(e,{CV:function(){return u},yI:function(){return c}});var i=n(74788),r=n(79456),o=n(75452),s=n(25917),a=n(39761),l=n(88002);const c={provide:r.rL,deps:[[new i.tp0,r.rL],i.SBq],useFactory:(t,{nativeElement:e})=>(e["$.class._mobile"]=t,t)},u={provide:r.Au,deps:[[new i.FiY,o.w],i.SBq],useFactory:(t,{nativeElement:e})=>{const n=t?t.change$.pipe((0,a.O)(null),(0,l.U)(()=>t.mode)):(0,s.of)(null);return e["$.data-mode.attr"]=n,n}}},87941:function(t,e,n){"use strict";n.d(e,{BN:function(){return x},KG:function(){return k},Ok:function(){return O},K5:function(){return M},Lp:function(){return S}});var i=n(74788),r=n(40946),o=n(33770),s=n(27103),a=(n(18939),n(99434)),l=n(79456),c=n(26215),u=n(29856),h=n(66682),d=n(41291),p=n(59193),f=n(88002),g=n(68939),m=n(87519),v=n(46782),_=n(62579),y=n(43631),b=n(86561),w=n(91211),C=n(47766);let x=(()=>{class t extends c.X{constructor(){super([])}add(t){this.next(this.value.concat(t))}remove(t){this.value.includes(t)&&this.next(this.value.filter(e=>e!==t))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),k=(()=>{class t extends u.y{constructor(t,e,n,i){super(s=>e.pipe((0,f.U)(()=>t.nativeElement.getBoundingClientRect()),(0,f.U)(t=>i.getPosition(t)),(0,r.fL)(n),(0,g.x)(()=>i.getPosition(o.Jy))).subscribe(s))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(i.SBq),i.LFG(_.L1),i.LFG(i.R0b),i.LFG(y.uG))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),O=(()=>{class t extends u.y{constructor(t,e,n,i){const o=t?(0,h.T)((0,d.H)(0),n).pipe((0,f.U)(()=>t.isActive),(0,m.x)(),(0,r.Yr)(e),(0,v.R)(i)):p.E;super(t=>o.subscribe(t))}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(b.Od,8),i.LFG(i.R0b),i.LFG(_.L1),i.LFG(s.a3,2))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e,n){this.tuiSanitizer=t,this.sanitizer=e,this.originals={},this.items$=new c.X(new Map),this.define(n)}define(t){const{value:e}=this.items$;Object.keys(t).forEach(n=>{this.defineIcon(n,t[n],e)}),this.items$.next(e)}getOriginal(t){return this.originals[t]||null}defineIcon(t,e,n){if(n.has(t))return;const i=this.parseSrc(t,e);!i||(n.set(t,i),this.originals=Object.assign(Object.assign({},this.originals),{[t]:e}))}parseSrc(t,e){return this.sanitize((0,C.NK)(e,t))}sanitize(t){return this.sanitizer.bypassSecurityTrustHtml((this.tuiSanitizer?this.tuiSanitizer.sanitize(i.q3G.HTML,t):this.sanitizer.sanitize(i.q3G.HTML,t))||"")}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(l.hm,8),i.LFG(w.H7),i.LFG(l.It))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),S=(()=>{class t{constructor(t,e){this.win=t,this.isWebkit=e}correct(t){var e,n,i,r;return this.isWebkit?[t[0]+(null!==(n=null===(e=this.win.visualViewport)||void 0===e?void 0:e.offsetTop)&&void 0!==n?n:0),t[1]+(null!==(r=null===(i=this.win.visualViewport)||void 0===i?void 0:i.offsetLeft)&&void 0!==r?r:0)]:t}}return t.\u0275fac=function(e){return new(e||t)(i.LFG(_.m9),i.LFG(a.jF))},t.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},79456:function(t,e,n){"use strict";n.d(e,{dx:function(){return k},Pw:function(){return O},U0:function(){return N},Gs:function(){return S},N1:function(){return T},PL:function(){return z},xp:function(){return R},It:function(){return B},ki:function(){return V},AA:function(){return j},rL:function(){return Z},sf:function(){return q},Au:function(){return Y},$R:function(){return D},PH:function(){return L},Ln:function(){return H},HO:function(){return G},IQ:function(){return J},TK:function(){return x},hm:function(){return W},u_:function(){return K},V5:function(){return tt},jt:function(){return et},S0:function(){return nt},r2:function(){return rt},sE:function(){return ot},EO:function(){return st},RB:function(){return E},oE:function(){return A},P7:function(){return X},cp:function(){return it}});var i=n(74788),r=n(11927),o=n(36424),s=n(40946),a=n(68192),l=n(12057),c=n(47232),u=n(47766),h=n(66640),d=n(62579),p=n(9945),f=n(39761),g=n(88002),m=n(87519),v=n(43190),_=n(46782),y=n(18269),b=n(66682),w=n(54487),C=n(77320);const x=(0,r.N1)(()=>{var t,e,n;return null!==(n=null===(e=null===(t=(0,i.f3M)(l.K0).defaultView)||void 0===t?void 0:t.matchMedia)||void 0===e?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&void 0!==n&&n}),k=(0,r.N1)(()=>(0,i.f3M)(x)?0:300),O=(0,r.N1)(()=>({value:"",params:{duration:(0,i.f3M)(k)}})),M=((0,r.N1)(()=>(0,i.X6Q)()),{check:"tuiIconCheck",close:"tuiIconClose",error:"tuiIconAlertCircle",more:"tuiIconChevronRight"}),S=(0,r.JN)(M),P=new i.OlP("[TUI_DATA_LIST_ACCESSOR]");function E(t){return{provide:P,useExisting:t}}const T=new i.OlP("[TUI_DATA_LIST_HOST]");function A(t){return{provide:T,useExisting:t}}(0,r.JN)(t=>t.isWeekend?"weekend":"weekday"),new i.OlP("[TUI_DOCUMENT_OR_SHADOW_ROOT]"),new i.OlP("[TUI_ELEMENT_REF]");const I=(0,r.JN)(o.L.Monday),D=(0,r.N1)((0,c.v)("months")),N=(0,r.N1)((0,c.v)("close")),L=(0,r.N1)((0,c.v)("nothingFoundMessage")),z=(0,r.N1)((0,c.v)("defaultErrorMessage")),F=((0,r.N1)((0,c.v)("spinTexts")),(0,r.N1)((0,c.v)("shortWeekDays"))),R="assets/taiga-ui/icons",j=(0,r.JN)(R),B=(0,r.JN)({}),V=(0,r.N1)(()=>(0,h.ht)((0,i.f3M)(j))),$=(0,r.JN)({mobile:768,desktopSmall:1024,desktopLarge:1280}),Z=(0,r.N1)(()=>{const t=(0,i.f3M)(d.m9),e=(0,i.f3M)($);return(0,s.mL)(t,"resize").pipe((0,p.B)(),(0,f.O)(null),(0,g.U)(()=>function(t,{mobile:e}){return(0,u.ic)(t)U[t],size:"m",hasIcon:!0,defaultAutoCloseTime:3e3}),G=(0,r.JN)(y.Jl),J=new i.OlP("[TUI_OPTION_CONTENT]");function X(t){return{provide:J,useValue:t}}const Q=t=>{const e=t.length-1;return[t[e],...t.slice(0,e)]},W=((0,r.N1)(()=>{const t=(0,i.f3M)(I);return(0,i.f3M)(F).pipe((0,g.U)(Q),(0,g.U)(e=>[...e.slice(t),...e.slice(0,t)]))}),new i.OlP("[TUI_SANITIZER]")),K=((0,r.N1)(()=>{const t=(0,i.f3M)(l.K0);return(0,b.T)((0,s.mL)(t,"selectionchange"),(0,s.mL)(t,"mouseup"),(0,s.mL)(t,"mousedown").pipe((0,v.w)(()=>(0,s.mL)(t,"mousemove").pipe((0,_.R)((0,s.mL)(t,"mouseup"))))),(0,s.mL)(t,"keydown"),(0,s.mL)(t,"keyup")).pipe((0,p.B)())}),(0,r.JN)({decrement:"tuiIconChevronLeft",increment:"tuiIconChevronRight"}),(0,r.JN)(a.N)),tt=(0,r.JN)(w.y),et=(0,r.JN)(C.Nm.Textfield),nt=new i.OlP("[TUI_TEXTFIELD_HOST]");function it(t){return{provide:nt,useExisting:t}}const rt=(0,r.JN)("Taiga"),ot=new i.OlP("[TUI_VALUE_ACCESSOR]"),st=(0,r.N1)(()=>{const t=(0,i.f3M)(d.m9);return{type:"viewport",getClientRect:()=>({top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight})}})},47766:function(t,e,n){"use strict";function i(t){return!(!t||"undefined"==typeof getComputedStyle)&&("fixed"===getComputedStyle(t).getPropertyValue("position")||i(t.parentElement))}function r({document:t,innerWidth:e}){return Math.max(t.documentElement.clientWidth||0,e||0)}n.d(e,{qK:function(){return i},ic:function(){return r},NK:function(){return l}});const o='width="',s='height="',a="")));if(!(null==i?void 0:i.includes(o))||!i.includes(s))return`${n.replace(a,``;const r=i.indexOf(o),l=i.indexOf(s),c=r+o.length,u=l+s.length,h=i.slice(c,i.indexOf('"',c)),d=i.slice(u,i.indexOf('"',u));if(!d||!h||h.includes("%")||d.includes("%")||h.includes("em")||d.includes("em"))return n.replace(a,`${n}`}},66640:function(t,e,n){"use strict";n.d(e,{_X:function(){return r},ht:function(){return o},kL:function(){return s},jL:function(){return a},lp:function(){return l},R9:function(){return u}});var i=n(18269);function r(t,e=!1,n=!1,i=!1,r="m"){const o="s"===r?0:.25;let s=0;return t&&(s+=1.5+o),e&&(s+=1.5+o),n&&(s+=1.5+o),i&&(s+=2.5+o),s}function o(t){const e=t.endsWith("/")?t:`${t}/`;return t=>t.startsWith("tuiIcon")?`${e}${t}.svg${i.uJ}#${t}`:(0,i.oA)(t)}function s(t){return 1===t.length||i.Nq.includes(t)}function a(t){const e=t.trim();return e.startsWith("<")&&e.endsWith(">")}function l(t,e){return(n,i)=>{const r=n||Object.assign({},i||e);return Object.keys(t).forEach(e=>{r[e]=t[e]}),r}}const c={xxs:0,xs:1,s:2,m:3,l:4,xl:5,xxl:6};function u(t,e="s"){return c[t]>c[e]}},31081:function(t,e,n){"use strict";n.d(e,{X:function(){return i}});var i=(()=>{return(t=i||(i={})).AD="AD",t.AE="AE",t.AF="AF",t.AG="AG",t.AI="AI",t.AL="AL",t.AM="AM",t.AO="AO",t.AR="AR",t.AT="AT",t.AU="AU",t.AW="AW",t.AZ="AZ",t.BA="BA",t.BB="BB",t.BD="BD",t.BE="BE",t.BF="BF",t.BG="BG",t.BH="BH",t.BI="BI",t.BJ="BJ",t.BL="BL",t.BM="BM",t.BN="BN",t.BO="BO",t.BQ="BQ",t.BR="BR",t.BS="BS",t.BT="BT",t.BW="BW",t.BY="BY",t.BZ="BZ",t.CA="CA",t.CD="CD",t.CF="CF",t.CG="CG",t.CH="CH",t.CI="CI",t.CL="CL",t.CM="CM",t.CN="CN",t.CO="CO",t.CR="CR",t.CU="CU",t.CV="CV",t.CW="CW",t.CY="CY",t.CZ="CZ",t.DE="DE",t.DJ="DJ",t.DK="DK",t.DM="DM",t.DO="DO",t.DZ="DZ",t.EC="EC",t.EE="EE",t.EG="EG",t.ER="ER",t.ES="ES",t.ET="ET",t.FI="FI",t.FJ="FJ",t.FK="FK",t.FM="FM",t.FR="FR",t.GA="GA",t.GB="GB",t.GD="GD",t.GE="GE",t.GF="GF",t.GH="GH",t.GI="GI",t.GL="GL",t.GM="GM",t.GN="GN",t.GP="GP",t.GQ="GQ",t.GR="GR",t.GT="GT",t.GW="GW",t.GY="GY",t.HK="HK",t.HN="HN",t.HR="HR",t.HT="HT",t.HU="HU",t.ID="ID",t.IE="IE",t.IL="IL",t.IN="IN",t.IQ="IQ",t.IR="IR",t.IS="IS",t.IT="IT",t.JM="JM",t.JO="JO",t.JP="JP",t.KE="KE",t.KG="KG",t.KH="KH",t.KM="KM",t.KN="KN",t.KP="KP",t.KR="KR",t.KW="KW",t.KY="KY",t.KZ="KZ",t.LA="LA",t.LB="LB",t.LC="LC",t.LI="LI",t.LK="LK",t.LR="LR",t.LS="LS",t.LT="LT",t.LU="LU",t.LV="LV",t.LY="LY",t.MA="MA",t.MC="MC",t.MD="MD",t.ME="ME",t.MF="MF",t.MG="MG",t.MK="MK",t.ML="ML",t.MM="MM",t.MN="MN",t.MO="MO",t.MQ="MQ",t.MR="MR",t.MS="MS",t.MT="MT",t.MU="MU",t.MV="MV",t.MW="MW",t.MX="MX",t.MY="MY",t.MZ="MZ",t.NA="NA",t.NC="NC",t.NE="NE",t.NG="NG",t.NI="NI",t.NL="NL",t.NO="NO",t.NP="NP",t.NZ="NZ",t.OM="OM",t.PA="PA",t.PE="PE",t.PF="PF",t.PG="PG",t.PH="PH",t.PK="PK",t.PL="PL",t.PT="PT",t.PW="PW",t.PY="PY",t.QA="QA",t.RE="RE",t.RO="RO",t.RS="RS",t.RU="RU",t.RW="RW",t.SA="SA",t.SB="SB",t.SC="SC",t.SD="SD",t.SE="SE",t.SG="SG",t.SH="SH",t.SI="SI",t.SK="SK",t.SL="SL",t.SM="SM",t.SN="SN",t.SO="SO",t.SR="SR",t.ST="ST",t.SV="SV",t.SX="SX",t.SY="SY",t.SZ="SZ",t.TC="TC",t.TD="TD",t.TG="TG",t.TH="TH",t.TJ="TJ",t.TL="TL",t.TM="TM",t.TN="TN",t.TO="TO",t.TR="TR",t.TT="TT",t.TW="TW",t.TZ="TZ",t.UA="UA",t.UG="UG",t.US="US",t.UY="UY",t.UZ="UZ",t.VC="VC",t.VE="VE",t.VG="VG",t.VN="VN",t.VU="VU",t.WS="WS",t.XK="XK",t.YE="YE",t.YT="YT",t.ZA="ZA",t.ZM="ZM",t.ZW="ZW",i;var t})()},47232:function(t,e,n){"use strict";n.d(e,{v:function(){return d}});var i=n(74788),r=n(31081);const o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:"english"},{months:["January","February","March","April","May","June","July","August","September","October","November","December"],close:"Close",nothingFoundMessage:"Nothing found",defaultErrorMessage:"Value is invalid",spinTexts:["Previous","Next"],shortWeekDays:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],countries:{[r.X.AD]:"Andorra",[r.X.AE]:"United Arab Emirates",[r.X.AF]:"Afghanistan",[r.X.AG]:"Antigua and Barbuda",[r.X.BL]:"Saint Barth\xe9lemy",[r.X.AI]:"Anguilla",[r.X.AL]:"Albania",[r.X.AM]:"Armenia",[r.X.AO]:"Angola",[r.X.AR]:"Argentina",[r.X.AT]:"Austria",[r.X.AU]:"Australia",[r.X.AW]:"Aruba",[r.X.AZ]:"Azerbaijan",[r.X.BA]:"Bosnia and Herzegovina",[r.X.BB]:"Barbados",[r.X.BD]:"Bangladesh",[r.X.BE]:"Belgium",[r.X.BF]:"Burkina Faso",[r.X.BG]:"Bulgaria",[r.X.BH]:"Bahrain",[r.X.BI]:"Burundi",[r.X.BJ]:"Benin",[r.X.GF]:"Guyana",[r.X.BM]:"Bermuda",[r.X.BN]:"Brunei Darussalam",[r.X.BO]:"Bolivia",[r.X.BQ]:"Bonaire, Sint Eustatius and Saba",[r.X.BR]:"Brazil",[r.X.BS]:"Bahamas",[r.X.BT]:"Bhutan",[r.X.BW]:"Botswana",[r.X.BY]:"Belarus",[r.X.BZ]:"Belize",[r.X.CA]:"Canada",[r.X.CD]:"Dem. Rep. Congo (Kinshasa)",[r.X.CF]:"Central African Republic",[r.X.CG]:"Congo (Brazzaville)",[r.X.CH]:"Switzerland",[r.X.CI]:"Ivory Coast",[r.X.CL]:"Chile",[r.X.CM]:"Cameroon",[r.X.CN]:"China",[r.X.CO]:"Colombia",[r.X.CR]:"Costa Rica",[r.X.CU]:"Cuba",[r.X.CV]:"Cape Verde",[r.X.CW]:"Cura\xe7ao",[r.X.CY]:"Cyprus",[r.X.CZ]:"Czech Republic",[r.X.DE]:"Germany",[r.X.DJ]:"Djibouti",[r.X.DK]:"Denmark",[r.X.DM]:"Dominica",[r.X.DO]:"Dominican Republic",[r.X.DZ]:"Algeria",[r.X.EC]:"Ecuador",[r.X.EE]:"Estonia",[r.X.EG]:"Egypt",[r.X.ER]:"Eritrea",[r.X.ES]:"Spain",[r.X.ET]:"Ethiopia",[r.X.FI]:"Finland",[r.X.FJ]:"Fiji",[r.X.FK]:"Falkland Islands",[r.X.FM]:"F.S. of Micronesia",[r.X.FR]:"France",[r.X.GA]:"Gabon",[r.X.GB]:"United Kingdom",[r.X.GD]:"Grenada",[r.X.GE]:"Georgia",[r.X.GP]:"Guadeloupe",[r.X.GH]:"Ghana",[r.X.GI]:"Gibraltar",[r.X.GL]:"Greenland",[r.X.GM]:"Gambia",[r.X.GN]:"Guinea",[r.X.MF]:"Saint-Martin",[r.X.GQ]:"Equatorial Guinea",[r.X.GR]:"Greece",[r.X.GT]:"Guatemala",[r.X.GW]:"Guinea-Bissau",[r.X.GY]:"Guyana",[r.X.HK]:"Hong Kong",[r.X.HN]:"Honduras",[r.X.HR]:"Croatia",[r.X.HT]:"Haiti",[r.X.HU]:"Hungary",[r.X.ID]:"Indonesia",[r.X.IE]:"Ireland",[r.X.IL]:"Israel",[r.X.IN]:"India",[r.X.IQ]:"Iraq",[r.X.IR]:"Iran",[r.X.IS]:"Iceland",[r.X.IT]:"Italy",[r.X.JM]:"Jamaica",[r.X.JO]:"Jordan",[r.X.JP]:"Japan",[r.X.KE]:"Kenya",[r.X.KG]:"Kyrgyzstan",[r.X.KH]:"Cambodia",[r.X.KM]:"Comoros",[r.X.KN]:"Saint Kitts and Nevis",[r.X.KP]:"Korean PDR",[r.X.KR]:"Rep. Korea",[r.X.KW]:"Kuwait",[r.X.KY]:"Cayman Islands",[r.X.KZ]:"Kazakhstan",[r.X.LA]:"Laos",[r.X.LB]:"Lebanon",[r.X.LC]:"Saint Lucia",[r.X.LI]:"Liechtenstein",[r.X.LK]:"Sri Lanka",[r.X.LR]:"Liberia",[r.X.LS]:"Lesotho",[r.X.LT]:"Lithuania",[r.X.LU]:"Luxembourg",[r.X.LV]:"Latvia",[r.X.LY]:"Libya",[r.X.MA]:"Morocco",[r.X.MC]:"Monaco",[r.X.MD]:"Moldova",[r.X.ME]:"Montenegro",[r.X.MQ]:"Martinique",[r.X.MG]:"Madagascar",[r.X.MK]:"Rep. of North Macedonia",[r.X.ML]:"Mali",[r.X.MM]:"Burma (Myanmar)",[r.X.MN]:"Mongolia",[r.X.MO]:"Macau",[r.X.RE]:"R\xe9union",[r.X.MR]:"Mauritania",[r.X.MS]:"Montserrat",[r.X.MT]:"Malta",[r.X.MU]:"Mauritius",[r.X.MV]:"Maldives",[r.X.MW]:"Malawi",[r.X.MX]:"Mexico",[r.X.MY]:"Malaysia",[r.X.MZ]:"Mozambique",[r.X.NA]:"Namibia",[r.X.NC]:"New Caledonia",[r.X.NE]:"Niger",[r.X.NG]:"Nigeria",[r.X.NI]:"Nicaragua",[r.X.NL]:"Netherlands",[r.X.NO]:"Norway",[r.X.NP]:"Nepal",[r.X.NZ]:"New Zealand",[r.X.OM]:"Oman",[r.X.PA]:"Panama",[r.X.PE]:"Peru",[r.X.PF]:"French Polynesia (Tahiti)",[r.X.PG]:"Papua New Guinea",[r.X.PH]:"Philippines",[r.X.PK]:"Pakistan",[r.X.PL]:"Poland",[r.X.PT]:"Portugal",[r.X.PW]:"Palau",[r.X.PY]:"Paraguay",[r.X.QA]:"Qatar",[r.X.YT]:"Mayotte",[r.X.RO]:"Romania",[r.X.RS]:"Serbia",[r.X.RU]:"Russia",[r.X.RW]:"Rwanda",[r.X.SA]:"Saudi Arabia",[r.X.SB]:"Solomon Islands",[r.X.SC]:"Seychelles",[r.X.SD]:"Sudan",[r.X.SE]:"Sweden",[r.X.SG]:"Singapore",[r.X.SH]:"Saint Helena",[r.X.SI]:"Slovenia",[r.X.SK]:"Slovakia",[r.X.SL]:"Sierra Leone",[r.X.SM]:"San Marino",[r.X.SN]:"Senegal",[r.X.SO]:"Somalia",[r.X.SR]:"Suriname",[r.X.ST]:"Sao Tome and Principe",[r.X.SV]:"El Salvador",[r.X.SX]:"Sint Maarten",[r.X.SY]:"Syrian Arab Republic",[r.X.SZ]:"Swaziland",[r.X.TC]:"Turks and Caicos",[r.X.TD]:"Chad",[r.X.TG]:"Togo",[r.X.TH]:"Thailand",[r.X.TJ]:"Tajikistan",[r.X.TL]:"East Timor",[r.X.TM]:"Turkmenistan",[r.X.TN]:"Tunisia",[r.X.TO]:"Tonga",[r.X.TR]:"Turkey",[r.X.TT]:"Trinidad and Tobago",[r.X.TW]:"Taiwan",[r.X.TZ]:"Tanzania",[r.X.UA]:"Ukraine",[r.X.UG]:"Uganda",[r.X.US]:"USA",[r.X.UY]:"Uruguay",[r.X.UZ]:"Uzbekistan",[r.X.VC]:"Saint Vincent and the Grenadines",[r.X.VE]:"Venezuela",[r.X.VG]:"British Virgin Islands",[r.X.VN]:"Vietnam",[r.X.VU]:"Vanuatu",[r.X.WS]:"Samoa",[r.X.XK]:"Kosovo",[r.X.YE]:"Yemen",[r.X.ZA]:"South Africa",[r.X.ZM]:"Zambia",[r.X.ZW]:"Zimbabwe"}}),{cancel:"Cancel",done:"Done",more:"More",otherDate:"Other date...",showAll:"Show all",hide:"Hide",mobileCalendarTexts:["Choose day","Choose range"],range:["from","to"],countTexts:["Plus","Minus"],time:{"HH:MM":"HH:MM","HH:MM:SS":"HH:MM:SS","HH:MM:SS.MSS":"HH:MM:SS.MSS"},dateTexts:{DMY:"dd.mm.yyyy",MDY:"mm.dd.yyyy",YMD:"yyyy.mm.dd"},digitalInformationUnits:["B","KiB","MiB"],passwordTexts:["Show password","Hide password"],copyTexts:["Copy","Copied"],shortCalendarMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],pagination:["Previous page","Next page"],fileTexts:{loadingError:"Upload failed",preview:"Preview",remove:"Remove"},inputFileTexts:{defaultLabelSingle:"or drop\xa0it\xa0here",defaultLabelMultiple:"or drop\xa0them\xa0here",defaultLinkSingle:"Choose a file",defaultLinkMultiple:"Choose files",maxSizeRejectionReason:"File is too large ",formatRejectionReason:"Wrong file type",drop:"Drop file here",dropMultiple:"Drop files here"},multiSelectTexts:{all:"Select all",none:"Select none"},prompt:{yes:"Yes",no:"No"}}),{showHideText:"Show/Hide",paginationTexts:{pages:"Pages",linesPerPage:"Lines per page",of:"of"}}),{cardNumber:["Number","Card number"],cardExpiry:["Expires","Valid through"]}),{colorSelectorModeNames:["Solid color","Gradient"],toolbarTools:{undo:"Undo",redo:"Redo",font:"Font",fontStyle:"Font style",fontSize:"Font size",bold:"Bold",italic:"Italic",underline:"Underline",strikeThrough:"Strike through",justify:"Justify",justifyLeft:"Justify left",justifyCenter:"Justify center",justifyRight:"Justify right",justifyFull:"Justify full",list:"List",indent:"Indent",outdent:"Outdent",unorderedList:"Unordered list",orderedList:"Ordered list",quote:"Quote",foreColor:"Color",backColor:"Background color",hiliteColor:"Highlight color",clear:"Clear",link:"Link",attach:"Attach file",tex:"Insert TeX",code:"Code",image:"Insert image",insertHorizontalRule:"Insert horizontal rule",superscript:"Superscript",subscript:"Subscript",insertTable:"Insert table",insertGroup:"Insert group",hiliteGroup:"Hilite group",removeGroup:"Remove group",insertAnchor:"Insert anchor",mergeCells:"Merge cells",splitCells:"Split cells",rowsColumnsManaging:"Managing rows and columns",cellColor:"Cell color",setDetails:"Details",removeDetails:"Remove details"},editorEditLink:{urlExample:"example.com",anchorExample:"anchor"},editorTableCommands:[["Insert column before","Insert column after"],["Insert row before","Insert row after"],["Delete column","Delete row"]],editorCodeOptions:["Code in the text","Code in block"],editorFontOptions:{small:"Small",large:"Large",normal:"Normal",title:"Title",subtitle:"Subtitle"}}),{previewTexts:{rotate:"Rotate"},zoomTexts:{zoomOut:"Zoom out",zoomIn:"Zoom in",reset:"Reset"}});var s=n(25917);const a=new i.OlP("[TUI_DEFAULT_LANGUAGE]",{factory:()=>o}),l=new i.OlP("[TUI_LANGUAGE]",{factory:()=>(0,s.of)((0,i.f3M)(a))});new i.OlP("[TUI_LANGUAGE_LOADER]"),new i.OlP("[TUI_LANGUAGE_STORAGE_KEY]",{factory:()=>"tuiLanguage"});var c=n(95639),u=n(43190),h=n(88002);function d(t){return()=>(0,i.f3M)(l).pipe((0,u.w)(t=>(0,c.b)(t)?t:(0,s.of)(t)),(0,h.U)(e=>e[t]))}},44711:function(t,e,n){"use strict";n.d(e,{p:function(){return T},s:function(){return A}});var i=n(74788),r=n(87862),o=n(76480),s=n(57179),a=n(99434),l=n(11927),c=n(77320),u=n(54789),h=n(91489),d=n(89570);function p(t,e){if(1&t&&i._UZ(0,"tui-svg",2),2&t){const t=e.polymorpheusOutlet,n=i.oxw();i.ekj("t-mark_on",!n.empty),i.Q6J("src",t)}}const f=function(t){return{$implicit:t}},g=["*"],m=(0,l.JN)({size:"m",appearances:{unchecked:c.Nm.Outline,checked:c.Nm.Primary,indeterminate:c.Nm.Primary},icons:{checked:({$implicit:t})=>"m"===t?"tuiIconCheck":"tuiIconCheckLarge",indeterminate:({$implicit:t})=>"m"===t?"tuiIconMinus":"tuiIconMinusLarge"}});let v=(()=>{class t{constructor(t){this.options=t,this.size=this.options.size,this.disabled=!1,this.focused=!1,this.hovered=!1,this.pressed=!1,this.invalid=!1,this.icon=this.options.icons.checked,this.value=!1}set valueSetter(t){!1!==t&&this.setCurrentIcon(t),this.value=t}get appearance(){switch(this.value){case!1:return this.options.appearances.unchecked;case!0:return this.options.appearances.checked;default:return this.options.appearances.indeterminate}}get empty(){return!1===this.value}setCurrentIcon(t){this.icon=null===t?this.options.icons.indeterminate:this.options.icons.checked}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(m))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-primitive-checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},inputs:{size:"size",disabled:"disabled",focused:"focused",hovered:"hovered",pressed:"pressed",invalid:"invalid",valueSetter:["value","valueSetter"]},ngContentSelectors:g,decls:3,vars:10,consts:[["tuiWrapper","",3,"active","appearance","disabled","focus","hover","invalid"],["class","t-mark",3,"t-mark_on","src",4,"polymorpheusOutlet","polymorpheusOutletContext"],[1,"t-mark",3,"src"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"div",0),i.YNc(1,p,1,3,"tui-svg",1),i.Hsn(2),i.qZA()),2&t&&(i.Q6J("active",e.pressed)("appearance",e.appearance)("disabled",e.disabled)("focus",e.focused)("hover",e.hovered)("invalid",e.invalid),i.xp6(1),i.Q6J("polymorpheusOutlet",e.icon)("polymorpheusOutletContext",i.VKq(8,f,e.size)))},directives:[h.o,d.Li,u.PN],styles:["[_nghost-%COMP%]{display:block;font-size:0;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem;border-radius:var(--tui-radius-xs)}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem;border-radius:var(--tui-radius-s)}.t-mark[_ngcontent-%COMP%]{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:block;width:100%;height:100%;transform:scale(0)}.t-mark_on[_ngcontent-%COMP%]{transform:scale(1)}"],changeDetection:0}),t})(),_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[u.EI,h.W,d.wq]]}),t})();var y=n(79456),b=n(12130),w=n(44541),C=n(13633),x=n(75059),k=n(88491),O=n(12057);const M=["focusableElement"];let S=(()=>{class t extends o.F9{constructor(t,e,n){super(t,n),this.options=e,this.size=this.options.size}get nativeFocusableElement(){return!this.focusableElement||this.computedDisabled?null:this.focusableElement.nativeElement}get focused(){return(0,s.V8)(this.nativeFocusableElement)}get computedFocusable(){return this.interactive&&this.focusable}onChecked(t){this.value=t}onFocused(t){this.updateFocused(t)}onFocusVisible(t){this.updateFocusVisible(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(m),i.Y36(i.sBO))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-checkbox"]],viewQuery:function(t,e){if(1&t&&i.Gf(M,5),2&t){let t;i.iGM(t=i.CRH())&&(e.focusableElement=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},inputs:{size:"size"},features:[i._Bn([(0,a.FT)(t),(0,o.wB)(t)]),i.qOj],decls:3,vars:11,consts:[[3,"disabled","focused","hovered","invalid","pressed","size","value"],["automation-id","tui-checkbox__native","type","checkbox",1,"t-native",3,"disabled","id","tuiFocusable","tuiChecked","tuiCheckedChange","tuiFocusedChange","tuiFocusVisibleChange"],["focusableElement",""]],template:function(t,e){1&t&&(i.TgZ(0,"tui-primitive-checkbox",0),i.TgZ(1,"input",1,2),i.NdJ("tuiCheckedChange",function(t){return e.value=t})("tuiFocusedChange",function(t){return e.onFocused(t)})("tuiFocusVisibleChange",function(t){return e.onFocusVisible(t)}),i.qZA(),i.qZA()),2&t&&(i.Q6J("disabled",e.disabled)("focused",e.computedFocusVisible)("hovered",e.pseudoHover)("invalid",e.computedInvalid)("pressed",e.pseudoActive)("size",e.size)("value",e.value),i.xp6(1),i.Q6J("disabled",e.disabled)("id",e.id)("tuiFocusable",e.computedFocusable)("tuiChecked",e.value))},directives:[v,w.t,C.t,x.U,k.q],styles:["[_nghost-%COMP%]{font:var(--tui-font-text-s);color:var(--tui-text-01);position:relative;display:block;flex-shrink:0}[data-size=m][_nghost-%COMP%]{width:1rem;height:1rem}[data-size=l][_nghost-%COMP%]{width:1.5rem;height:1.5rem}._readonly[_nghost-%COMP%] tui-primitive-checkbox[_ngcontent-%COMP%]{pointer-events:none}.t-native[_ngcontent-%COMP%]{padding:0;margin:0;border-width:0;border-radius:inherit;background:none;font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;caret-color:currentColor;outline:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;word-break:keep-all;-webkit-text-fill-color:currentColor;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.t-native[_ngcontent-%COMP%]:-webkit-autofill, .t-native[_ngcontent-%COMP%]:-webkit-autofill:hover, .t-native[_ngcontent-%COMP%]:-webkit-autofill:focus{caret-color:var(--tui-base-09);border-radius:inherit;color:inherit!important;background-color:transparent!important;-webkit-text-fill-color:var(--tui-text-01)!important;border-color:var(--tui-autofill);-webkit-box-shadow:0 0 0 100rem var(--tui-autofill) inset!important}"],changeDetection:0}),t})(),P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[O.ez,w.S,C.u,x.F,k.c,_]]}),t})();const E=["*"];let T=(()=>{class t extends o.F9{constructor(t,e,n,i){super(t,e),this.mode$=n,this.options=i,this.size=this.options.size}get focused(){return(0,s.V8)(this.nativeFocusableElement)}get nativeFocusableElement(){return this.checkbox?this.checkbox.nativeFocusableElement:null}onFocused(t){this.updateFocused(t)}onModelChange(t){this.value=t}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(y.Au),i.Y36(m))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-checkbox-labeled"]],viewQuery:function(t,e){if(1&t&&i.Gf(S,5),2&t){let t;i.iGM(t=i.CRH())&&(e.checkbox=t.first)}},hostVars:1,hostBindings:function(t,e){1&t&&i.NdJ("$.data-mode.attr",function(){return e.mode$}),2&t&&i.uIk("data-size",e.size)},inputs:{size:"size"},features:[i._Bn([(0,a.FT)(t),(0,o.wB)(t),b.CV]),i.qOj],ngContentSelectors:E,decls:4,vars:12,consts:[[1,"t-wrapper"],[3,"disabled","focusable","nativeId","pseudoActive","pseudoFocus","pseudoHover","pseudoInvalid","readOnly","size","ngModel","ngModelChange","focusedChange"],[1,"t-content"]],template:function(t,e){1&t&&(i.F$t(),i.TgZ(0,"label",0),i.TgZ(1,"tui-checkbox",1),i.NdJ("ngModelChange",function(t){return e.value=t})("focusedChange",function(t){return e.onFocused(t)}),i.qZA(),i.TgZ(2,"div",2),i.Hsn(3),i.qZA(),i.qZA()),2&t&&(i.xp6(1),i.Q6J("disabled",e.computedDisabled)("focusable",e.focusable)("nativeId",e.nativeId)("pseudoActive",e.pseudoActive)("pseudoFocus",e.pseudoFocus)("pseudoHover",e.pseudoHover)("pseudoInvalid",e.computedInvalid)("readOnly",e.readOnly)("size",e.size)("ngModel",e.value),i.xp6(1),i.ekj("t-content_disabled",e.computedDisabled))},directives:[S,r.JJ,r.On],styles:["[_nghost-%COMP%]{position:relative;display:block;line-height:0}._disabled[_nghost-%COMP%], ._readonly[_nghost-%COMP%]{pointer-events:none}.t-wrapper[_ngcontent-%COMP%]{display:inline-flex;max-width:100%;cursor:pointer}._disabled[_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{cursor:default}[data-mode=onDark][_nghost-%COMP%] .t-wrapper[_ngcontent-%COMP%]{color:var(--tui-text-01-night)}.t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-s);line-height:1rem;word-wrap:break-word;min-width:0}.t-content_disabled[_ngcontent-%COMP%]{opacity:var(--tui-disabled-opacity)}[data-size=m][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{margin-left:.5rem}[data-size=l][_nghost-%COMP%] .t-content[_ngcontent-%COMP%]{font:var(--tui-font-text-m);margin-left:.75rem}"],changeDetection:0}),t})(),A=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[O.ez,r.u5,P]]}),t})()},21673:function(t,e,n){"use strict";n.d(e,{K3:function(){return y},wU:function(){return b},Qf:function(){return w}});var i=n(74788),r=n(87862),o=n(221),s=n(76480),a=n(57179),l=n(99434),c=n(23917),u=n(94853),h=n(79588),d=n(75111),p=n(79456),f=n(43631),g=n(93213),m=n(12057);const v=["*",[["input"]]],_=["*","input"];let y=(()=>{class t extends s.M${constructor(t,e,n){super(t,e),this.textfieldSize=n,this.open=!1}get size(){return this.textfieldSize.size}get nativeFocusableElement(){return this.computedDisabled||!this.textfield?null:this.textfield.nativeFocusableElement}get focused(){return(0,a.V8)(this.nativeFocusableElement)||!!this.hostedDropdown&&this.hostedDropdown.focused}get canOpen(){return this.interactive&&!!this.datalist}onValueChange(t){this.value=t,this.open=!0}onActiveZone(t){this.updateFocused(t)}handleOption(t){this.setNativeValue(String(t)),this.focusInput(),this.value=String(t),this.open=!1}getFallbackValue(){return""}focusInput(t=!1){this.nativeFocusableElement&&this.nativeFocusableElement.focus({preventScroll:t})}setNativeValue(t){this.nativeFocusableElement&&(this.nativeFocusableElement.value=t)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(r.a5,10),i.Y36(i.sBO),i.Y36(h.kI))},t.\u0275cmp=i.Xpm({type:t,selectors:[["tui-input"]],contentQueries:function(t,e,n){if(1&t&&i.Suo(n,d.gX,5,i.Rgc),2&t){let t;i.iGM(t=i.CRH())&&(e.datalist=t.first)}},viewQuery:function(t,e){if(1&t&&(i.Gf(c.o1,5),i.Gf(u.yc,5)),2&t){let t;i.iGM(t=i.CRH())&&(e.hostedDropdown=t.first),i.iGM(t=i.CRH())&&(e.textfield=t.first)}},hostVars:1,hostBindings:function(t,e){2&t&&i.uIk("data-size",e.size)},features:[i._Bn([g.E2,(0,l.FT)(t),(0,p.oE)(t),(0,s.wB)(t)],[g.yn]),i.qOj],ngContentSelectors:_,decls:4,vars:11,consts:[[1,"t-hosted",3,"canOpen","content","open","openChange","tuiActiveZoneChange"],["automation-id","tui-input__textfield",1,"t-textfield",3,"disabled","focusable","invalid","nativeId","pseudoFocus","pseudoHover","readOnly","value","valueChange"]],template:function(t,e){1&t&&(i.F$t(v),i.TgZ(0,"tui-hosted-dropdown",0),i.NdJ("openChange",function(t){return e.open=t})("tuiActiveZoneChange",function(t){return e.onActiveZone(t)}),i.TgZ(1,"tui-primitive-textfield",1),i.NdJ("valueChange",function(t){return e.onValueChange(t)}),i.Hsn(2),i.Hsn(3,1,["ngProjectAs","input",5,["input"]]),i.qZA(),i.qZA()),2&t&&(i.Q6J("canOpen",e.canOpen)("content",e.datalist||"")("open",e.open),i.xp6(1),i.Q6J("disabled",e.computedDisabled)("focusable",e.computedFocusable)("invalid",e.computedInvalid)("nativeId",e.nativeId)("pseudoFocus",e.computedFocused)("pseudoHover",e.pseudoHover)("readOnly",e.readOnly)("value",e.value))},directives:[c.o1,o.e,u.yc,u.B1],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--tui-radius-m);text-align:left}._disabled[_nghost-%COMP%]{pointer-events:none}.t-hosted[_ngcontent-%COMP%]{display:block;border-radius:inherit}.t-textfield[_ngcontent-%COMP%]{border-radius:inherit;text-align:inherit}"],changeDetection:0}),t})(),b=(()=>{class t extends f.D1{onValueChange(t){this.host.onValueChange(t)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=i.n5z(t)))(n||t)}}(),t.\u0275dir=i.lG2({type:t,selectors:[["tui-input"]],features:[i._Bn([(0,p.cp)(t)]),i.qOj]}),t})(),w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({imports:[[m.ez,o.A,u.KW,c.jh]]}),t})()},93213:function(t,e,n){"use strict";n.d(e,{yn:function(){return l},E2:function(){return c}});var i=n(74788),r=n(79456);n(88002);var o=n(98952),s=(n(75046),n(25917),n(54487)),a=n(87862);const l=(0,o.fx)({limitWidth:"fixed",align:"right"}),c={provide:r.sE,deps:[[new i.FiY,new i.PiD,a.JU]],useFactory:s.y}},75046:function(t,e,n){"use strict";n.d(e,{UV:function(){return _},Ys:function(){return b},RZ:function(){return w},ue:function(){return v},WO:function(){return C},Z4:function(){return x}});var i=n(74788),r=n(33770),o=n(11927),s=(n(18939),n(36424)),a=n(27788),l=n(85648);const c=12;(0,o.JN)("DMY"),(0,o.JN)(".");class u{constructor(t){this.year=t}static isValidYear(t){return Number.isInteger(t)&&(0,l.wf)(t,0,1e4)}static isLeapYear(t){return t%400==0||t%4==0&&t%100!=0}static getAbsoluteLeapYears(t){return Math.ceil(t/400)+(Math.ceil(t/4)-Math.ceil(t/100))}static lengthBetween(t,e){return e.year-t.year}static normalizeYearPart(t){return(0,l.G1)(t,0,9999)}get formattedYear(){return String(this.year).padStart(4,"0")}get isLeapYear(){return u.isLeapYear(this.year)}get absoluteLeapYears(){return u.getAbsoluteLeapYears(this.year)}yearBefore({year:t}){return this.year=t}yearAfter({year:t}){return this.year>t}append({year:t=0}){return new u(this.year+t)}toString(){return this.formattedYear}valueOf(){return this.year}[Symbol.toPrimitive](t){return Date.prototype[Symbol.toPrimitive].call(this,t)}toJSON(){return this.formattedYear}}class h extends u{constructor(t,e){super(t),this.month=e}static isValidMonth(t,e){return u.isValidYear(t)&&h.isValidMonthPart(e)}static getMonthDaysCount(t,e){switch(t){case s.B.February:return e?29:28;case s.B.April:case s.B.June:case s.B.September:case s.B.November:return 30;default:return 31}}static currentLocal(){const t=new Date;return new h(t.getFullYear(),t.getMonth())}static currentUtc(){const t=new Date;return new h(t.getUTCFullYear(),t.getUTCMonth())}static lengthBetween(t,e){return e.month+12*e.year-(t.month+12*t.year)}static normalizeMonthPart(t){return(0,l.G1)(t,0,11)}static isValidMonthPart(t){return Number.isInteger(t)&&(0,l.wf)(t,0,12)}get formattedMonthPart(){return String(this.month+1).padStart(2,"0")}get daysCount(){return h.getMonthDaysCount(this.month,this.isLeapYear)}monthBefore(t){return this.yearBefore(t)||this.yearSame(t)&&this.month=t.month}monthAfter(t){return this.yearAfter(t)||this.yearSame(t)&&this.month>t.month}append({year:t=0,month:e=0}){const n=(this.year+t)*c+this.month+e;return new h(Math.floor(n/c),n%c)}toString(){return`${this.formattedMonthPart}.${this.formattedYear}`}valueOf(){return this.toLocalNativeDate().valueOf()}toJSON(){return`${super.toJSON()}-${this.formattedMonthPart}`}toLocalNativeDate(){return new Date(this.year,this.month)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month))}}class d extends h{constructor(t,e,n){super(t,e),this.day=n}static fromLocalNativeDate(t){return new d(t.getFullYear(),t.getMonth(),t.getDate())}static fromUtcNativeDate(t){return new d(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}static isValidDay(t,e,n){return h.isValidMonth(t,e)&&Number.isInteger(n)&&(0,l.wf)(n,1,h.getMonthDaysCount(e,u.isLeapYear(t))+1)}static currentLocal(){const t=new Date,e=t.getFullYear(),n=t.getMonth(),i=t.getDate();return new d(e,n,i)}static currentUtc(){const t=new Date,e=t.getUTCFullYear(),n=t.getUTCMonth(),i=t.getUTCDate();return new d(e,n,i)}static normalizeOf(t,e,n){const i=u.normalizeYearPart(t),r=h.normalizeMonthPart(e),o=d.normalizeDayPart(n,r,i);return new d(i,r,o)}static lengthBetween(t,e){return Math.round((e.toLocalNativeDate().getTime()-t.toLocalNativeDate().getTime())/864e5)}static parseRawDateString(t,e="DMY"){switch(e){case"YMD":return{day:parseInt(t.slice(8,10),10),month:parseInt(t.slice(5,7),10)-1,year:parseInt(t.slice(0,4),10)};case"MDY":return{day:parseInt(t.slice(3,5),10),month:parseInt(t.slice(0,2),10)-1,year:parseInt(t.slice(6,10),10)};default:return{day:parseInt(t.slice(0,2),10),month:parseInt(t.slice(3,5),10)-1,year:parseInt(t.slice(6,10),10)}}}static normalizeParse(t,e="DMY"){const{day:n,month:i,year:r}=this.parseRawDateString(t,e);return d.normalizeOf(r,i,n)}static jsonParse(t){const{day:e,month:n,year:i}=this.parseRawDateString(t,"YMD");if(!u.isValidYear(i))throw new a.JY(i);if(!h.isValidMonth(i,n))throw new a.AM(n);if(!Number.isInteger(e)||!(0,l.wf)(e,1,h.getMonthDaysCount(n,u.isLeapYear(i))+1))throw new a.I4(e);return new d(i,n,e)}static normalizeDayPart(t,e,n){const i=h.getMonthDaysCount(e,u.isLeapYear(n));return(0,l.G1)(t,1,i)}get formattedDayPart(){return String(this.day).padStart(2,"0")}get isWeekend(){const t=this.dayOfWeek(!1);return t===s.L.Saturday||t===s.L.Sunday}dayOfWeek(t=!0){const e=t?this.toLocalNativeDate().getDay()-1:this.toLocalNativeDate().getDay();return e<0?6:e}dayBefore(t){return this.monthBefore(t)||this.monthSame(t)&&this.day=t.day}dayAfter(t){return this.monthAfter(t)||this.monthSame(t)&&this.day>t.day}dayLimit(t,e){return null!==t&&this.dayBefore(t)?t:null!==e&&this.dayAfter(e)?e:this}append({year:t=0,month:e=0,day:n=0}){const i=(this.year+t)*c+this.month+e;let r=Math.floor(i/c),o=i%c,a=Math.min(this.day,h.getMonthDaysCount(o,u.isLeapYear(r)))+n;for(;a>h.getMonthDaysCount(o,u.isLeapYear(r));)a-=h.getMonthDaysCount(o,u.isLeapYear(r)),o===s.B.December?(r++,o=s.B.January):o++;for(;a<1;)o===s.B.January?(r--,o=s.B.December):o--,a+=h.getMonthDaysCount(o,u.isLeapYear(r));return new d(r,o,a)}getFormattedDay(t,e){const n=this.formattedDayPart,i=this.formattedMonthPart,r=this.formattedYear;switch(t){case"YMD":return`${r}${e}${i}${e}${n}`;case"MDY":return`${i}${e}${n}${e}${r}`;default:return`${n}${e}${i}${e}${r}`}}toString(t="DMY",e="."){return this.getFormattedDay(t,e)}toJSON(){return`${super.toJSON()}-${this.formattedDayPart}`}toLocalNativeDate(){return new Date(this.year,this.month,this.day)}toUtcNativeDate(){return new Date(Date.UTC(this.year,this.month,this.day))}}const p=new d(0,0,1),f=new d(9999,11,31);Symbol;var g=n(31081),m=n(47232);new i.OlP("[TUI_CALENDAR_DATE_STREAM]"),(0,o.JN)({[g.X.AD]:"+376###-###",[g.X.AE]:"+971-##-###-####",[g.X.AF]:"+93##-###-####",[g.X.AG]:"+1(268) ###-####",[g.X.AI]:"+1(264) ###-####",[g.X.AL]:"+355(###) ###-###",[g.X.AM]:"+374##-###-###",[g.X.AO]:"+244(###) ###-###",[g.X.AR]:"+54(###) ####-####",[g.X.AT]:"+43(###) ###-####",[g.X.AU]:"+61#-####-####",[g.X.AW]:"+297###-####",[g.X.AZ]:"+994##-###-##-##",[g.X.BA]:"+387 ###-####-##",[g.X.BB]:"+1(246) ###-####",[g.X.BD]:"+880##-###-###",[g.X.BE]:"+32(###) ###-###",[g.X.BF]:"+226##-##-####",[g.X.BG]:"+359(###) ###-###",[g.X.BH]:"+973####-####",[g.X.BI]:"+257##-##-####",[g.X.BJ]:"+229##-##-####",[g.X.BL]:"+590 ## ## ## ## ##",[g.X.BM]:"+1(441) ###-####",[g.X.BN]:"+673###-####",[g.X.BO]:"+591#-###-####",[g.X.BQ]:"+599-###-####",[g.X.BR]:"+55(##) ####-####",[g.X.BS]:"+1(242) ###-####",[g.X.BT]:"+975#-###-###",[g.X.BW]:"+267##-###-###",[g.X.BY]:"+375(##) ###-##-##",[g.X.BZ]:"+501###-####",[g.X.CA]:"+1(###) ###-####",[g.X.CD]:"+243(###) ###-###",[g.X.CF]:"+236-##-##-####",[g.X.CG]:"+242##-###-####",[g.X.CH]:"+41##-###-####",[g.X.CI]:"+225##-##-###-###",[g.X.CL]:"+56#-####-####",[g.X.CM]:"+237#####-####",[g.X.CN]:"+86(###) ####-####",[g.X.CO]:"+57(###) ###-####",[g.X.CR]:"+506####-####",[g.X.CU]:"+53#-###-####",[g.X.CV]:"+238(###) ##-##",[g.X.CW]:"+5999-###-####",[g.X.CY]:"+357##-###-###",[g.X.CZ]:"+420(###) ###-###",[g.X.DE]:"+49(###) ###-###-##",[g.X.DJ]:"+253##-##-##-##",[g.X.DK]:"+45##-##-##-##",[g.X.DM]:"+1(767) ###-####",[g.X.DO]:"+1(###) ###-####",[g.X.DZ]:"+213##-###-####",[g.X.EC]:"+593##-###-####",[g.X.EE]:"+372####-####",[g.X.EG]:"+20(###) ###-####",[g.X.ER]:"+291#-###-###",[g.X.ES]:"+34(###) ###-###",[g.X.ET]:"+251##-###-####",[g.X.FI]:"+358(###) ###-##-##",[g.X.FJ]:"+679##-#####",[g.X.FK]:"+500#####",[g.X.FM]:"+691###-####",[g.X.FR]:"+33 ## ## ## ## ##",[g.X.GA]:"+241##-##-##-##",[g.X.GB]:"+44##-####-####",[g.X.GD]:"+1(473) ###-####",[g.X.GE]:"+995(###) ###-###",[g.X.GF]:"+594 ## ## ## ## ##",[g.X.GH]:"+233(###) ###-###",[g.X.GI]:"+350###-#####",[g.X.GL]:"+299##-##-##",[g.X.GM]:"+220(###) ##-##",[g.X.GN]:"+224##-###-###",[g.X.GP]:"+590 ## ## ## ## ##",[g.X.GQ]:"+240##-###-####",[g.X.GR]:"+30(###) ###-####",[g.X.GT]:"+502#-###-####",[g.X.GW]:"+245#-######",[g.X.GY]:"+592###-####",[g.X.HK]:"+852####-####",[g.X.HN]:"+504####-####",[g.X.HR]:"+385##-###-####",[g.X.HT]:"+509##-##-####",[g.X.HU]:"+36(###) ###-###",[g.X.ID]:"+62(###) ###-##-###",[g.X.IE]:"+353(###) ###-###",[g.X.IL]:"+972##-###-####",[g.X.IN]:"+91(####) ###-###",[g.X.IQ]:"+964(###) ###-####",[g.X.IR]:"+98(###) ###-####",[g.X.IS]:"+354###-####",[g.X.IT]:"+39(###) ####-###",[g.X.JM]:"+1(876) ###-####",[g.X.JO]:"+962#-####-####",[g.X.JP]:"+81-##-####-####",[g.X.KE]:"+254###-######",[g.X.KG]:"+996(###) ###-###",[g.X.KH]:"+855##-###-###",[g.X.KM]:"+269##-#####",[g.X.KN]:"+1(869) ###-####",[g.X.KP]:"+850####-#############",[g.X.KR]:"+82##-###-####",[g.X.KW]:"+965####-####",[g.X.KY]:"+1(345) ###-####",[g.X.KZ]:"+7(###) ###-##-##",[g.X.LA]:"+856##-##-###-###",[g.X.LB]:"+961##-###-###",[g.X.LC]:"+1(758) ###-####",[g.X.LI]:"+423(###) ###-####",[g.X.LK]:"+94##-###-####",[g.X.LR]:"+231##-###-###",[g.X.LS]:"+266#-###-####",[g.X.LT]:"+370(###) ##-###",[g.X.LU]:"+352(###) ###-###",[g.X.LV]:"+371##-###-###",[g.X.LY]:"+218##-###-####",[g.X.MA]:"+212##-####-###",[g.X.MC]:"+377###-###-###",[g.X.MD]:"+373####-####",[g.X.ME]:"+382##-###-###",[g.X.MF]:"+590 ## ## ## ## ##",[g.X.MG]:"+261##-##-#####",[g.X.MK]:"+389##-###-###",[g.X.ML]:"+223##-##-####",[g.X.MM]:"+95##-###-###",[g.X.MN]:"+976##-##-####",[g.X.MO]:"+853####-####",[g.X.MQ]:"+596 ## ## ## ## ##",[g.X.MR]:"+222##-##-####",[g.X.MS]:"+1(664) ###-####",[g.X.MT]:"+356####-####",[g.X.MU]:"+230####-####",[g.X.MV]:"+960###-####",[g.X.MW]:"+265#-####-####",[g.X.MX]:"+52(###) ###-####",[g.X.MY]:"+60(###) ###-###",[g.X.MZ]:"+258##-###-###",[g.X.NA]:"+264##-###-####",[g.X.NC]:"+687 ### ###",[g.X.NE]:"+227##-##-####",[g.X.NG]:"+234(###) ###-####",[g.X.NI]:"+505####-####",[g.X.NL]:"+31##-###-####",[g.X.NO]:"+47(###) ##-###",[g.X.NP]:"+977##-###-###",[g.X.NZ]:"+64(###) ###-####",[g.X.OM]:"+968##-###-###",[g.X.PA]:"+507###-####",[g.X.PE]:"+51(###) ###-###",[g.X.PF]:"+689 ## ## ## ##",[g.X.PG]:"+675(###) ##-###",[g.X.PH]:"+63(###) ###-####",[g.X.PK]:"+92(###) ###-####",[g.X.PL]:"+48(###) ###-###",[g.X.PT]:"+351##-###-####",[g.X.PW]:"+680###-####",[g.X.PY]:"+595(###) ###-###",[g.X.QA]:"+974####-####",[g.X.RE]:"+262 ## ## ## ## ##",[g.X.RO]:"+40##-###-####",[g.X.RS]:"+381##-###-####",[g.X.RU]:"+7### ###-##-##",[g.X.RW]:"+250(###) ###-###",[g.X.SA]:"+966#-####-####",[g.X.SB]:"+677###-####",[g.X.SC]:"+248#-###-###",[g.X.SD]:"+249##-###-####",[g.X.SE]:"+46##-###-####",[g.X.SG]:"+65####-####",[g.X.SH]:"+290####",[g.X.SI]:"+386##-###-###",[g.X.SK]:"+421(###) ###-###",[g.X.SL]:"+232##-######",[g.X.SM]:"+378####-######",[g.X.SN]:"+221##-###-####",[g.X.SO]:"+252##-###-###",[g.X.SR]:"+597###-####",[g.X.ST]:"+239##-#####",[g.X.SV]:"+503##-##-####",[g.X.SX]:"+1(721) ###-####",[g.X.SY]:"+963##-####-###",[g.X.SZ]:"+268##-##-####",[g.X.TC]:"+1(649) ###-####",[g.X.TD]:"+235##-##-##-##",[g.X.TG]:"+228##-###-###",[g.X.TH]:"+66##-###-####",[g.X.TJ]:"+992##-###-####",[g.X.TL]:"+670###-#####",[g.X.TM]:"+993#-###-####",[g.X.TN]:"+216##-###-###",[g.X.TO]:"+676#####",[g.X.TR]:"+90(###) ###-####",[g.X.TT]:"+1(868) ###-####",[g.X.TW]:"+886#-####-####",[g.X.TZ]:"+255##-###-####",[g.X.UA]:"+380(##) ###-##-##",[g.X.UG]:"+256(###) ###-###",[g.X.US]:"+1(###) ###-####",[g.X.UY]:"+598#-###-##-##",[g.X.UZ]:"+998##-###-####",[g.X.VC]:"+1(784) ###-####",[g.X.VE]:"+58(###) ###-####",[g.X.VG]:"+1(284)###-####",[g.X.VN]:"+84(###) ####-###",[g.X.VU]:"+678##-#####",[g.X.WS]:"+685##-####",[g.X.XK]:"+383##-###-###",[g.X.YE]:"+967###-###-###",[g.X.YT]:"+262 ## ## ## ## ##",[g.X.ZA]:"+27##-###-####",[g.X.ZM]:"+260##-###-####",[g.X.ZW]:"+263#-######"}),new i.OlP("[TUI_DATE_VALUE_TRANSFORMER]"),new i.OlP("[TUI_DATE_RANGE_VALUE_TRANSFORMER]"),new i.OlP("[TUI_DATE_TIME_VALUE_TRANSFORMER]"),(0,o.N1)((0,m.v)("prompt")),(0,o.N1)((0,m.v)("cancel")),(0,o.N1)((0,m.v)("done"));const v=(0,o.N1)((0,m.v)("more")),_=((0,o.N1)((0,m.v)("hide")),(0,o.N1)((0,m.v)("showAll")),(0,o.N1)((0,m.v)("otherDate")),(0,o.N1)((0,m.v)("mobileCalendarTexts")),(0,o.N1)((0,m.v)("range")),(0,o.N1)((0,m.v)("countTexts")),(0,o.N1)((0,m.v)("time")),(0,o.N1)((0,m.v)("dateTexts")),(0,o.N1)((0,m.v)("digitalInformationUnits")),(0,o.N1)((0,m.v)("copyTexts"))),y=((0,o.N1)((0,m.v)("passwordTexts")),(0,o.N1)((0,m.v)("shortCalendarMonths")),(0,o.N1)((0,m.v)("fileTexts")),(0,o.N1)((0,m.v)("pagination")),(0,o.N1)((0,m.v)("inputFileTexts")),(0,o.N1)((0,m.v)("multiSelectTexts")),(0,o.N1)((0,m.v)("countries")),{icon:({$implicit:t})=>"s"===t?"tuiIconCalendar":"tuiIconCalendarLarge",min:p,max:f,nativePicker:!1});(0,o.JN)(y);const b=(0,o.JN)({stringify:r.yZ,identityMatcher:r.bg,disabledItemHandler:r.Iy});new i.OlP("[TUI_MOBILE_CALENDAR]");const w=new i.OlP("[TUI_MONTH_FORMATTER]"),C=(0,o.JN)(24),x=(0,o.JN)({})},11557:function(t,e,n){"use strict";n.d(e,{X1:function(){return C},Gt:function(){return w},uX:function(){return b}});var i=n(91211),r=n(74788),o=n(59193),s=n(22416),a=n(41439),l=n(77393);class c{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new u(t,this.predicate,this.inclusive))}}class u extends l.L{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}class h{supports(t){return t.includes(this.modifier)}addGlobalEventListener(){return()=>{}}unwrap(t){return t.split(".").filter(t=>!this.modifier.includes(t)).join(".")}}let d=(()=>{class t extends h{constructor(){super(...arguments),this.modifier="$"}addEventListener(t,e){t[e]=t[e]||o.E;const n=this.getMethod(t,e),i=this.manager.getZone().onStable,r=(0,s.z)(i.pipe(function(t,e=!1){return n=>n.lift(new c(t,e))}(()=>t[e]===o.E)),(0,a.P)(()=>t[e])).subscribe(n);return()=>r.unsubscribe()}getMethod(t,e){const[,n,i,r=""]=e.split(".");return e.endsWith(".attr")?e=>null===e?t.removeAttribute(n):t.setAttribute(n,String(e)):"class"===n?e=>t.classList.toggle(i,!!e):"style"===n?e=>t.style.setProperty(function(t){return t.replace(/[a-z][A-Z]/g,t=>`${t[0]}-${t[1].toLowerCase()}`)}(i),`${e}${r}`):e=>t[n]=e}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),p=(()=>{class t extends h{constructor(){super(...arguments),this.modifier="capture.once.passive"}supports(t){return t.includes(".")&&!this.unwrap(t).includes(".")}addEventListener(t,e,n){return t.addEventListener(this.unwrap(e),n,{once:e.includes(".once"),passive:e.includes(".passive"),capture:e.includes(".capture")}),()=>t.removeEventListener(this.unwrap(e),n)}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),f=(()=>{class t extends h{constructor(){super(...arguments),this.modifier=".prevent"}addEventListener(t,e,n){return this.manager.addEventListener(t,this.unwrap(e),t=>{t.preventDefault(),n(t)})}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends h{constructor(){super(...arguments),this.modifier=".self"}addEventListener(t,e,n){return this.manager.addEventListener(t,this.unwrap(e),t=>{t.target===t.currentTarget&&n(t)})}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),m=(()=>{class t extends h{constructor(){super(...arguments),this.modifier=".silent"}addEventListener(e,n,i){return t.ngZone=this.manager.getZone(),t.ngZone.runOutsideAngular(()=>this.manager.addEventListener(e,this.unwrap(n),i))}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),v=(()=>{class t extends h{constructor(){super(...arguments),this.modifier=".stop"}addEventListener(t,e,n){return this.manager.addEventListener(t,this.unwrap(e),t=>{t.stopPropagation(),n(t)})}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})(),_=(()=>{class t extends h{constructor(){super(...arguments),this.modifier=".init"}addEventListener(){return console.warn(".init plugin is no longer necessary as of v3.1.0"),()=>{}}}return t.\u0275fac=function(){let e;return function(n){return(e||(e=r.n5z(t)))(n||t)}}(),t.\u0275prov=r.Yz7({token:t,factory:t.\u0275fac}),t})();const y=[m,d,p,f,g,v,_].map(t=>({provide:i.s3,multi:!0,useClass:t}));function b(t){return(e,n,i)=>{const{value:r}=i;i.value=function(...e){!t.apply(this,e)||(m.ngZone?m.ngZone.run(()=>r.apply(this,e)):r.apply(this,e))}}}function w(t){return t}let C=(()=>{class t{constructor([e]){console.assert(!(e instanceof m)||t.initialized,"EventPluginsModule must come after BrowserModule in imports"),t.initialized=!0}}return t.initialized=!1,t.\u0275fac=function(e){return new(e||t)(r.LFG(i.s3))},t.\u0275mod=r.oAB({type:t}),t.\u0275inj=r.cJS({providers:y}),t})()},89570:function(t,e,n){"use strict";n.d(e,{yf:function(){return r},Al:function(){return o},wq:function(){return h},Li:function(){return l},GL:function(){return s}});var i=n(74788);const r=new i.OlP("POLYMORPHEUS_CONTEXT");class o{constructor(t,e){this.component=t,this.i=e}createInjector(t,e){return i.zs3.create({parent:this.i||t,providers:[{provide:r,useValue:e}]})}}let s=(()=>{class t{constructor(t,e){this.template=t,this.cdr=e,this.polymorpheus=""}check(){this.cdr.markForCheck()}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.Rgc,2),i.Y36(i.sBO))},t.\u0275dir=i.lG2({type:t,selectors:[["ng-template","polymorpheus",""]],inputs:{polymorpheus:"polymorpheus"},exportAs:["polymorpheus"]}),t})();class a{constructor(t){this.$implicit=t}get polymorpheusOutlet(){return this.$implicit}}let l=(()=>{class t{constructor(t,e,n){this.vcr=t,this.i=e,this.t=n,this.content=""}get template(){return c(this.content)?this.content.template:this.content instanceof i.Rgc?this.content:this.t}ngOnChanges({content:t}){var e;const n=this.getContext();this.v&&(this.v.context=n),null===(e=this.c)||void 0===e||e.injector.get(i.sBO).markForCheck(),t&&(this.vcr.clear(),u(this.content)?this.process(this.content):null!=(n instanceof a&&n.$implicit)&&(this.v=this.vcr.createEmbeddedView(this.template,n)))}ngDoCheck(){c(this.content)&&this.content.check()}static ngTemplateContextGuard(t,e){return!0}getContext(){return function(t){return c(t)||t instanceof i.Rgc}(this.content)||u(this.content)?this.context:new a("function"==typeof this.content?this.content(this.context):this.content)}process(t){const e=t.createInjector(this.i,this.context&&new Proxy(this.context,{get:(t,e)=>{var n;return null===(n=this.context)||void 0===n?void 0:n[e]}}));this.c=this.vcr.createComponent(e.get(i._Vd).resolveComponentFactory(t.component),0,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Y36(i.s_b),i.Y36(i.zs3),i.Y36(i.Rgc))},t.\u0275dir=i.lG2({type:t,selectors:[["","polymorpheusOutlet",""]],inputs:{content:["polymorpheusOutlet","content"],context:["polymorpheusOutletContext","context"]},features:[i.TTD]}),t})();function c(t){return t instanceof s}function u(t){return t instanceof o}let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i.oAB({type:t}),t.\u0275inj=i.cJS({}),t})()},23358:function(t){t.exports=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,n){return(e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(v){return!1}}function i(t,r,o){return(i=n()?Reflect.construct:function(t,n,i){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(t,r));return i&&e(o,i.prototype),o}).apply(null,arguments)}function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1?n-1:0),r=1;r/gm),U=d(/\${[\w\W]*}/gm),H=d(/^data-[\-\w.\u00B7-\uFFFF]/),G=d(/^aria-[\-\w]+$/),J=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),X=d(/^(?:\w+script|data):/i),Q=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),W=d(/^html$/i),K=function(){return"undefined"==typeof window?null:window},tt=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var i=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(i=n.currentScript.getAttribute(r));var o="dompurify"+(i?"#"+i:"");try{return e.createPolicy(o,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(s){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),i=function(t){return e(t)};if(i.version="2.4.7",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;var o=n.document,s=n.document,a=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,u=n.Element,d=n.NodeFilter,p=n.NamedNodeMap,f=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,g=n.HTMLFormElement,m=n.DOMParser,v=n.trustedTypes,E=u.prototype,et=I(E,"cloneNode"),nt=I(E,"nextSibling"),it=I(E,"childNodes"),rt=I(E,"parentNode");if("function"==typeof l){var ot=s.createElement("template");ot.content&&ot.content.ownerDocument&&(s=ot.content.ownerDocument)}var st=tt(v,o),at=st?st.createHTML(""):"",lt=s.implementation,ct=s.createNodeIterator,ut=s.createDocumentFragment,ht=s.getElementsByTagName,dt=o.importNode,pt={};try{pt=A(s).documentMode?s.documentMode:{}}catch(Ie){}var ft={};i.isSupported="function"==typeof rt&<&&void 0!==lt.createHTMLDocument&&9!==pt;var gt,mt,vt=q,_t=Y,yt=U,bt=H,wt=G,Ct=X,xt=Q,kt=J,Ot=null,Mt=T({},[].concat(r(D),r(N),r(L),r(F),r(j))),St=null,Pt=T({},[].concat(r(B),r(V),r($),r(Z))),Et=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Tt=null,At=null,It=!0,Dt=!0,Nt=!1,Lt=!0,zt=!1,Ft=!1,Rt=!1,jt=!1,Bt=!1,Vt=!1,$t=!1,Zt=!0,qt=!1,Yt="user-content-",Ut=!0,Ht=!1,Gt={},Jt=null,Xt=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qt=null,Wt=T({},["audio","video","img","source","image","track"]),Kt=null,te=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ee="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml",re=ie,oe=!1,se=null,ae=T({},[ee,ne,ie],C),le=["application/xhtml+xml","text/html"],ce="text/html",ue=null,he=s.createElement("form"),de=function(t){return t instanceof RegExp||t instanceof Function},pe=function(e){ue&&ue===e||((!e||"object"!==t(e))&&(e={}),e=A(e),gt=gt=-1===le.indexOf(e.PARSER_MEDIA_TYPE)?ce:e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===gt?C:w,Ot="ALLOWED_TAGS"in e?T({},e.ALLOWED_TAGS,mt):Mt,St="ALLOWED_ATTR"in e?T({},e.ALLOWED_ATTR,mt):Pt,se="ALLOWED_NAMESPACES"in e?T({},e.ALLOWED_NAMESPACES,C):ae,Kt="ADD_URI_SAFE_ATTR"in e?T(A(te),e.ADD_URI_SAFE_ATTR,mt):te,Qt="ADD_DATA_URI_TAGS"in e?T(A(Wt),e.ADD_DATA_URI_TAGS,mt):Wt,Jt="FORBID_CONTENTS"in e?T({},e.FORBID_CONTENTS,mt):Xt,Tt="FORBID_TAGS"in e?T({},e.FORBID_TAGS,mt):{},At="FORBID_ATTR"in e?T({},e.FORBID_ATTR,mt):{},Gt="USE_PROFILES"in e&&e.USE_PROFILES,It=!1!==e.ALLOW_ARIA_ATTR,Dt=!1!==e.ALLOW_DATA_ATTR,Nt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,zt=e.SAFE_FOR_TEMPLATES||!1,Ft=e.WHOLE_DOCUMENT||!1,Bt=e.RETURN_DOM||!1,Vt=e.RETURN_DOM_FRAGMENT||!1,$t=e.RETURN_TRUSTED_TYPE||!1,jt=e.FORCE_BODY||!1,Zt=!1!==e.SANITIZE_DOM,qt=e.SANITIZE_NAMED_PROPS||!1,Ut=!1!==e.KEEP_CONTENT,Ht=e.IN_PLACE||!1,kt=e.ALLOWED_URI_REGEXP||kt,re=e.NAMESPACE||ie,Et=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&de(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Et.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&de(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Et.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Et.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),zt&&(Dt=!1),Vt&&(Bt=!0),Gt&&(Ot=T({},r(j)),St=[],!0===Gt.html&&(T(Ot,D),T(St,B)),!0===Gt.svg&&(T(Ot,N),T(St,V),T(St,Z)),!0===Gt.svgFilters&&(T(Ot,L),T(St,V),T(St,Z)),!0===Gt.mathMl&&(T(Ot,F),T(St,$),T(St,Z))),e.ADD_TAGS&&(Ot===Mt&&(Ot=A(Ot)),T(Ot,e.ADD_TAGS,mt)),e.ADD_ATTR&&(St===Pt&&(St=A(St)),T(St,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&T(Kt,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Jt===Xt&&(Jt=A(Jt)),T(Jt,e.FORBID_CONTENTS,mt)),Ut&&(Ot["#text"]=!0),Ft&&T(Ot,["html","head","body"]),Ot.table&&(T(Ot,["tbody"]),delete Tt.tbody),h&&h(e),ue=e)},fe=T({},["mi","mo","mn","ms","mtext"]),ge=T({},["foreignobject","desc","title","annotation-xml"]),me=T({},["title","style","font","a","script"]),ve=T({},N);T(ve,L),T(ve,z);var _e=T({},F);T(_e,R);var ye=function(t){var e=rt(t);(!e||!e.tagName)&&(e={namespaceURI:re,tagName:"template"});var n=w(t.tagName),i=w(e.tagName);return!!se[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===ie?"svg"===n:e.namespaceURI===ee?"svg"===n&&("annotation-xml"===i||fe[i]):Boolean(ve[n]):t.namespaceURI===ee?e.namespaceURI===ie?"math"===n:e.namespaceURI===ne?"math"===n&&ge[i]:Boolean(_e[n]):t.namespaceURI===ie?!(e.namespaceURI===ne&&!ge[i]||e.namespaceURI===ee&&!fe[i])&&!_e[n]&&(me[n]||!ve[n]):!("application/xhtml+xml"!==gt||!se[t.namespaceURI]))},be=function(t){b(i.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=at}catch(n){t.remove()}}},we=function(t,e){try{b(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(n){b(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!St[t])if(Bt||Vt)try{be(e)}catch(n){}else try{e.setAttribute(t,"")}catch(n){}},Ce=function(t){var e,n;if(jt)t=""+t;else{var i=x(t,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===gt&&re===ie&&(t=''+t+"");var r=st?st.createHTML(t):t;if(re===ie)try{e=(new m).parseFromString(r,gt)}catch(a){}if(!e||!e.documentElement){e=lt.createDocument(re,"template",null);try{e.documentElement.innerHTML=oe?at:r}catch(a){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),re===ie?ht.call(e,Ft?"html":"body")[0]:Ft?e.documentElement:o},xe=function(t){return ct.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},ke=function(t){return t instanceof g&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Oe=function(e){return"object"===t(c)?e instanceof c:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(t,e,n){!ft[t]||_(ft[t],function(t){t.call(i,e,n,ue)})},Se=function(t){var e;if(Me("beforeSanitizeElements",t,null),ke(t)||S(/[\u0080-\uFFFF]/,t.nodeName))return be(t),!0;var n=mt(t.nodeName);if(Me("uponSanitizeElement",t,{tagName:n,allowedTags:Ot}),t.hasChildNodes()&&!Oe(t.firstElementChild)&&(!Oe(t.content)||!Oe(t.content.firstElementChild))&&S(/<[/\w]/g,t.innerHTML)&&S(/<[/\w]/g,t.textContent)||"select"===n&&S(/