Bläddra i källkod

Initial commit of VC project

0235474 1 vecka sedan
incheckning
6c6797e7a7
100 ändrade filer med 25627 tillägg och 0 borttagningar
  1. 23 0
      .gitignore
  2. 0 0
      README.md
  3. 1 0
      card
  4. 92 0
      node_modules/.package-lock.json
  5. 21 0
      node_modules/@angular/animations/LICENSE
  6. 8 0
      node_modules/@angular/animations/README.md
  7. 65 0
      node_modules/@angular/animations/animation_driver.d.d.ts
  8. 1407 0
      node_modules/@angular/animations/animation_player.d.d.ts
  9. 275 0
      node_modules/@angular/animations/browser/index.d.ts
  10. 49 0
      node_modules/@angular/animations/browser/testing/index.d.ts
  11. 209 0
      node_modules/@angular/animations/fesm2022/animations.mjs
  12. 0 0
      node_modules/@angular/animations/fesm2022/animations.mjs.map
  13. 4170 0
      node_modules/@angular/animations/fesm2022/browser.mjs
  14. 0 0
      node_modules/@angular/animations/fesm2022/browser.mjs.map
  15. 126 0
      node_modules/@angular/animations/fesm2022/browser/testing.mjs
  16. 0 0
      node_modules/@angular/animations/fesm2022/browser/testing.mjs.map
  17. 1176 0
      node_modules/@angular/animations/fesm2022/private_export.mjs
  18. 0 0
      node_modules/@angular/animations/fesm2022/private_export.mjs.map
  19. 697 0
      node_modules/@angular/animations/fesm2022/util.mjs
  20. 0 0
      node_modules/@angular/animations/fesm2022/util.mjs.map
  21. 246 0
      node_modules/@angular/animations/index.d.ts
  22. 63 0
      node_modules/@angular/animations/package.json
  23. 21 0
      node_modules/@angular/common/LICENSE
  24. 8 0
      node_modules/@angular/common/README.md
  25. 1968 0
      node_modules/@angular/common/common_module.d.d.ts
  26. 2047 0
      node_modules/@angular/common/fesm2022/common.mjs
  27. 0 0
      node_modules/@angular/common/fesm2022/common.mjs.map
  28. 96 0
      node_modules/@angular/common/fesm2022/common_module.mjs
  29. 0 0
      node_modules/@angular/common/fesm2022/common_module.mjs.map
  30. 416 0
      node_modules/@angular/common/fesm2022/http.mjs
  31. 0 0
      node_modules/@angular/common/fesm2022/http.mjs.map
  32. 361 0
      node_modules/@angular/common/fesm2022/http/testing.mjs
  33. 0 0
      node_modules/@angular/common/fesm2022/http/testing.mjs.map
  34. 637 0
      node_modules/@angular/common/fesm2022/location.mjs
  35. 0 0
      node_modules/@angular/common/fesm2022/location.mjs.map
  36. 3106 0
      node_modules/@angular/common/fesm2022/module.mjs
  37. 0 0
      node_modules/@angular/common/fesm2022/module.mjs.map
  38. 24 0
      node_modules/@angular/common/fesm2022/platform_navigation.mjs
  39. 0 0
      node_modules/@angular/common/fesm2022/platform_navigation.mjs.map
  40. 596 0
      node_modules/@angular/common/fesm2022/testing.mjs
  41. 0 0
      node_modules/@angular/common/fesm2022/testing.mjs.map
  42. 899 0
      node_modules/@angular/common/fesm2022/upgrade.mjs
  43. 0 0
      node_modules/@angular/common/fesm2022/upgrade.mjs.map
  44. 28 0
      node_modules/@angular/common/fesm2022/xhr.mjs
  45. 1 0
      node_modules/@angular/common/fesm2022/xhr.mjs.map
  46. 4099 0
      node_modules/@angular/common/http/index.d.ts
  47. 182 0
      node_modules/@angular/common/http/testing/index.d.ts
  48. 1241 0
      node_modules/@angular/common/index.d.ts
  49. 22 0
      node_modules/@angular/common/locales/af-NA.d.ts
  50. 17 0
      node_modules/@angular/common/locales/af-NA.js
  51. 0 0
      node_modules/@angular/common/locales/af-NA.js.map
  52. 21 0
      node_modules/@angular/common/locales/af.d.ts
  53. 17 0
      node_modules/@angular/common/locales/af.js
  54. 0 0
      node_modules/@angular/common/locales/af.js.map
  55. 13 0
      node_modules/@angular/common/locales/agq.d.ts
  56. 15 0
      node_modules/@angular/common/locales/agq.js
  57. 0 0
      node_modules/@angular/common/locales/agq.js.map
  58. 14 0
      node_modules/@angular/common/locales/ak.d.ts
  59. 17 0
      node_modules/@angular/common/locales/ak.js
  60. 0 0
      node_modules/@angular/common/locales/ak.js.map
  61. 20 0
      node_modules/@angular/common/locales/am.d.ts
  62. 17 0
      node_modules/@angular/common/locales/am.js
  63. 0 0
      node_modules/@angular/common/locales/am.js.map
  64. 62 0
      node_modules/@angular/common/locales/ar-AE.d.ts
  65. 23 0
      node_modules/@angular/common/locales/ar-AE.js
  66. 0 0
      node_modules/@angular/common/locales/ar-AE.js.map
  67. 63 0
      node_modules/@angular/common/locales/ar-BH.d.ts
  68. 23 0
      node_modules/@angular/common/locales/ar-BH.js
  69. 0 0
      node_modules/@angular/common/locales/ar-BH.js.map
  70. 64 0
      node_modules/@angular/common/locales/ar-DJ.d.ts
  71. 23 0
      node_modules/@angular/common/locales/ar-DJ.js
  72. 0 0
      node_modules/@angular/common/locales/ar-DJ.js.map
  73. 63 0
      node_modules/@angular/common/locales/ar-DZ.d.ts
  74. 23 0
      node_modules/@angular/common/locales/ar-DZ.js
  75. 0 0
      node_modules/@angular/common/locales/ar-DZ.js.map
  76. 63 0
      node_modules/@angular/common/locales/ar-EG.d.ts
  77. 23 0
      node_modules/@angular/common/locales/ar-EG.js
  78. 0 0
      node_modules/@angular/common/locales/ar-EG.js.map
  79. 63 0
      node_modules/@angular/common/locales/ar-EH.d.ts
  80. 23 0
      node_modules/@angular/common/locales/ar-EH.js
  81. 0 0
      node_modules/@angular/common/locales/ar-EH.js.map
  82. 64 0
      node_modules/@angular/common/locales/ar-ER.d.ts
  83. 23 0
      node_modules/@angular/common/locales/ar-ER.js
  84. 0 0
      node_modules/@angular/common/locales/ar-ER.js.map
  85. 63 0
      node_modules/@angular/common/locales/ar-IL.d.ts
  86. 23 0
      node_modules/@angular/common/locales/ar-IL.js
  87. 0 0
      node_modules/@angular/common/locales/ar-IL.js.map
  88. 63 0
      node_modules/@angular/common/locales/ar-IQ.d.ts
  89. 23 0
      node_modules/@angular/common/locales/ar-IQ.js
  90. 0 0
      node_modules/@angular/common/locales/ar-IQ.js.map
  91. 63 0
      node_modules/@angular/common/locales/ar-JO.d.ts
  92. 23 0
      node_modules/@angular/common/locales/ar-JO.js
  93. 0 0
      node_modules/@angular/common/locales/ar-JO.js.map
  94. 64 0
      node_modules/@angular/common/locales/ar-KM.d.ts
  95. 23 0
      node_modules/@angular/common/locales/ar-KM.js
  96. 0 0
      node_modules/@angular/common/locales/ar-KM.js.map
  97. 63 0
      node_modules/@angular/common/locales/ar-KW.d.ts
  98. 23 0
      node_modules/@angular/common/locales/ar-KW.js
  99. 0 0
      node_modules/@angular/common/locales/ar-KW.js.map
  100. 62 0
      node_modules/@angular/common/locales/ar-LB.d.ts

+ 23 - 0
.gitignore

@@ -0,0 +1,23 @@
+# Visual Studio项目文件
+*.vcxproj
+*.vcxproj.filters
+*.vcxproj.user
+*.sln
+*.suo
+*.sdf
+*.opensdf
+*.pdb
+*.ipch
+*.obj
+*.tlog
+*.lastbuildstate
+*.idb
+*.exp
+*.ilk
+*.cache
+*.log
+/build/
+/Debug/
+/Release/
+/x64/
+/x86/

+ 0 - 0
README.md


+ 1 - 0
card

@@ -0,0 +1 @@
+Subproject commit 306ad357337d8ef95c07dbe61088272f3810b9d2

+ 92 - 0
node_modules/.package-lock.json

@@ -0,0 +1,92 @@
+{
+  "name": "workspace",
+  "lockfileVersion": 3,
+  "requires": true,
+  "packages": {
+    "node_modules/@angular/animations": {
+      "version": "20.1.0",
+      "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-20.1.0.tgz",
+      "integrity": "sha512-5ILngsvu5VPQYaIm7lRyegZaDaAEtLUIPSS8h1dzWPaCxBIJ4uwzx9RDMiF32zhbxi+q0mAO2w2FdDlzWTT3og==",
+      "license": "MIT",
+      "dependencies": {
+        "tslib": "^2.3.0"
+      },
+      "engines": {
+        "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+      },
+      "peerDependencies": {
+        "@angular/common": "20.1.0",
+        "@angular/core": "20.1.0"
+      }
+    },
+    "node_modules/@angular/common": {
+      "version": "20.1.0",
+      "resolved": "https://registry.npmjs.org/@angular/common/-/common-20.1.0.tgz",
+      "integrity": "sha512-RsHClHJux+4lXrHdGHVw22wekRbSjYtx6Xwjox2S+IRPP51CbX0KskAALZ9ZmtCttkYSFVtvr0S+SQrU2cu5WA==",
+      "license": "MIT",
+      "peer": true,
+      "dependencies": {
+        "tslib": "^2.3.0"
+      },
+      "engines": {
+        "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+      },
+      "peerDependencies": {
+        "@angular/core": "20.1.0",
+        "rxjs": "^6.5.3 || ^7.4.0"
+      }
+    },
+    "node_modules/@angular/core": {
+      "version": "20.1.0",
+      "resolved": "https://registry.npmjs.org/@angular/core/-/core-20.1.0.tgz",
+      "integrity": "sha512-/dJooZi+OAACkjWgGMPrOOGikdtlTJXwdeXPJTgZSUD5L8oQMbhZFG0XW/1Hldvsti87wPjZPz67ivB7zR86VA==",
+      "license": "MIT",
+      "peer": true,
+      "dependencies": {
+        "tslib": "^2.3.0"
+      },
+      "engines": {
+        "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+      },
+      "peerDependencies": {
+        "@angular/compiler": "20.1.0",
+        "rxjs": "^6.5.3 || ^7.4.0",
+        "zone.js": "~0.15.0"
+      },
+      "peerDependenciesMeta": {
+        "@angular/compiler": {
+          "optional": true
+        },
+        "zone.js": {
+          "optional": true
+        }
+      }
+    },
+    "node_modules/@ionic/pwa-elements": {
+      "version": "3.3.0",
+      "resolved": "https://registry.npmjs.org/@ionic/pwa-elements/-/pwa-elements-3.3.0.tgz",
+      "integrity": "sha512-vbykpxd2nGRlA67AnqDwsiVf8PUmInLyi6lQdnPDjeiML1WZa0CPe6r632nGDV9PTi+sWNde9Xexg9SD6Pwyqw==",
+      "license": "MIT",
+      "engines": {
+        "node": ">=16.0.0",
+        "npm": ">=8.0.0"
+      }
+    },
+    "node_modules/rxjs": {
+      "version": "7.8.2",
+      "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz",
+      "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",
+      "license": "Apache-2.0",
+      "peer": true,
+      "dependencies": {
+        "tslib": "^2.1.0"
+      }
+    },
+    "node_modules/tslib": {
+      "version": "2.8.1",
+      "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+      "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+      "license": "0BSD"
+    }
+  }
+}

+ 21 - 0
node_modules/@angular/animations/LICENSE

@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

+ 8 - 0
node_modules/@angular/animations/README.md

@@ -0,0 +1,8 @@
+Angular
+=======
+
+The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
+
+Usage information and reference details can be found in [Angular documentation](https://angular.dev/overview).
+
+License: MIT

+ 65 - 0
node_modules/@angular/animations/animation_driver.d.d.ts

@@ -0,0 +1,65 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { AnimationPlayer } from './animation_player.d.js';
+
+/**
+ * @publicApi
+ *
+ * `AnimationDriver` implentation for Noop animations
+ */
+declare class NoopAnimationDriver implements AnimationDriver {
+    /**
+     * @returns Whether `prop` is a valid CSS property
+     */
+    validateStyleProperty(prop: string): boolean;
+    /**
+     *
+     * @returns Whether elm1 contains elm2.
+     */
+    containsElement(elm1: any, elm2: any): boolean;
+    /**
+     * @returns Rhe parent of the given element or `null` if the element is the `document`
+     */
+    getParentElement(element: unknown): unknown;
+    /**
+     * @returns The result of the query selector on the element. The array will contain up to 1 item
+     *     if `multi` is  `false`.
+     */
+    query(element: any, selector: string, multi: boolean): any[];
+    /**
+     * @returns The `defaultValue` or empty string
+     */
+    computeStyle(element: any, prop: string, defaultValue?: string): string;
+    /**
+     * @returns An `NoopAnimationPlayer`
+     */
+    animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing: string, previousPlayers?: any[], scrubberAccessRequested?: boolean): AnimationPlayer;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NoopAnimationDriver, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<NoopAnimationDriver>;
+}
+/**
+ * @publicApi
+ */
+declare abstract class AnimationDriver {
+    /**
+     * @deprecated Use the NoopAnimationDriver class.
+     */
+    static NOOP: AnimationDriver;
+    abstract validateStyleProperty(prop: string): boolean;
+    abstract validateAnimatableStyleProperty?: (prop: string) => boolean;
+    abstract containsElement(elm1: any, elm2: any): boolean;
+    /**
+     * Obtains the parent element, if any. `null` is returned if the element does not have a parent.
+     */
+    abstract getParentElement(element: unknown): unknown;
+    abstract query(element: any, selector: string, multi: boolean): any[];
+    abstract computeStyle(element: any, prop: string, defaultValue?: string): string;
+    abstract animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing?: string | null, previousPlayers?: any[], scrubberAccessRequested?: boolean): any;
+}
+
+export { AnimationDriver, NoopAnimationDriver };

+ 1407 - 0
node_modules/@angular/animations/animation_player.d.d.ts

@@ -0,0 +1,1407 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+/**
+ * Represents a set of CSS styles for use in an animation style as a generic.
+ */
+interface ɵStyleData {
+    [key: string]: string | number;
+}
+/**
+ * Represents a set of CSS styles for use in an animation style as a Map.
+ */
+type ɵStyleDataMap = Map<string, string | number>;
+/**
+ * Represents animation-step timing parameters for an animation step.
+ * @see {@link animate}
+ *
+ * @publicApi
+ */
+declare type AnimateTimings = {
+    /**
+     * The full duration of an animation step. A number and optional time unit,
+     * such as "1s" or "10ms" for one second and 10 milliseconds, respectively.
+     * The default unit is milliseconds.
+     */
+    duration: number;
+    /**
+     * The delay in applying an animation step. A number and optional time unit.
+     * The default unit is milliseconds.
+     */
+    delay: number;
+    /**
+     * An easing style that controls how an animations step accelerates
+     * and decelerates during its run time. An easing function such as `cubic-bezier()`,
+     * or one of the following constants:
+     * - `ease-in`
+     * - `ease-out`
+     * - `ease-in-and-out`
+     */
+    easing: string | null;
+};
+/**
+ * @description Options that control animation styling and timing.
+ *
+ * The following animation functions accept `AnimationOptions` data:
+ *
+ * - `transition()`
+ * - `sequence()`
+ * - `group()`
+ * - `query()`
+ * - `animation()`
+ * - `useAnimation()`
+ * - `animateChild()`
+ *
+ * Programmatic animations built using the `AnimationBuilder` service also
+ * make use of `AnimationOptions`.
+ *
+ * @publicApi
+ */
+declare interface AnimationOptions {
+    /**
+     * Sets a time-delay for initiating an animation action.
+     * A number and optional time unit, such as "1s" or "10ms" for one second
+     * and 10 milliseconds, respectively.The default unit is milliseconds.
+     * Default value is 0, meaning no delay.
+     */
+    delay?: number | string;
+    /**
+     * A set of developer-defined parameters that modify styling and timing
+     * when an animation action starts. An array of key-value pairs, where the provided value
+     * is used as a default.
+     */
+    params?: {
+        [name: string]: any;
+    };
+}
+/**
+ * Adds duration options to control animation styling and timing for a child animation.
+ *
+ * @see {@link animateChild}
+ *
+ * @publicApi
+ */
+declare interface AnimateChildOptions extends AnimationOptions {
+    duration?: number | string;
+}
+/**
+ * @description Constants for the categories of parameters that can be defined for animations.
+ *
+ * A corresponding function defines a set of parameters for each category, and
+ * collects them into a corresponding `AnimationMetadata` object.
+ *
+ * @publicApi
+ */
+declare enum AnimationMetadataType {
+    /**
+     * Associates a named animation state with a set of CSS styles.
+     * See [`state()`](api/animations/state)
+     */
+    State = 0,
+    /**
+     * Data for a transition from one animation state to another.
+     * See `transition()`
+     */
+    Transition = 1,
+    /**
+     * Contains a set of animation steps.
+     * See `sequence()`
+     */
+    Sequence = 2,
+    /**
+     * Contains a set of animation steps.
+     * See `group()`
+     */
+    Group = 3,
+    /**
+     * Contains an animation step.
+     * See `animate()`
+     */
+    Animate = 4,
+    /**
+     * Contains a set of animation steps.
+     * See `keyframes()`
+     */
+    Keyframes = 5,
+    /**
+     * Contains a set of CSS property-value pairs into a named style.
+     * See `style()`
+     */
+    Style = 6,
+    /**
+     * Associates an animation with an entry trigger that can be attached to an element.
+     * See `trigger()`
+     */
+    Trigger = 7,
+    /**
+     * Contains a re-usable animation.
+     * See `animation()`
+     */
+    Reference = 8,
+    /**
+     * Contains data to use in executing child animations returned by a query.
+     * See `animateChild()`
+     */
+    AnimateChild = 9,
+    /**
+     * Contains animation parameters for a re-usable animation.
+     * See `useAnimation()`
+     */
+    AnimateRef = 10,
+    /**
+     * Contains child-animation query data.
+     * See `query()`
+     */
+    Query = 11,
+    /**
+     * Contains data for staggering an animation sequence.
+     * See `stagger()`
+     */
+    Stagger = 12
+}
+/**
+ * Specifies automatic styling.
+ *
+ * @publicApi
+ */
+declare const AUTO_STYLE = "*";
+/**
+ * Base for animation data structures.
+ *
+ * @publicApi
+ */
+interface AnimationMetadata {
+    type: AnimationMetadataType;
+}
+/**
+ * Contains an animation trigger. Instantiated and returned by the
+ * `trigger()` function.
+ *
+ * @publicApi
+ */
+interface AnimationTriggerMetadata extends AnimationMetadata {
+    /**
+     * The trigger name, used to associate it with an element. Unique within the component.
+     */
+    name: string;
+    /**
+     * An animation definition object, containing an array of state and transition declarations.
+     */
+    definitions: AnimationMetadata[];
+    /**
+     * An options object containing a delay and
+     * developer-defined parameters that provide styling defaults and
+     * can be overridden on invocation. Default delay is 0.
+     */
+    options: {
+        params?: {
+            [name: string]: any;
+        };
+    } | null;
+}
+/**
+ * Encapsulates an animation state by associating a state name with a set of CSS styles.
+ * Instantiated and returned by the [`state()`](api/animations/state) function.
+ *
+ * @publicApi
+ */
+interface AnimationStateMetadata extends AnimationMetadata {
+    /**
+     * The state name, unique within the component.
+     */
+    name: string;
+    /**
+     *  The CSS styles associated with this state.
+     */
+    styles: AnimationStyleMetadata;
+    /**
+     * An options object containing
+     * developer-defined parameters that provide styling defaults and
+     * can be overridden on invocation.
+     */
+    options?: {
+        params: {
+            [name: string]: any;
+        };
+    };
+}
+/**
+ * Encapsulates an animation transition. Instantiated and returned by the
+ * `transition()` function.
+ *
+ * @publicApi
+ */
+interface AnimationTransitionMetadata extends AnimationMetadata {
+    /**
+     * An expression that describes a state change.
+     */
+    expr: string | ((fromState: string, toState: string, element?: any, params?: {
+        [key: string]: any;
+    }) => boolean);
+    /**
+     * One or more animation objects to which this transition applies.
+     */
+    animation: AnimationMetadata | AnimationMetadata[];
+    /**
+     * An options object containing a delay and
+     * developer-defined parameters that provide styling defaults and
+     * can be overridden on invocation. Default delay is 0.
+     */
+    options: AnimationOptions | null;
+}
+/**
+ * Encapsulates a reusable animation, which is a collection of individual animation steps.
+ * Instantiated and returned by the `animation()` function, and
+ * passed to the `useAnimation()` function.
+ *
+ * @publicApi
+ */
+interface AnimationReferenceMetadata extends AnimationMetadata {
+    /**
+     *  One or more animation step objects.
+     */
+    animation: AnimationMetadata | AnimationMetadata[];
+    /**
+     * An options object containing a delay and
+     * developer-defined parameters that provide styling defaults and
+     * can be overridden on invocation. Default delay is 0.
+     */
+    options: AnimationOptions | null;
+}
+/**
+ * Encapsulates an animation query. Instantiated and returned by
+ * the `query()` function.
+ *
+ * @publicApi
+ */
+interface AnimationQueryMetadata extends AnimationMetadata {
+    /**
+     *  The CSS selector for this query.
+     */
+    selector: string;
+    /**
+     * One or more animation step objects.
+     */
+    animation: AnimationMetadata | AnimationMetadata[];
+    /**
+     * A query options object.
+     */
+    options: AnimationQueryOptions | null;
+}
+/**
+ * Encapsulates a keyframes sequence. Instantiated and returned by
+ * the `keyframes()` function.
+ *
+ * @publicApi
+ */
+interface AnimationKeyframesSequenceMetadata extends AnimationMetadata {
+    /**
+     * An array of animation styles.
+     */
+    steps: AnimationStyleMetadata[];
+}
+/**
+ * Encapsulates an animation style. Instantiated and returned by
+ * the `style()` function.
+ *
+ * @publicApi
+ */
+interface AnimationStyleMetadata extends AnimationMetadata {
+    /**
+     * A set of CSS style properties.
+     */
+    styles: '*' | {
+        [key: string]: string | number;
+    } | Array<{
+        [key: string]: string | number;
+    } | '*'>;
+    /**
+     * A percentage of the total animate time at which the style is to be applied.
+     */
+    offset: number | null;
+}
+/**
+ * Encapsulates an animation step. Instantiated and returned by
+ * the `animate()` function.
+ *
+ * @publicApi
+ */
+interface AnimationAnimateMetadata extends AnimationMetadata {
+    /**
+     * The timing data for the step.
+     */
+    timings: string | number | AnimateTimings;
+    /**
+     * A set of styles used in the step.
+     */
+    styles: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null;
+}
+/**
+ * Encapsulates a child animation, that can be run explicitly when the parent is run.
+ * Instantiated and returned by the `animateChild` function.
+ *
+ * @publicApi
+ */
+interface AnimationAnimateChildMetadata extends AnimationMetadata {
+    /**
+     * An options object containing a delay and
+     * developer-defined parameters that provide styling defaults and
+     * can be overridden on invocation. Default delay is 0.
+     */
+    options: AnimationOptions | null;
+}
+/**
+ * Encapsulates a reusable animation.
+ * Instantiated and returned by the `useAnimation()` function.
+ *
+ * @publicApi
+ */
+interface AnimationAnimateRefMetadata extends AnimationMetadata {
+    /**
+     * An animation reference object.
+     */
+    animation: AnimationReferenceMetadata;
+    /**
+     * An options object containing a delay and
+     * developer-defined parameters that provide styling defaults and
+     * can be overridden on invocation. Default delay is 0.
+     */
+    options: AnimationOptions | null;
+}
+/**
+ * Encapsulates an animation sequence.
+ * Instantiated and returned by the `sequence()` function.
+ *
+ * @publicApi
+ */
+interface AnimationSequenceMetadata extends AnimationMetadata {
+    /**
+     *  An array of animation step objects.
+     */
+    steps: AnimationMetadata[];
+    /**
+     * An options object containing a delay and
+     * developer-defined parameters that provide styling defaults and
+     * can be overridden on invocation. Default delay is 0.
+     */
+    options: AnimationOptions | null;
+}
+/**
+ * Encapsulates an animation group.
+ * Instantiated and returned by the `group()` function.
+ *
+ * @publicApi
+ */
+interface AnimationGroupMetadata extends AnimationMetadata {
+    /**
+     * One or more animation or style steps that form this group.
+     */
+    steps: AnimationMetadata[];
+    /**
+     * An options object containing a delay and
+     * developer-defined parameters that provide styling defaults and
+     * can be overridden on invocation. Default delay is 0.
+     */
+    options: AnimationOptions | null;
+}
+/**
+ * Encapsulates animation query options.
+ * Passed to the `query()` function.
+ *
+ * @publicApi
+ */
+declare interface AnimationQueryOptions extends AnimationOptions {
+    /**
+     * True if this query is optional, false if it is required. Default is false.
+     * A required query throws an error if no elements are retrieved when
+     * the query is executed. An optional query does not.
+     *
+     */
+    optional?: boolean;
+    /**
+     * A maximum total number of results to return from the query.
+     * If negative, results are limited from the end of the query list towards the beginning.
+     * By default, results are not limited.
+     */
+    limit?: number;
+}
+/**
+ * Encapsulates parameters for staggering the start times of a set of animation steps.
+ * Instantiated and returned by the `stagger()` function.
+ *
+ * @publicApi
+ **/
+interface AnimationStaggerMetadata extends AnimationMetadata {
+    /**
+     * The timing data for the steps.
+     */
+    timings: string | number;
+    /**
+     * One or more animation steps.
+     */
+    animation: AnimationMetadata | AnimationMetadata[];
+}
+/**
+ * Creates a named animation trigger, containing a  list of [`state()`](api/animations/state)
+ * and `transition()` entries to be evaluated when the expression
+ * bound to the trigger changes.
+ *
+ * @param name An identifying string.
+ * @param definitions  An animation definition object, containing an array of
+ * [`state()`](api/animations/state) and `transition()` declarations.
+ *
+ * @return An object that encapsulates the trigger data.
+ *
+ * @usageNotes
+ * Define an animation trigger in the `animations` section of `@Component` metadata.
+ * In the template, reference the trigger by name and bind it to a trigger expression that
+ * evaluates to a defined animation state, using the following format:
+ *
+ * `[@triggerName]="expression"`
+ *
+ * Animation trigger bindings convert all values to strings, and then match the
+ * previous and current values against any linked transitions.
+ * Booleans can be specified as `1` or `true` and `0` or `false`.
+ *
+ * ### Usage Example
+ *
+ * The following example creates an animation trigger reference based on the provided
+ * name value.
+ * The provided animation value is expected to be an array consisting of state and
+ * transition declarations.
+ *
+ * ```ts
+ * @Component({
+ *   selector: "my-component",
+ *   templateUrl: "my-component-tpl.html",
+ *   animations: [
+ *     trigger("myAnimationTrigger", [
+ *       state(...),
+ *       state(...),
+ *       transition(...),
+ *       transition(...)
+ *     ])
+ *   ]
+ * })
+ * class MyComponent {
+ *   myStatusExp = "something";
+ * }
+ * ```
+ *
+ * The template associated with this component makes use of the defined trigger
+ * by binding to an element within its template code.
+ *
+ * ```html
+ * <!-- somewhere inside of my-component-tpl.html -->
+ * <div [@myAnimationTrigger]="myStatusExp">...</div>
+ * ```
+ *
+ * ### Using an inline function
+ * The `transition` animation method also supports reading an inline function which can decide
+ * if its associated animation should be run.
+ *
+ * ```ts
+ * // this method is run each time the `myAnimationTrigger` trigger value changes.
+ * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:
+ string]: any}): boolean {
+ *   // notice that `element` and `params` are also available here
+ *   return toState == 'yes-please-animate';
+ * }
+ *
+ * @Component({
+ *   selector: 'my-component',
+ *   templateUrl: 'my-component-tpl.html',
+ *   animations: [
+ *     trigger('myAnimationTrigger', [
+ *       transition(myInlineMatcherFn, [
+ *         // the animation sequence code
+ *       ]),
+ *     ])
+ *   ]
+ * })
+ * class MyComponent {
+ *   myStatusExp = "yes-please-animate";
+ * }
+ * ```
+ *
+ * ### Disabling Animations
+ * When true, the special animation control binding `@.disabled` binding prevents
+ * all animations from rendering.
+ * Place the  `@.disabled` binding on an element to disable
+ * animations on the element itself, as well as any inner animation triggers
+ * within the element.
+ *
+ * The following example shows how to use this feature:
+ *
+ * ```angular-ts
+ * @Component({
+ *   selector: 'my-component',
+ *   template: `
+ *     <div [@.disabled]="isDisabled">
+ *       <div [@childAnimation]="exp"></div>
+ *     </div>
+ *   `,
+ *   animations: [
+ *     trigger("childAnimation", [
+ *       // ...
+ *     ])
+ *   ]
+ * })
+ * class MyComponent {
+ *   isDisabled = true;
+ *   exp = '...';
+ * }
+ * ```
+ *
+ * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,
+ * along with any inner animations.
+ *
+ * ### Disable animations application-wide
+ * When an area of the template is set to have animations disabled,
+ * **all** inner components have their animations disabled as well.
+ * This means that you can disable all animations for an app
+ * by placing a host binding set on `@.disabled` on the topmost Angular component.
+ *
+ * ```ts
+ * import {Component, HostBinding} from '@angular/core';
+ *
+ * @Component({
+ *   selector: 'app-component',
+ *   templateUrl: 'app.component.html',
+ * })
+ * class AppComponent {
+ *   @HostBinding('@.disabled')
+ *   public animationsDisabled = true;
+ * }
+ * ```
+ *
+ * ### Overriding disablement of inner animations
+ * Despite inner animations being disabled, a parent animation can `query()`
+ * for inner elements located in disabled areas of the template and still animate
+ * them if needed. This is also the case for when a sub animation is
+ * queried by a parent and then later animated using `animateChild()`.
+ *
+ * ### Detecting when an animation is disabled
+ * If a region of the DOM (or the entire application) has its animations disabled, the animation
+ * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides
+ * an instance of an `AnimationEvent`. If animations are disabled,
+ * the `.disabled` flag on the event is true.
+ *
+ * @publicApi
+ */
+declare function trigger(name: string, definitions: AnimationMetadata[]): AnimationTriggerMetadata;
+/**
+ * Defines an animation step that combines styling information with timing information.
+ *
+ * @param timings Sets `AnimateTimings` for the parent animation.
+ * A string in the format "duration [delay] [easing]".
+ *  - Duration and delay are expressed as a number and optional time unit,
+ * such as "1s" or "10ms" for one second and 10 milliseconds, respectively.
+ * The default unit is milliseconds.
+ *  - The easing value controls how the animation accelerates and decelerates
+ * during its runtime. Value is one of  `ease`, `ease-in`, `ease-out`,
+ * `ease-in-out`, or a `cubic-bezier()` function call.
+ * If not supplied, no easing is applied.
+ *
+ * For example, the string "1s 100ms ease-out" specifies a duration of
+ * 1000 milliseconds, and delay of 100 ms, and the "ease-out" easing style,
+ * which decelerates near the end of the duration.
+ * @param styles Sets AnimationStyles for the parent animation.
+ * A function call to either `style()` or `keyframes()`
+ * that returns a collection of CSS style entries to be applied to the parent animation.
+ * When null, uses the styles from the destination state.
+ * This is useful when describing an animation step that will complete an animation;
+ * see "Animating to the final state" in `transitions()`.
+ * @returns An object that encapsulates the animation step.
+ *
+ * @usageNotes
+ * Call within an animation `sequence()`, {@link /api/animations/group group()}, or
+ * `transition()` call to specify an animation step
+ * that applies given style data to the parent animation for a given amount of time.
+ *
+ * ### Syntax Examples
+ * **Timing examples**
+ *
+ * The following examples show various `timings` specifications.
+ * - `animate(500)` : Duration is 500 milliseconds.
+ * - `animate("1s")` : Duration is 1000 milliseconds.
+ * - `animate("100ms 0.5s")` : Duration is 100 milliseconds, delay is 500 milliseconds.
+ * - `animate("5s ease-in")` : Duration is 5000 milliseconds, easing in.
+ * - `animate("5s 10ms cubic-bezier(.17,.67,.88,.1)")` : Duration is 5000 milliseconds, delay is 10
+ * milliseconds, easing according to a bezier curve.
+ *
+ * **Style examples**
+ *
+ * The following example calls `style()` to set a single CSS style.
+ * ```ts
+ * animate(500, style({ background: "red" }))
+ * ```
+ * The following example calls `keyframes()` to set a CSS style
+ * to different values for successive keyframes.
+ * ```ts
+ * animate(500, keyframes(
+ *  [
+ *   style({ background: "blue" }),
+ *   style({ background: "red" })
+ *  ])
+ * ```
+ *
+ * @publicApi
+ */
+declare function animate(timings: string | number, styles?: AnimationStyleMetadata | AnimationKeyframesSequenceMetadata | null): AnimationAnimateMetadata;
+/**
+ * @description Defines a list of animation steps to be run in parallel.
+ *
+ * @param steps An array of animation step objects.
+ * - When steps are defined by `style()` or `animate()`
+ * function calls, each call within the group is executed instantly.
+ * - To specify offset styles to be applied at a later time, define steps with
+ * `keyframes()`, or use `animate()` calls with a delay value.
+ * For example:
+ *
+ * ```ts
+ * group([
+ *   animate("1s", style({ background: "black" })),
+ *   animate("2s", style({ color: "white" }))
+ * ])
+ * ```
+ *
+ * @param options An options object containing a delay and
+ * developer-defined parameters that provide styling defaults and
+ * can be overridden on invocation.
+ *
+ * @return An object that encapsulates the group data.
+ *
+ * @usageNotes
+ * Grouped animations are useful when a series of styles must be
+ * animated at different starting times and closed off at different ending times.
+ *
+ * When called within a `sequence()` or a
+ * `transition()` call, does not continue to the next
+ * instruction until all of the inner animation steps have completed.
+ *
+ * @publicApi
+ */
+declare function group(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationGroupMetadata;
+/**
+ * Defines a list of animation steps to be run sequentially, one by one.
+ *
+ * @param steps An array of animation step objects.
+ * - Steps defined by `style()` calls apply the styling data immediately.
+ * - Steps defined by `animate()` calls apply the styling data over time
+ *   as specified by the timing data.
+ *
+ * ```ts
+ * sequence([
+ *   style({ opacity: 0 }),
+ *   animate("1s", style({ opacity: 1 }))
+ * ])
+ * ```
+ *
+ * @param options An options object containing a delay and
+ * developer-defined parameters that provide styling defaults and
+ * can be overridden on invocation.
+ *
+ * @return An object that encapsulates the sequence data.
+ *
+ * @usageNotes
+ * When you pass an array of steps to a
+ * `transition()` call, the steps run sequentially by default.
+ * Compare this to the  {@link /api/animations/group group()} call, which runs animation steps in
+ *parallel.
+ *
+ * When a sequence is used within a  {@link /api/animations/group group()} or a `transition()` call,
+ * execution continues to the next instruction only after each of the inner animation
+ * steps have completed.
+ *
+ * @publicApi
+ **/
+declare function sequence(steps: AnimationMetadata[], options?: AnimationOptions | null): AnimationSequenceMetadata;
+/**
+ * Declares a key/value object containing CSS properties/styles that
+ * can then be used for an animation [`state`](api/animations/state), within an animation
+ *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.
+ *
+ * @param tokens A set of CSS styles or HTML styles associated with an animation state.
+ * The value can be any of the following:
+ * - A key-value style pair associating a CSS property with a value.
+ * - An array of key-value style pairs.
+ * - An asterisk (*), to use auto-styling, where styles are derived from the element
+ * being animated and applied to the animation when it starts.
+ *
+ * Auto-styling can be used to define a state that depends on layout or other
+ * environmental factors.
+ *
+ * @return An object that encapsulates the style data.
+ *
+ * @usageNotes
+ * The following examples create animation styles that collect a set of
+ * CSS property values:
+ *
+ * ```ts
+ * // string values for CSS properties
+ * style({ background: "red", color: "blue" })
+ *
+ * // numerical pixel values
+ * style({ width: 100, height: 0 })
+ * ```
+ *
+ * The following example uses auto-styling to allow an element to animate from
+ * a height of 0 up to its full height:
+ *
+ * ```ts
+ * style({ height: 0 }),
+ * animate("1s", style({ height: "*" }))
+ * ```
+ *
+ * @publicApi
+ **/
+declare function style(tokens: '*' | {
+    [key: string]: string | number;
+} | Array<'*' | {
+    [key: string]: string | number;
+}>): AnimationStyleMetadata;
+/**
+ * Declares an animation state within a trigger attached to an element.
+ *
+ * @param name One or more names for the defined state in a comma-separated string.
+ * The following reserved state names can be supplied to define a style for specific use
+ * cases:
+ *
+ * - `void` You can associate styles with this name to be used when
+ * the element is detached from the application. For example, when an `ngIf` evaluates
+ * to false, the state of the associated element is void.
+ *  - `*` (asterisk) Indicates the default state. You can associate styles with this name
+ * to be used as the fallback when the state that is being animated is not declared
+ * within the trigger.
+ *
+ * @param styles A set of CSS styles associated with this state, created using the
+ * `style()` function.
+ * This set of styles persists on the element once the state has been reached.
+ * @param options Parameters that can be passed to the state when it is invoked.
+ * 0 or more key-value pairs.
+ * @return An object that encapsulates the new state data.
+ *
+ * @usageNotes
+ * Use the `trigger()` function to register states to an animation trigger.
+ * Use the `transition()` function to animate between states.
+ * When a state is active within a component, its associated styles persist on the element,
+ * even when the animation ends.
+ *
+ * @publicApi
+ **/
+declare function state(name: string, styles: AnimationStyleMetadata, options?: {
+    params: {
+        [name: string]: any;
+    };
+}): AnimationStateMetadata;
+/**
+ * Defines a set of animation styles, associating each style with an optional `offset` value.
+ *
+ * @param steps A set of animation styles with optional offset data.
+ * The optional `offset` value for a style specifies a percentage of the total animation
+ * time at which that style is applied.
+ * @returns An object that encapsulates the keyframes data.
+ *
+ * @usageNotes
+ * Use with the `animate()` call. Instead of applying animations
+ * from the current state
+ * to the destination state, keyframes describe how each style entry is applied and at what point
+ * within the animation arc.
+ * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).
+ *
+ * ### Usage
+ *
+ * In the following example, the offset values describe
+ * when each `backgroundColor` value is applied. The color is red at the start, and changes to
+ * blue when 20% of the total time has elapsed.
+ *
+ * ```ts
+ * // the provided offset values
+ * animate("5s", keyframes([
+ *   style({ backgroundColor: "red", offset: 0 }),
+ *   style({ backgroundColor: "blue", offset: 0.2 }),
+ *   style({ backgroundColor: "orange", offset: 0.3 }),
+ *   style({ backgroundColor: "black", offset: 1 })
+ * ]))
+ * ```
+ *
+ * If there are no `offset` values specified in the style entries, the offsets
+ * are calculated automatically.
+ *
+ * ```ts
+ * animate("5s", keyframes([
+ *   style({ backgroundColor: "red" }) // offset = 0
+ *   style({ backgroundColor: "blue" }) // offset = 0.33
+ *   style({ backgroundColor: "orange" }) // offset = 0.66
+ *   style({ backgroundColor: "black" }) // offset = 1
+ * ]))
+ *```
+
+ * @publicApi
+ */
+declare function keyframes(steps: AnimationStyleMetadata[]): AnimationKeyframesSequenceMetadata;
+/**
+ * Declares an animation transition which is played when a certain specified condition is met.
+ *
+ * @param stateChangeExpr A string with a specific format or a function that specifies when the
+ * animation transition should occur (see [State Change Expression](#state-change-expression)).
+ *
+ * @param steps One or more animation objects that represent the animation's instructions.
+ *
+ * @param options An options object that can be used to specify a delay for the animation or provide
+ * custom parameters for it.
+ *
+ * @returns An object that encapsulates the transition data.
+ *
+ * @usageNotes
+ *
+ * ### State Change Expression
+ *
+ * The State Change Expression instructs Angular when to run the transition's animations, it can
+ *either be
+ *  - a string with a specific syntax
+ *  - or a function that compares the previous and current state (value of the expression bound to
+ *    the element's trigger) and returns `true` if the transition should occur or `false` otherwise
+ *
+ * The string format can be:
+ *  - `fromState => toState`, which indicates that the transition's animations should occur then the
+ *    expression bound to the trigger's element goes from `fromState` to `toState`
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))
+ *      ```
+ *
+ *  - `fromState <=> toState`, which indicates that the transition's animations should occur then
+ *    the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))
+ *      ```
+ *
+ *  - `:enter`/`:leave`, which indicates that the transition's animations should occur when the
+ *    element enters or exists the DOM
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition(':enter', [
+ *          style({ opacity: 0 }),
+ *          animate('500ms', style({ opacity: 1 }))
+ *        ])
+ *      ```
+ *
+ *  - `:increment`/`:decrement`, which indicates that the transition's animations should occur when
+ *    the numerical expression bound to the trigger's element has increased in value or decreased
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition(':increment', query('@counter', animateChild()))
+ *      ```
+ *
+ *  - a sequence of any of the above divided by commas, which indicates that transition's animations
+ *    should occur whenever one of the state change expressions matches
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([
+ *          style({ transform: 'scale(1)', offset: 0}),
+ *          style({ transform: 'scale(1.1)', offset: 0.7}),
+ *          style({ transform: 'scale(1)', offset: 1})
+ *        ]))),
+ *      ```
+ *
+ * Also note that in such context:
+ *  - `void` can be used to indicate the absence of the element
+ *  - asterisks can be used as wildcards that match any state
+ *  - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is
+ *    equivalent to `:leave`)
+ *  - `true` and `false` also match expression values of `1` and `0` respectively (but do not match
+ *    _truthy_ and _falsy_ values)
+ *
+ * <div class="docs-alert docs-alert-helpful">
+ *
+ *  Be careful about entering end leaving elements as their transitions present a common
+ *  pitfall for developers.
+ *
+ *  Note that when an element with a trigger enters the DOM its `:enter` transition always
+ *  gets executed, but its `:leave` transition will not be executed if the element is removed
+ *  alongside its parent (as it will be removed "without warning" before its transition has
+ *  a chance to be executed, the only way that such transition can occur is if the element
+ *  is exiting the DOM on its own).
+ *
+ *
+ * </div>
+ *
+ * ### Animating to a Final State
+ *
+ * If the final step in a transition is a call to `animate()` that uses a timing value
+ * with no `style` data, that step is automatically considered the final animation arc,
+ * for the element to reach the final state, in such case Angular automatically adds or removes
+ * CSS styles to ensure that the element is in the correct final state.
+ *
+ *
+ * ### Usage Examples
+ *
+ *  - Transition animations applied based on
+ *    the trigger's expression value
+ *
+ *   ```html
+ *   <div [@myAnimationTrigger]="myStatusExp">
+ *    ...
+ *   </div>
+ *   ```
+ *
+ *   ```ts
+ *   trigger("myAnimationTrigger", [
+ *     ..., // states
+ *     transition("on => off, open => closed", animate(500)),
+ *     transition("* <=> error", query('.indicator', animateChild()))
+ *   ])
+ *   ```
+ *
+ *  - Transition animations applied based on custom logic dependent
+ *    on the trigger's expression value and provided parameters
+ *
+ *    ```html
+ *    <div [@myAnimationTrigger]="{
+ *     value: stepName,
+ *     params: { target: currentTarget }
+ *    }">
+ *     ...
+ *    </div>
+ *    ```
+ *
+ *    ```ts
+ *    trigger("myAnimationTrigger", [
+ *      ..., // states
+ *      transition(
+ *        (fromState, toState, _element, params) =>
+ *          ['firststep', 'laststep'].includes(fromState.toLowerCase())
+ *          && toState === params?.['target'],
+ *        animate('1s')
+ *      )
+ *    ])
+ *    ```
+ *
+ * @publicApi
+ **/
+declare function transition(stateChangeExpr: string | ((fromState: string, toState: string, element?: any, params?: {
+    [key: string]: any;
+}) => boolean), steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationTransitionMetadata;
+/**
+ * Produces a reusable animation that can be invoked in another animation or sequence,
+ * by calling the `useAnimation()` function.
+ *
+ * @param steps One or more animation objects, as returned by the `animate()`
+ * or `sequence()` function, that form a transformation from one state to another.
+ * A sequence is used by default when you pass an array.
+ * @param options An options object that can contain a delay value for the start of the
+ * animation, and additional developer-defined parameters.
+ * Provided values for additional parameters are used as defaults,
+ * and override values can be passed to the caller on invocation.
+ * @returns An object that encapsulates the animation data.
+ *
+ * @usageNotes
+ * The following example defines a reusable animation, providing some default parameter
+ * values.
+ *
+ * ```ts
+ * var fadeAnimation = animation([
+ *   style({ opacity: '{{ start }}' }),
+ *   animate('{{ time }}',
+ *   style({ opacity: '{{ end }}'}))
+ *   ],
+ *   { params: { time: '1000ms', start: 0, end: 1 }});
+ * ```
+ *
+ * The following invokes the defined animation with a call to `useAnimation()`,
+ * passing in override parameter values.
+ *
+ * ```js
+ * useAnimation(fadeAnimation, {
+ *   params: {
+ *     time: '2s',
+ *     start: 1,
+ *     end: 0
+ *   }
+ * })
+ * ```
+ *
+ * If any of the passed-in parameter values are missing from this call,
+ * the default values are used. If one or more parameter values are missing before a step is
+ * animated, `useAnimation()` throws an error.
+ *
+ * @publicApi
+ */
+declare function animation(steps: AnimationMetadata | AnimationMetadata[], options?: AnimationOptions | null): AnimationReferenceMetadata;
+/**
+ * Executes a queried inner animation element within an animation sequence.
+ *
+ * @param options An options object that can contain a delay value for the start of the
+ * animation, and additional override values for developer-defined parameters.
+ * @return An object that encapsulates the child animation data.
+ *
+ * @usageNotes
+ * Each time an animation is triggered in Angular, the parent animation
+ * has priority and any child animations are blocked. In order
+ * for a child animation to run, the parent animation must query each of the elements
+ * containing child animations, and run them using this function.
+ *
+ * Note that this feature is designed to be used with `query()` and it will only work
+ * with animations that are assigned using the Angular animation library. CSS keyframes
+ * and transitions are not handled by this API.
+ *
+ * @publicApi
+ */
+declare function animateChild(options?: AnimateChildOptions | null): AnimationAnimateChildMetadata;
+/**
+ * Starts a reusable animation that is created using the `animation()` function.
+ *
+ * @param animation The reusable animation to start.
+ * @param options An options object that can contain a delay value for the start of
+ * the animation, and additional override values for developer-defined parameters.
+ * @return An object that contains the animation parameters.
+ *
+ * @publicApi
+ */
+declare function useAnimation(animation: AnimationReferenceMetadata, options?: AnimationOptions | null): AnimationAnimateRefMetadata;
+/**
+ * Finds one or more inner elements within the current element that is
+ * being animated within a sequence. Use with `animate()`.
+ *
+ * @param selector The element to query, or a set of elements that contain Angular-specific
+ * characteristics, specified with one or more of the following tokens.
+ *  - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements (not
+ *     all elements can be queried via these tokens, see
+ *     [Entering and Leaving Elements](#entering-and-leaving-elements))
+ *  - `query(":animating")` : Query all currently animating elements.
+ *  - `query("@triggerName")` : Query elements that contain an animation trigger.
+ *  - `query("@*")` : Query all elements that contain an animation triggers.
+ *  - `query(":self")` : Include the current element into the animation sequence.
+ *
+ * @param animation One or more animation steps to apply to the queried element or elements.
+ * An array is treated as an animation sequence.
+ * @param options An options object. Use the 'limit' field to limit the total number of
+ * items to collect.
+ * @return An object that encapsulates the query data.
+ *
+ * @usageNotes
+ *
+ * ### Multiple Tokens
+ *
+ * Tokens can be merged into a combined query selector string. For example:
+ *
+ * ```ts
+ *  query(':self, .record:enter, .record:leave, @subTrigger', [...])
+ * ```
+ *
+ * The `query()` function collects multiple elements and works internally by using
+ * `element.querySelectorAll`. Use the `limit` field of an options object to limit
+ * the total number of items to be collected. For example:
+ *
+ * ```js
+ * query('div', [
+ *   animate(...),
+ *   animate(...)
+ * ], { limit: 1 })
+ * ```
+ *
+ * By default, throws an error when zero items are found. Set the
+ * `optional` flag to ignore this error. For example:
+ *
+ * ```js
+ * query('.some-element-that-may-not-be-there', [
+ *   animate(...),
+ *   animate(...)
+ * ], { optional: true })
+ * ```
+ *
+ * ### Entering and Leaving Elements
+ *
+ * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones
+ * that can are those that Angular assumes can enter/leave based on their own logic
+ * (if their insertion/removal is simply a consequence of that of their parent they
+ * should be queried via a different token in their parent's `:enter`/`:leave` transitions).
+ *
+ * The only elements Angular assumes can enter/leave based on their own logic (thus the only
+ * ones that can be queried via the `:enter` and `:leave` tokens) are:
+ *  - Those inserted dynamically (via `ViewContainerRef`)
+ *  - Those that have a structural directive (which, under the hood, are a subset of the above ones)
+ *
+ * <div class="docs-alert docs-alert-helpful">
+ *
+ *  Note that elements will be successfully queried via `:enter`/`:leave` even if their
+ *  insertion/removal is not done manually via `ViewContainerRef`or caused by their structural
+ *  directive (e.g. they enter/exit alongside their parent).
+ *
+ * </div>
+ *
+ * <div class="docs-alert docs-alert-important">
+ *
+ *  There is an exception to what previously mentioned, besides elements entering/leaving based on
+ *  their own logic, elements with an animation trigger can always be queried via `:leave` when
+ * their parent is also leaving.
+ *
+ * </div>
+ *
+ * ### Usage Example
+ *
+ * The following example queries for inner elements and animates them
+ * individually using `animate()`.
+ *
+ * ```angular-ts
+ * @Component({
+ *   selector: 'inner',
+ *   template: `
+ *     <div [@queryAnimation]="exp">
+ *       <h1>Title</h1>
+ *       <div class="content">
+ *         Blah blah blah
+ *       </div>
+ *     </div>
+ *   `,
+ *   animations: [
+ *    trigger('queryAnimation', [
+ *      transition('* => goAnimate', [
+ *        // hide the inner elements
+ *        query('h1', style({ opacity: 0 })),
+ *        query('.content', style({ opacity: 0 })),
+ *
+ *        // animate the inner elements in, one by one
+ *        query('h1', animate(1000, style({ opacity: 1 }))),
+ *        query('.content', animate(1000, style({ opacity: 1 }))),
+ *      ])
+ *    ])
+ *  ]
+ * })
+ * class Cmp {
+ *   exp = '';
+ *
+ *   goAnimate() {
+ *     this.exp = 'goAnimate';
+ *   }
+ * }
+ * ```
+ *
+ * @publicApi
+ */
+declare function query(selector: string, animation: AnimationMetadata | AnimationMetadata[], options?: AnimationQueryOptions | null): AnimationQueryMetadata;
+/**
+ * Use within an animation `query()` call to issue a timing gap after
+ * each queried item is animated.
+ *
+ * @param timings A delay value.
+ * @param animation One ore more animation steps.
+ * @returns An object that encapsulates the stagger data.
+ *
+ * @usageNotes
+ * In the following example, a container element wraps a list of items stamped out
+ * by an `@for` block. The container element contains an animation trigger that will later be set
+ * to query for each of the inner items.
+ *
+ * Each time items are added, the opacity fade-in animation runs,
+ * and each removed item is faded out.
+ * When either of these animations occur, the stagger effect is
+ * applied after each item's animation is started.
+ *
+ * ```html
+ * <!-- list.component.html -->
+ * <button (click)="toggle()">Show / Hide Items</button>
+ * <hr />
+ * <div [@listAnimation]="items.length">
+ *   @for(item of items; track $index) {
+ *      <div>{{ item }}</div>
+ *   }
+ * </div>
+ * ```
+ *
+ * Here is the component code:
+ *
+ * ```ts
+ * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';
+ * @Component({
+ *   templateUrl: 'list.component.html',
+ *   animations: [
+ *     trigger('listAnimation', [
+ *     ...
+ *     ])
+ *   ]
+ * })
+ * class ListComponent {
+ *   items = [];
+ *
+ *   showItems() {
+ *     this.items = [0,1,2,3,4];
+ *   }
+ *
+ *   hideItems() {
+ *     this.items = [];
+ *   }
+ *
+ *   toggle() {
+ *     this.items.length ? this.hideItems() : this.showItems();
+ *    }
+ *  }
+ * ```
+ *
+ * Here is the animation trigger code:
+ *
+ * ```ts
+ * trigger('listAnimation', [
+ *   transition('* => *', [ // each time the binding value changes
+ *     query(':leave', [
+ *       stagger(100, [
+ *         animate('0.5s', style({ opacity: 0 }))
+ *       ])
+ *     ]),
+ *     query(':enter', [
+ *       style({ opacity: 0 }),
+ *       stagger(100, [
+ *         animate('0.5s', style({ opacity: 1 }))
+ *       ])
+ *     ])
+ *   ])
+ * ])
+ * ```
+ *
+ * @publicApi
+ */
+declare function stagger(timings: string | number, animation: AnimationMetadata | AnimationMetadata[]): AnimationStaggerMetadata;
+
+/**
+ * Provides programmatic control of a reusable animation sequence,
+ * built using the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>
+ * method which returns an `AnimationFactory`, whose
+ * <code>[create](api/animations/AnimationFactory#create)()</code> method instantiates and
+ * initializes this interface.
+ *
+ * @see {@link AnimationBuilder}
+ * @see {@link AnimationFactory}
+ * @see {@link animate}
+ *
+ * @publicApi
+ */
+interface AnimationPlayer {
+    /**
+     * Provides a callback to invoke when the animation finishes.
+     * @param fn The callback function.
+     * @see {@link #finish}
+     */
+    onDone(fn: () => void): void;
+    /**
+     * Provides a callback to invoke when the animation starts.
+     * @param fn The callback function.
+     * @see {@link #play}
+     */
+    onStart(fn: () => void): void;
+    /**
+     * Provides a callback to invoke after the animation is destroyed.
+     * @param fn The callback function.
+     * @see {@link #destroy}
+     * @see {@link #beforeDestroy}
+     */
+    onDestroy(fn: () => void): void;
+    /**
+     * Initializes the animation.
+     */
+    init(): void;
+    /**
+     * Reports whether the animation has started.
+     * @returns True if the animation has started, false otherwise.
+     */
+    hasStarted(): boolean;
+    /**
+     * Runs the animation, invoking the `onStart()` callback.
+     */
+    play(): void;
+    /**
+     * Pauses the animation.
+     */
+    pause(): void;
+    /**
+     * Restarts the paused animation.
+     */
+    restart(): void;
+    /**
+     * Ends the animation, invoking the `onDone()` callback.
+     */
+    finish(): void;
+    /**
+     * Destroys the animation, after invoking the `beforeDestroy()` callback.
+     * Calls the `onDestroy()` callback when destruction is completed.
+     */
+    destroy(): void;
+    /**
+     * Resets the animation to its initial state.
+     */
+    reset(): void;
+    /**
+     * Sets the position of the animation.
+     * @param position A fractional value, representing the progress through the animation.
+     */
+    setPosition(position: number): void;
+    /**
+     * Reports the current position of the animation.
+     * @returns A fractional value, representing the progress through the animation.
+     */
+    getPosition(): number;
+    /**
+     * The parent of this player, if any.
+     */
+    parentPlayer: AnimationPlayer | null;
+    /**
+     * The total run time of the animation, in milliseconds.
+     */
+    readonly totalTime: number;
+    /**
+     * Provides a callback to invoke before the animation is destroyed.
+     */
+    beforeDestroy?: () => any;
+}
+/**
+ * An empty programmatic controller for reusable animations.
+ * Used internally when animations are disabled, to avoid
+ * checking for the null case when an animation player is expected.
+ *
+ * @see {@link animate}
+ * @see {@link AnimationPlayer}
+ *
+ * @publicApi
+ */
+declare class NoopAnimationPlayer implements AnimationPlayer {
+    private _onDoneFns;
+    private _onStartFns;
+    private _onDestroyFns;
+    private _originalOnDoneFns;
+    private _originalOnStartFns;
+    private _started;
+    private _destroyed;
+    private _finished;
+    private _position;
+    parentPlayer: AnimationPlayer | null;
+    readonly totalTime: number;
+    constructor(duration?: number, delay?: number);
+    private _onFinish;
+    onStart(fn: () => void): void;
+    onDone(fn: () => void): void;
+    onDestroy(fn: () => void): void;
+    hasStarted(): boolean;
+    init(): void;
+    play(): void;
+    private _onStart;
+    pause(): void;
+    restart(): void;
+    finish(): void;
+    destroy(): void;
+    reset(): void;
+    setPosition(position: number): void;
+    getPosition(): number;
+}
+
+export { AUTO_STYLE, AnimationMetadataType, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation };
+export type { AnimateChildOptions, AnimateTimings, AnimationAnimateChildMetadata, AnimationAnimateMetadata, AnimationAnimateRefMetadata, AnimationGroupMetadata, AnimationKeyframesSequenceMetadata, AnimationMetadata, AnimationOptions, AnimationPlayer, AnimationQueryMetadata, AnimationQueryOptions, AnimationReferenceMetadata, AnimationSequenceMetadata, AnimationStaggerMetadata, AnimationStateMetadata, AnimationStyleMetadata, AnimationTransitionMetadata, AnimationTriggerMetadata, ɵStyleData, ɵStyleDataMap };

+ 275 - 0
node_modules/@angular/animations/browser/index.d.ts

@@ -0,0 +1,275 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import { AnimationDriver } from '../animation_driver.d.js';
+export { NoopAnimationDriver } from '../animation_driver.d.js';
+import { AnimationTriggerMetadata, AnimationPlayer, ɵStyleDataMap as _StyleDataMap, AnimationMetadata, AnimationOptions, ɵStyleData as _StyleData } from '../animation_player.d.js';
+import { Renderer2, ɵAnimationRendererType as _AnimationRendererType, RendererStyleFlags2, ListenerOptions, RendererFactory2, NgZone, RendererType2 } from '@angular/core';
+
+declare abstract class AnimationStyleNormalizer {
+    abstract normalizePropertyName(propertyName: string, errors: Error[]): string;
+    abstract normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
+}
+declare class NoopAnimationStyleNormalizer {
+    normalizePropertyName(propertyName: string, errors: Error[]): string;
+    normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
+}
+
+declare class AnimationEngine {
+    private _driver;
+    private _normalizer;
+    private _transitionEngine;
+    private _timelineEngine;
+    private _triggerCache;
+    onRemovalComplete: (element: any, context: any) => void;
+    constructor(doc: Document, _driver: AnimationDriver, _normalizer: AnimationStyleNormalizer);
+    registerTrigger(componentId: string, namespaceId: string, hostElement: any, name: string, metadata: AnimationTriggerMetadata): void;
+    register(namespaceId: string, hostElement: any): void;
+    destroy(namespaceId: string, context: any): void;
+    onInsert(namespaceId: string, element: any, parent: any, insertBefore: boolean): void;
+    onRemove(namespaceId: string, element: any, context: any): void;
+    disableAnimations(element: any, disable: boolean): void;
+    process(namespaceId: string, element: any, property: string, value: any): void;
+    listen(namespaceId: string, element: any, eventName: string, eventPhase: string, callback: (event: any) => any): () => any;
+    flush(microtaskId?: number): void;
+    get players(): AnimationPlayer[];
+    whenRenderingDone(): Promise<any>;
+    afterFlushAnimationsDone(cb: VoidFunction): void;
+}
+
+declare function createEngine(type: 'animations' | 'noop', doc: Document): AnimationEngine;
+
+declare const enum AnimationTransitionInstructionType {
+    TransitionAnimation = 0,
+    TimelineAnimation = 1
+}
+interface AnimationEngineInstruction {
+    type: AnimationTransitionInstructionType;
+}
+
+interface AnimationTimelineInstruction extends AnimationEngineInstruction {
+    element: any;
+    keyframes: Array<_StyleDataMap>;
+    preStyleProps: string[];
+    postStyleProps: string[];
+    duration: number;
+    delay: number;
+    totalTime: number;
+    easing: string | null;
+    stretchStartingKeyframe?: boolean;
+    subTimeline: boolean;
+}
+
+declare class ElementInstructionMap {
+    private _map;
+    get(element: any): AnimationTimelineInstruction[];
+    append(element: any, instructions: AnimationTimelineInstruction[]): void;
+    has(element: any): boolean;
+    clear(): void;
+}
+
+declare class Animation$1 {
+    private _driver;
+    private _animationAst;
+    constructor(_driver: AnimationDriver, input: AnimationMetadata | AnimationMetadata[]);
+    buildTimelines(element: any, startingStyles: _StyleDataMap | Array<_StyleDataMap>, destinationStyles: _StyleDataMap | Array<_StyleDataMap>, options: AnimationOptions, subInstructions?: ElementInstructionMap): AnimationTimelineInstruction[];
+}
+
+declare class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {
+    normalizePropertyName(propertyName: string, errors: Error[]): string;
+    normalizeStyleValue(userProvidedProperty: string, normalizedProperty: string, value: string | number, errors: Error[]): string;
+}
+
+type AnimationFactoryWithListenerCallback = RendererFactory2 & {
+    scheduleListenerCallback: (count: number, fn: (e: any) => any, data: any) => void;
+};
+declare class BaseAnimationRenderer implements Renderer2 {
+    protected namespaceId: string;
+    delegate: Renderer2;
+    engine: AnimationEngine;
+    private _onDestroy?;
+    readonly ɵtype: _AnimationRendererType.Regular;
+    constructor(namespaceId: string, delegate: Renderer2, engine: AnimationEngine, _onDestroy?: (() => void) | undefined);
+    get data(): {
+        [key: string]: any;
+    };
+    destroyNode(node: any): void;
+    destroy(): void;
+    createElement(name: string, namespace?: string | null | undefined): any;
+    createComment(value: string): any;
+    createText(value: string): any;
+    appendChild(parent: any, newChild: any): void;
+    insertBefore(parent: any, newChild: any, refChild: any, isMove?: boolean): void;
+    removeChild(parent: any, oldChild: any, isHostElement?: boolean): void;
+    selectRootElement(selectorOrNode: any, preserveContent?: boolean): any;
+    parentNode(node: any): any;
+    nextSibling(node: any): any;
+    setAttribute(el: any, name: string, value: string, namespace?: string | null | undefined): void;
+    removeAttribute(el: any, name: string, namespace?: string | null | undefined): void;
+    addClass(el: any, name: string): void;
+    removeClass(el: any, name: string): void;
+    setStyle(el: any, style: string, value: any, flags?: RendererStyleFlags2 | undefined): void;
+    removeStyle(el: any, style: string, flags?: RendererStyleFlags2 | undefined): void;
+    setProperty(el: any, name: string, value: any): void;
+    setValue(node: any, value: string): void;
+    listen(target: any, eventName: string, callback: (event: any) => boolean | void, options?: ListenerOptions): () => void;
+    protected disableAnimations(element: any, value: boolean): void;
+}
+declare class AnimationRenderer extends BaseAnimationRenderer implements Renderer2 {
+    factory: AnimationFactoryWithListenerCallback;
+    constructor(factory: AnimationFactoryWithListenerCallback, namespaceId: string, delegate: Renderer2, engine: AnimationEngine, onDestroy?: () => void);
+    setProperty(el: any, name: string, value: any): void;
+    listen(target: 'window' | 'document' | 'body' | any, eventName: string, callback: (event: any) => any, options?: ListenerOptions): () => void;
+}
+
+declare class AnimationRendererFactory implements RendererFactory2 {
+    private delegate;
+    private engine;
+    private _zone;
+    private _currentId;
+    private _microtaskId;
+    private _animationCallbacksBuffer;
+    private _rendererCache;
+    private _cdRecurDepth;
+    constructor(delegate: RendererFactory2, engine: AnimationEngine, _zone: NgZone);
+    createRenderer(hostElement: any, type: RendererType2): BaseAnimationRenderer;
+    begin(): void;
+    private _scheduleCountTask;
+    end(): void;
+    whenRenderingDone(): Promise<any>;
+    /**
+     * Used during HMR to clear any cached data about a component.
+     * @param componentId ID of the component that is being replaced.
+     */
+    protected componentReplaced(componentId: string): void;
+}
+
+declare function getParentElement(element: any): unknown | null;
+declare function validateStyleProperty(prop: string): boolean;
+declare function validateWebAnimatableStyleProperty(prop: string): boolean;
+declare function containsElement(elm1: any, elm2: any): boolean;
+declare function invokeQuery(element: any, selector: string, multi: boolean): any[];
+
+declare class WebAnimationsDriver implements AnimationDriver {
+    validateStyleProperty(prop: string): boolean;
+    validateAnimatableStyleProperty(prop: string): boolean;
+    containsElement(elm1: any, elm2: any): boolean;
+    getParentElement(element: unknown): unknown;
+    query(element: any, selector: string, multi: boolean): any[];
+    computeStyle(element: any, prop: string, defaultValue?: string): string;
+    animate(element: any, keyframes: Array<Map<string, string | number>>, duration: number, delay: number, easing: string, previousPlayers?: AnimationPlayer[]): AnimationPlayer;
+}
+
+/**
+ * Designed to be executed during a keyframe-based animation to apply any special-cased styles.
+ *
+ * When started (when the `start()` method is run) then the provided `startStyles`
+ * will be applied. When finished (when the `finish()` method is called) the
+ * `endStyles` will be applied as well any any starting styles. Finally when
+ * `destroy()` is called then all styles will be removed.
+ */
+declare class SpecialCasedStyles {
+    private _element;
+    private _startStyles;
+    private _endStyles;
+    static initialStylesByElement: WeakMap<any, _StyleDataMap>;
+    private _state;
+    private _initialStyles;
+    constructor(_element: any, _startStyles: _StyleDataMap | null, _endStyles: _StyleDataMap | null);
+    start(): void;
+    finish(): void;
+    destroy(): void;
+}
+
+declare class WebAnimationsPlayer implements AnimationPlayer {
+    element: any;
+    keyframes: Array<_StyleDataMap>;
+    options: {
+        [key: string]: string | number;
+    };
+    private _specialStyles?;
+    private _onDoneFns;
+    private _onStartFns;
+    private _onDestroyFns;
+    private _duration;
+    private _delay;
+    private _initialized;
+    private _finished;
+    private _started;
+    private _destroyed;
+    private _finalKeyframe?;
+    private _originalOnDoneFns;
+    private _originalOnStartFns;
+    readonly domPlayer: Animation;
+    time: number;
+    parentPlayer: AnimationPlayer | null;
+    currentSnapshot: _StyleDataMap;
+    constructor(element: any, keyframes: Array<_StyleDataMap>, options: {
+        [key: string]: string | number;
+    }, _specialStyles?: (SpecialCasedStyles | null) | undefined);
+    private _onFinish;
+    init(): void;
+    private _buildPlayer;
+    private _preparePlayerBeforeStart;
+    private _convertKeyframesToObject;
+    onStart(fn: () => void): void;
+    onDone(fn: () => void): void;
+    onDestroy(fn: () => void): void;
+    play(): void;
+    pause(): void;
+    finish(): void;
+    reset(): void;
+    private _resetDomPlayerState;
+    restart(): void;
+    hasStarted(): boolean;
+    destroy(): void;
+    setPosition(p: number): void;
+    getPosition(): number;
+    get totalTime(): number;
+    beforeDestroy(): void;
+}
+
+declare const ENTER_CLASSNAME = "ng-enter";
+declare const LEAVE_CLASSNAME = "ng-leave";
+declare function normalizeKeyframes(keyframes: Array<_StyleData> | Array<_StyleDataMap>): Array<_StyleDataMap>;
+declare function camelCaseToDashCase(input: string): string;
+declare function allowPreviousPlayerStylesMerge(duration: number, delay: number): boolean;
+
+declare class TransitionAnimationPlayer implements AnimationPlayer {
+    namespaceId: string;
+    triggerName: string;
+    element: any;
+    private _player;
+    private _containsRealPlayer;
+    private _queuedCallbacks;
+    readonly destroyed = false;
+    parentPlayer: AnimationPlayer | null;
+    markedForDestroy: boolean;
+    disabled: boolean;
+    readonly queued: boolean;
+    readonly totalTime: number;
+    constructor(namespaceId: string, triggerName: string, element: any);
+    setRealPlayer(player: AnimationPlayer): void;
+    getRealPlayer(): AnimationPlayer;
+    overrideTotalTime(totalTime: number): void;
+    syncPlayerEvents(player: AnimationPlayer): void;
+    private _queueEvent;
+    onDone(fn: () => void): void;
+    onStart(fn: () => void): void;
+    onDestroy(fn: () => void): void;
+    init(): void;
+    hasStarted(): boolean;
+    play(): void;
+    pause(): void;
+    restart(): void;
+    finish(): void;
+    destroy(): void;
+    reset(): void;
+    setPosition(p: number): void;
+    getPosition(): number;
+}
+
+export { AnimationDriver, Animation$1 as ɵAnimation, AnimationEngine as ɵAnimationEngine, AnimationRenderer as ɵAnimationRenderer, AnimationRendererFactory as ɵAnimationRendererFactory, AnimationStyleNormalizer as ɵAnimationStyleNormalizer, BaseAnimationRenderer as ɵBaseAnimationRenderer, ENTER_CLASSNAME as ɵENTER_CLASSNAME, LEAVE_CLASSNAME as ɵLEAVE_CLASSNAME, NoopAnimationStyleNormalizer as ɵNoopAnimationStyleNormalizer, TransitionAnimationPlayer as ɵTransitionAnimationPlayer, WebAnimationsDriver as ɵWebAnimationsDriver, WebAnimationsPlayer as ɵWebAnimationsPlayer, WebAnimationsStyleNormalizer as ɵWebAnimationsStyleNormalizer, allowPreviousPlayerStylesMerge as ɵallowPreviousPlayerStylesMerge, camelCaseToDashCase as ɵcamelCaseToDashCase, containsElement as ɵcontainsElement, createEngine as ɵcreateEngine, getParentElement as ɵgetParentElement, invokeQuery as ɵinvokeQuery, normalizeKeyframes as ɵnormalizeKeyframes, validateStyleProperty as ɵvalidateStyleProperty, validateWebAnimatableStyleProperty as ɵvalidateWebAnimatableStyleProperty };

+ 49 - 0
node_modules/@angular/animations/browser/testing/index.d.ts

@@ -0,0 +1,49 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import { AnimationPlayer, ɵStyleDataMap as _StyleDataMap, NoopAnimationPlayer } from '../../animation_player.d.js';
+import { AnimationDriver } from '../../animation_driver.d.js';
+import '@angular/core';
+
+/**
+ * @publicApi
+ */
+declare class MockAnimationDriver implements AnimationDriver {
+    static log: AnimationPlayer[];
+    validateStyleProperty(prop: string): boolean;
+    validateAnimatableStyleProperty(prop: string): boolean;
+    containsElement(elm1: any, elm2: any): boolean;
+    getParentElement(element: unknown): unknown;
+    query(element: any, selector: string, multi: boolean): any[];
+    computeStyle(element: any, prop: string, defaultValue?: string): string;
+    animate(element: any, keyframes: Array<_StyleDataMap>, duration: number, delay: number, easing: string, previousPlayers?: any[]): MockAnimationPlayer;
+}
+/**
+ * @publicApi
+ */
+declare class MockAnimationPlayer extends NoopAnimationPlayer {
+    element: any;
+    keyframes: Array<_StyleDataMap>;
+    duration: number;
+    delay: number;
+    easing: string;
+    previousPlayers: any[];
+    private __finished;
+    private __started;
+    previousStyles: _StyleDataMap;
+    private _onInitFns;
+    currentSnapshot: _StyleDataMap;
+    private _keyframes;
+    constructor(element: any, keyframes: Array<_StyleDataMap>, duration: number, delay: number, easing: string, previousPlayers: any[]);
+    reset(): void;
+    finish(): void;
+    destroy(): void;
+    play(): void;
+    hasStarted(): boolean;
+    beforeDestroy(): void;
+}
+
+export { MockAnimationDriver, MockAnimationPlayer };

+ 209 - 0
node_modules/@angular/animations/fesm2022/animations.mjs

@@ -0,0 +1,209 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import { DOCUMENT } from '@angular/common';
+import * as i0 from '@angular/core';
+import { inject, Injectable, ANIMATION_MODULE_TYPE, ɵRuntimeError as _RuntimeError, Inject, ViewEncapsulation } from '@angular/core';
+import { sequence } from './private_export.mjs';
+export { AUTO_STYLE, AnimationMetadataType, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, stagger, state, style, transition, trigger, useAnimation, AnimationGroupPlayer as ɵAnimationGroupPlayer, ɵPRE_STYLE } from './private_export.mjs';
+
+/**
+ * An injectable service that produces an animation sequence programmatically within an
+ * Angular component or directive.
+ * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.
+ *
+ * @usageNotes
+ *
+ * To use this service, add it to your component or directive as a dependency.
+ * The service is instantiated along with your component.
+ *
+ * Apps do not typically need to create their own animation players, but if you
+ * do need to, follow these steps:
+ *
+ * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method
+ * to create a programmatic animation. The method returns an `AnimationFactory` instance.
+ *
+ * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.
+ *
+ * 3. Use the player object to control the animation programmatically.
+ *
+ * For example:
+ *
+ * ```ts
+ * // import the service from BrowserAnimationsModule
+ * import {AnimationBuilder} from '@angular/animations';
+ * // require the service as a dependency
+ * class MyCmp {
+ *   constructor(private _builder: AnimationBuilder) {}
+ *
+ *   makeAnimation(element: any) {
+ *     // first define a reusable animation
+ *     const myAnimation = this._builder.build([
+ *       style({ width: 0 }),
+ *       animate(1000, style({ width: '100px' }))
+ *     ]);
+ *
+ *     // use the returned factory object to create a player
+ *     const player = myAnimation.create(element);
+ *
+ *     player.play();
+ *   }
+ * }
+ * ```
+ *
+ * @publicApi
+ */
+class AnimationBuilder {
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: AnimationBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: AnimationBuilder, providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: AnimationBuilder, decorators: [{
+            type: Injectable,
+            args: [{ providedIn: 'root', useFactory: () => inject(BrowserAnimationBuilder) }]
+        }] });
+/**
+ * A factory object returned from the
+ * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>
+ * method.
+ *
+ * @publicApi
+ */
+class AnimationFactory {
+}
+class BrowserAnimationBuilder extends AnimationBuilder {
+    animationModuleType = inject(ANIMATION_MODULE_TYPE, { optional: true });
+    _nextAnimationId = 0;
+    _renderer;
+    constructor(rootRenderer, doc) {
+        super();
+        const typeData = {
+            id: '0',
+            encapsulation: ViewEncapsulation.None,
+            styles: [],
+            data: { animation: [] },
+        };
+        this._renderer = rootRenderer.createRenderer(doc.body, typeData);
+        if (this.animationModuleType === null && !isAnimationRenderer(this._renderer)) {
+            // We only support AnimationRenderer & DynamicDelegationRenderer for this AnimationBuilder
+            throw new _RuntimeError(3600 /* RuntimeErrorCode.BROWSER_ANIMATION_BUILDER_INJECTED_WITHOUT_ANIMATIONS */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
+                'Angular detected that the `AnimationBuilder` was injected, but animation support was not enabled. ' +
+                    'Please make sure that you enable animations in your application by calling `provideAnimations()` or `provideAnimationsAsync()` function.');
+        }
+    }
+    build(animation) {
+        const id = this._nextAnimationId;
+        this._nextAnimationId++;
+        const entry = Array.isArray(animation) ? sequence(animation) : animation;
+        issueAnimationCommand(this._renderer, null, id, 'register', [entry]);
+        return new BrowserAnimationFactory(id, this._renderer);
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BrowserAnimationBuilder, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BrowserAnimationBuilder, providedIn: 'root' });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BrowserAnimationBuilder, decorators: [{
+            type: Injectable,
+            args: [{ providedIn: 'root' }]
+        }], ctorParameters: () => [{ type: i0.RendererFactory2 }, { type: Document, decorators: [{
+                    type: Inject,
+                    args: [DOCUMENT]
+                }] }] });
+class BrowserAnimationFactory extends AnimationFactory {
+    _id;
+    _renderer;
+    constructor(_id, _renderer) {
+        super();
+        this._id = _id;
+        this._renderer = _renderer;
+    }
+    create(element, options) {
+        return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);
+    }
+}
+class RendererAnimationPlayer {
+    id;
+    element;
+    _renderer;
+    parentPlayer = null;
+    _started = false;
+    constructor(id, element, options, _renderer) {
+        this.id = id;
+        this.element = element;
+        this._renderer = _renderer;
+        this._command('create', options);
+    }
+    _listen(eventName, callback) {
+        return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);
+    }
+    _command(command, ...args) {
+        issueAnimationCommand(this._renderer, this.element, this.id, command, args);
+    }
+    onDone(fn) {
+        this._listen('done', fn);
+    }
+    onStart(fn) {
+        this._listen('start', fn);
+    }
+    onDestroy(fn) {
+        this._listen('destroy', fn);
+    }
+    init() {
+        this._command('init');
+    }
+    hasStarted() {
+        return this._started;
+    }
+    play() {
+        this._command('play');
+        this._started = true;
+    }
+    pause() {
+        this._command('pause');
+    }
+    restart() {
+        this._command('restart');
+    }
+    finish() {
+        this._command('finish');
+    }
+    destroy() {
+        this._command('destroy');
+    }
+    reset() {
+        this._command('reset');
+        this._started = false;
+    }
+    setPosition(p) {
+        this._command('setPosition', p);
+    }
+    getPosition() {
+        return unwrapAnimationRenderer(this._renderer)?.engine?.players[this.id]?.getPosition() ?? 0;
+    }
+    totalTime = 0;
+}
+function issueAnimationCommand(renderer, element, id, command, args) {
+    renderer.setProperty(element, `@@${id}:${command}`, args);
+}
+/**
+ * The following 2 methods cannot reference their correct types (AnimationRenderer &
+ * DynamicDelegationRenderer) since this would introduce a import cycle.
+ */
+function unwrapAnimationRenderer(renderer) {
+    const type = renderer.ɵtype;
+    if (type === 0 /* AnimationRendererType.Regular */) {
+        return renderer;
+    }
+    else if (type === 1 /* AnimationRendererType.Delegated */) {
+        return renderer.animationRenderer;
+    }
+    return null;
+}
+function isAnimationRenderer(renderer) {
+    const type = renderer.ɵtype;
+    return type === 0 /* AnimationRendererType.Regular */ || type === 1 /* AnimationRendererType.Delegated */;
+}
+
+export { AnimationBuilder, AnimationFactory, sequence, BrowserAnimationBuilder as ɵBrowserAnimationBuilder };
+//# sourceMappingURL=animations.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/animations/fesm2022/animations.mjs.map


+ 4170 - 0
node_modules/@angular/animations/fesm2022/browser.mjs

@@ -0,0 +1,4170 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { Injectable } from '@angular/core';
+import { validateStyleProperty, containsElement, getParentElement, invokeQuery, dashCaseToCamelCase, invalidCssUnitValue, invalidExpression, invalidTransitionAlias, visitDslNode, invalidTrigger, invalidDefinition, extractStyleParams, invalidState, invalidStyleValue, SUBSTITUTION_EXPR_START, invalidParallelAnimation, validateStyleParams, invalidKeyframes, invalidOffset, keyframeOffsetsOutOfOrder, keyframesMissingOffsets, getOrSetDefaultValue, invalidStagger, resolveTiming, NG_TRIGGER_SELECTOR, NG_ANIMATING_SELECTOR, normalizeAnimationEntry, resolveTimingValue, interpolateParams, invalidQuery, registerFailed, normalizeKeyframes, LEAVE_CLASSNAME, ENTER_CLASSNAME, missingOrDestroyedAnimation, createAnimationFailed, optimizeGroupPlayer, missingPlayer, listenOnPlayer, makeAnimationEvent, triggerTransitionsFailed, eraseStyles, setStyles, transitionFailed, missingTrigger, missingEvent, unsupportedTriggerEvent, NG_TRIGGER_CLASSNAME, unregisteredTrigger, NG_ANIMATING_CLASSNAME, triggerBuildFailed, parseTimelineCommand, computeStyle, camelCaseToDashCase, validateWebAnimatableStyleProperty, allowPreviousPlayerStylesMerge, normalizeKeyframes$1, balancePreviousStylesIntoKeyframes, validationFailed, normalizeStyles, buildingFailed } from './util.mjs';
+import { NoopAnimationPlayer, AnimationMetadataType, style, AUTO_STYLE, ɵPRE_STYLE as _PRE_STYLE, AnimationGroupPlayer } from './private_export.mjs';
+
+/**
+ * @publicApi
+ *
+ * `AnimationDriver` implentation for Noop animations
+ */
+class NoopAnimationDriver {
+    /**
+     * @returns Whether `prop` is a valid CSS property
+     */
+    validateStyleProperty(prop) {
+        return validateStyleProperty(prop);
+    }
+    /**
+     *
+     * @returns Whether elm1 contains elm2.
+     */
+    containsElement(elm1, elm2) {
+        return containsElement(elm1, elm2);
+    }
+    /**
+     * @returns Rhe parent of the given element or `null` if the element is the `document`
+     */
+    getParentElement(element) {
+        return getParentElement(element);
+    }
+    /**
+     * @returns The result of the query selector on the element. The array will contain up to 1 item
+     *     if `multi` is  `false`.
+     */
+    query(element, selector, multi) {
+        return invokeQuery(element, selector, multi);
+    }
+    /**
+     * @returns The `defaultValue` or empty string
+     */
+    computeStyle(element, prop, defaultValue) {
+        return defaultValue || '';
+    }
+    /**
+     * @returns An `NoopAnimationPlayer`
+     */
+    animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {
+        return new NoopAnimationPlayer(duration, delay);
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NoopAnimationDriver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NoopAnimationDriver });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NoopAnimationDriver, decorators: [{
+            type: Injectable
+        }] });
+/**
+ * @publicApi
+ */
+class AnimationDriver {
+    /**
+     * @deprecated Use the NoopAnimationDriver class.
+     */
+    static NOOP = new NoopAnimationDriver();
+}
+
+class AnimationStyleNormalizer {
+}
+class NoopAnimationStyleNormalizer {
+    normalizePropertyName(propertyName, errors) {
+        return propertyName;
+    }
+    normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {
+        return value;
+    }
+}
+
+const DIMENSIONAL_PROP_SET = new Set([
+    'width',
+    'height',
+    'minWidth',
+    'minHeight',
+    'maxWidth',
+    'maxHeight',
+    'left',
+    'top',
+    'bottom',
+    'right',
+    'fontSize',
+    'outlineWidth',
+    'outlineOffset',
+    'paddingTop',
+    'paddingLeft',
+    'paddingBottom',
+    'paddingRight',
+    'marginTop',
+    'marginLeft',
+    'marginBottom',
+    'marginRight',
+    'borderRadius',
+    'borderWidth',
+    'borderTopWidth',
+    'borderLeftWidth',
+    'borderRightWidth',
+    'borderBottomWidth',
+    'textIndent',
+    'perspective',
+]);
+class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {
+    normalizePropertyName(propertyName, errors) {
+        return dashCaseToCamelCase(propertyName);
+    }
+    normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {
+        let unit = '';
+        const strVal = value.toString().trim();
+        if (DIMENSIONAL_PROP_SET.has(normalizedProperty) && value !== 0 && value !== '0') {
+            if (typeof value === 'number') {
+                unit = 'px';
+            }
+            else {
+                const valAndSuffixMatch = value.match(/^[+-]?[\d\.]+([a-z]*)$/);
+                if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {
+                    errors.push(invalidCssUnitValue(userProvidedProperty, value));
+                }
+            }
+        }
+        return strVal + unit;
+    }
+}
+
+function createListOfWarnings(warnings) {
+    const LINE_START = '\n - ';
+    return `${LINE_START}${warnings
+        .filter(Boolean)
+        .map((warning) => warning)
+        .join(LINE_START)}`;
+}
+function warnValidation(warnings) {
+    console.warn(`animation validation warnings:${createListOfWarnings(warnings)}`);
+}
+function warnTriggerBuild(name, warnings) {
+    console.warn(`The animation trigger "${name}" has built with the following warnings:${createListOfWarnings(warnings)}`);
+}
+function warnRegister(warnings) {
+    console.warn(`Animation built with the following warnings:${createListOfWarnings(warnings)}`);
+}
+function pushUnrecognizedPropertiesWarning(warnings, props) {
+    if (props.length) {
+        warnings.push(`The following provided properties are not recognized: ${props.join(', ')}`);
+    }
+}
+
+const ANY_STATE = '*';
+function parseTransitionExpr(transitionValue, errors) {
+    const expressions = [];
+    if (typeof transitionValue == 'string') {
+        transitionValue
+            .split(/\s*,\s*/)
+            .forEach((str) => parseInnerTransitionStr(str, expressions, errors));
+    }
+    else {
+        expressions.push(transitionValue);
+    }
+    return expressions;
+}
+function parseInnerTransitionStr(eventStr, expressions, errors) {
+    if (eventStr[0] == ':') {
+        const result = parseAnimationAlias(eventStr, errors);
+        if (typeof result == 'function') {
+            expressions.push(result);
+            return;
+        }
+        eventStr = result;
+    }
+    const match = eventStr.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);
+    if (match == null || match.length < 4) {
+        errors.push(invalidExpression(eventStr));
+        return expressions;
+    }
+    const fromState = match[1];
+    const separator = match[2];
+    const toState = match[3];
+    expressions.push(makeLambdaFromStates(fromState, toState));
+    const isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;
+    if (separator[0] == '<' && !isFullAnyStateExpr) {
+        expressions.push(makeLambdaFromStates(toState, fromState));
+    }
+    return;
+}
+function parseAnimationAlias(alias, errors) {
+    switch (alias) {
+        case ':enter':
+            return 'void => *';
+        case ':leave':
+            return '* => void';
+        case ':increment':
+            return (fromState, toState) => parseFloat(toState) > parseFloat(fromState);
+        case ':decrement':
+            return (fromState, toState) => parseFloat(toState) < parseFloat(fromState);
+        default:
+            errors.push(invalidTransitionAlias(alias));
+            return '* => *';
+    }
+}
+// DO NOT REFACTOR ... keep the follow set instantiations
+// with the values intact (closure compiler for some reason
+// removes follow-up lines that add the values outside of
+// the constructor...
+const TRUE_BOOLEAN_VALUES = new Set(['true', '1']);
+const FALSE_BOOLEAN_VALUES = new Set(['false', '0']);
+function makeLambdaFromStates(lhs, rhs) {
+    const LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);
+    const RHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs);
+    return (fromState, toState) => {
+        let lhsMatch = lhs == ANY_STATE || lhs == fromState;
+        let rhsMatch = rhs == ANY_STATE || rhs == toState;
+        if (!lhsMatch && LHS_MATCH_BOOLEAN && typeof fromState === 'boolean') {
+            lhsMatch = fromState ? TRUE_BOOLEAN_VALUES.has(lhs) : FALSE_BOOLEAN_VALUES.has(lhs);
+        }
+        if (!rhsMatch && RHS_MATCH_BOOLEAN && typeof toState === 'boolean') {
+            rhsMatch = toState ? TRUE_BOOLEAN_VALUES.has(rhs) : FALSE_BOOLEAN_VALUES.has(rhs);
+        }
+        return lhsMatch && rhsMatch;
+    };
+}
+
+const SELF_TOKEN = ':self';
+const SELF_TOKEN_REGEX = /* @__PURE__ */ new RegExp(`s*${SELF_TOKEN}s*,?`, 'g');
+/*
+ * [Validation]
+ * The visitor code below will traverse the animation AST generated by the animation verb functions
+ * (the output is a tree of objects) and attempt to perform a series of validations on the data. The
+ * following corner-cases will be validated:
+ *
+ * 1. Overlap of animations
+ * Given that a CSS property cannot be animated in more than one place at the same time, it's
+ * important that this behavior is detected and validated. The way in which this occurs is that
+ * each time a style property is examined, a string-map containing the property will be updated with
+ * the start and end times for when the property is used within an animation step.
+ *
+ * If there are two or more parallel animations that are currently running (these are invoked by the
+ * group()) on the same element then the validator will throw an error. Since the start/end timing
+ * values are collected for each property then if the current animation step is animating the same
+ * property and its timing values fall anywhere into the window of time that the property is
+ * currently being animated within then this is what causes an error.
+ *
+ * 2. Timing values
+ * The validator will validate to see if a timing value of `duration delay easing` or
+ * `durationNumber` is valid or not.
+ *
+ * (note that upon validation the code below will replace the timing data with an object containing
+ * {duration,delay,easing}.
+ *
+ * 3. Offset Validation
+ * Each of the style() calls are allowed to have an offset value when placed inside of keyframes().
+ * Offsets within keyframes() are considered valid when:
+ *
+ *   - No offsets are used at all
+ *   - Each style() entry contains an offset value
+ *   - Each offset is between 0 and 1
+ *   - Each offset is greater to or equal than the previous one
+ *
+ * Otherwise an error will be thrown.
+ */
+function buildAnimationAst(driver, metadata, errors, warnings) {
+    return new AnimationAstBuilderVisitor(driver).build(metadata, errors, warnings);
+}
+const ROOT_SELECTOR = '';
+class AnimationAstBuilderVisitor {
+    _driver;
+    constructor(_driver) {
+        this._driver = _driver;
+    }
+    build(metadata, errors, warnings) {
+        const context = new AnimationAstBuilderContext(errors);
+        this._resetContextStyleTimingState(context);
+        const ast = (visitDslNode(this, normalizeAnimationEntry(metadata), context));
+        if (typeof ngDevMode === 'undefined' || ngDevMode) {
+            if (context.unsupportedCSSPropertiesFound.size) {
+                pushUnrecognizedPropertiesWarning(warnings, [
+                    ...context.unsupportedCSSPropertiesFound.keys(),
+                ]);
+            }
+        }
+        return ast;
+    }
+    _resetContextStyleTimingState(context) {
+        context.currentQuerySelector = ROOT_SELECTOR;
+        context.collectedStyles = new Map();
+        context.collectedStyles.set(ROOT_SELECTOR, new Map());
+        context.currentTime = 0;
+    }
+    visitTrigger(metadata, context) {
+        let queryCount = (context.queryCount = 0);
+        let depCount = (context.depCount = 0);
+        const states = [];
+        const transitions = [];
+        if (metadata.name.charAt(0) == '@') {
+            context.errors.push(invalidTrigger());
+        }
+        metadata.definitions.forEach((def) => {
+            this._resetContextStyleTimingState(context);
+            if (def.type == AnimationMetadataType.State) {
+                const stateDef = def;
+                const name = stateDef.name;
+                name
+                    .toString()
+                    .split(/\s*,\s*/)
+                    .forEach((n) => {
+                    stateDef.name = n;
+                    states.push(this.visitState(stateDef, context));
+                });
+                stateDef.name = name;
+            }
+            else if (def.type == AnimationMetadataType.Transition) {
+                const transition = this.visitTransition(def, context);
+                queryCount += transition.queryCount;
+                depCount += transition.depCount;
+                transitions.push(transition);
+            }
+            else {
+                context.errors.push(invalidDefinition());
+            }
+        });
+        return {
+            type: AnimationMetadataType.Trigger,
+            name: metadata.name,
+            states,
+            transitions,
+            queryCount,
+            depCount,
+            options: null,
+        };
+    }
+    visitState(metadata, context) {
+        const styleAst = this.visitStyle(metadata.styles, context);
+        const astParams = (metadata.options && metadata.options.params) || null;
+        if (styleAst.containsDynamicStyles) {
+            const missingSubs = new Set();
+            const params = astParams || {};
+            styleAst.styles.forEach((style) => {
+                if (style instanceof Map) {
+                    style.forEach((value) => {
+                        extractStyleParams(value).forEach((sub) => {
+                            if (!params.hasOwnProperty(sub)) {
+                                missingSubs.add(sub);
+                            }
+                        });
+                    });
+                }
+            });
+            if (missingSubs.size) {
+                context.errors.push(invalidState(metadata.name, [...missingSubs.values()]));
+            }
+        }
+        return {
+            type: AnimationMetadataType.State,
+            name: metadata.name,
+            style: styleAst,
+            options: astParams ? { params: astParams } : null,
+        };
+    }
+    visitTransition(metadata, context) {
+        context.queryCount = 0;
+        context.depCount = 0;
+        const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);
+        const matchers = parseTransitionExpr(metadata.expr, context.errors);
+        return {
+            type: AnimationMetadataType.Transition,
+            matchers,
+            animation,
+            queryCount: context.queryCount,
+            depCount: context.depCount,
+            options: normalizeAnimationOptions(metadata.options),
+        };
+    }
+    visitSequence(metadata, context) {
+        return {
+            type: AnimationMetadataType.Sequence,
+            steps: metadata.steps.map((s) => visitDslNode(this, s, context)),
+            options: normalizeAnimationOptions(metadata.options),
+        };
+    }
+    visitGroup(metadata, context) {
+        const currentTime = context.currentTime;
+        let furthestTime = 0;
+        const steps = metadata.steps.map((step) => {
+            context.currentTime = currentTime;
+            const innerAst = visitDslNode(this, step, context);
+            furthestTime = Math.max(furthestTime, context.currentTime);
+            return innerAst;
+        });
+        context.currentTime = furthestTime;
+        return {
+            type: AnimationMetadataType.Group,
+            steps,
+            options: normalizeAnimationOptions(metadata.options),
+        };
+    }
+    visitAnimate(metadata, context) {
+        const timingAst = constructTimingAst(metadata.timings, context.errors);
+        context.currentAnimateTimings = timingAst;
+        let styleAst;
+        let styleMetadata = metadata.styles
+            ? metadata.styles
+            : style({});
+        if (styleMetadata.type == AnimationMetadataType.Keyframes) {
+            styleAst = this.visitKeyframes(styleMetadata, context);
+        }
+        else {
+            let styleMetadata = metadata.styles;
+            let isEmpty = false;
+            if (!styleMetadata) {
+                isEmpty = true;
+                const newStyleData = {};
+                if (timingAst.easing) {
+                    newStyleData['easing'] = timingAst.easing;
+                }
+                styleMetadata = style(newStyleData);
+            }
+            context.currentTime += timingAst.duration + timingAst.delay;
+            const _styleAst = this.visitStyle(styleMetadata, context);
+            _styleAst.isEmptyStep = isEmpty;
+            styleAst = _styleAst;
+        }
+        context.currentAnimateTimings = null;
+        return {
+            type: AnimationMetadataType.Animate,
+            timings: timingAst,
+            style: styleAst,
+            options: null,
+        };
+    }
+    visitStyle(metadata, context) {
+        const ast = this._makeStyleAst(metadata, context);
+        this._validateStyleAst(ast, context);
+        return ast;
+    }
+    _makeStyleAst(metadata, context) {
+        const styles = [];
+        const metadataStyles = Array.isArray(metadata.styles) ? metadata.styles : [metadata.styles];
+        for (let styleTuple of metadataStyles) {
+            if (typeof styleTuple === 'string') {
+                if (styleTuple === AUTO_STYLE) {
+                    styles.push(styleTuple);
+                }
+                else {
+                    context.errors.push(invalidStyleValue(styleTuple));
+                }
+            }
+            else {
+                styles.push(new Map(Object.entries(styleTuple)));
+            }
+        }
+        let containsDynamicStyles = false;
+        let collectedEasing = null;
+        styles.forEach((styleData) => {
+            if (styleData instanceof Map) {
+                if (styleData.has('easing')) {
+                    collectedEasing = styleData.get('easing');
+                    styleData.delete('easing');
+                }
+                if (!containsDynamicStyles) {
+                    for (let value of styleData.values()) {
+                        if (value.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0) {
+                            containsDynamicStyles = true;
+                            break;
+                        }
+                    }
+                }
+            }
+        });
+        return {
+            type: AnimationMetadataType.Style,
+            styles,
+            easing: collectedEasing,
+            offset: metadata.offset,
+            containsDynamicStyles,
+            options: null,
+        };
+    }
+    _validateStyleAst(ast, context) {
+        const timings = context.currentAnimateTimings;
+        let endTime = context.currentTime;
+        let startTime = context.currentTime;
+        if (timings && startTime > 0) {
+            startTime -= timings.duration + timings.delay;
+        }
+        ast.styles.forEach((tuple) => {
+            if (typeof tuple === 'string')
+                return;
+            tuple.forEach((value, prop) => {
+                if (typeof ngDevMode === 'undefined' || ngDevMode) {
+                    if (!this._driver.validateStyleProperty(prop)) {
+                        tuple.delete(prop);
+                        context.unsupportedCSSPropertiesFound.add(prop);
+                        return;
+                    }
+                }
+                // This is guaranteed to have a defined Map at this querySelector location making it
+                // safe to add the assertion here. It is set as a default empty map in prior methods.
+                const collectedStyles = context.collectedStyles.get(context.currentQuerySelector);
+                const collectedEntry = collectedStyles.get(prop);
+                let updateCollectedStyle = true;
+                if (collectedEntry) {
+                    if (startTime != endTime &&
+                        startTime >= collectedEntry.startTime &&
+                        endTime <= collectedEntry.endTime) {
+                        context.errors.push(invalidParallelAnimation(prop, collectedEntry.startTime, collectedEntry.endTime, startTime, endTime));
+                        updateCollectedStyle = false;
+                    }
+                    // we always choose the smaller start time value since we
+                    // want to have a record of the entire animation window where
+                    // the style property is being animated in between
+                    startTime = collectedEntry.startTime;
+                }
+                if (updateCollectedStyle) {
+                    collectedStyles.set(prop, { startTime, endTime });
+                }
+                if (context.options) {
+                    validateStyleParams(value, context.options, context.errors);
+                }
+            });
+        });
+    }
+    visitKeyframes(metadata, context) {
+        const ast = { type: AnimationMetadataType.Keyframes, styles: [], options: null };
+        if (!context.currentAnimateTimings) {
+            context.errors.push(invalidKeyframes());
+            return ast;
+        }
+        const MAX_KEYFRAME_OFFSET = 1;
+        let totalKeyframesWithOffsets = 0;
+        const offsets = [];
+        let offsetsOutOfOrder = false;
+        let keyframesOutOfRange = false;
+        let previousOffset = 0;
+        const keyframes = metadata.steps.map((styles) => {
+            const style = this._makeStyleAst(styles, context);
+            let offsetVal = style.offset != null ? style.offset : consumeOffset(style.styles);
+            let offset = 0;
+            if (offsetVal != null) {
+                totalKeyframesWithOffsets++;
+                offset = style.offset = offsetVal;
+            }
+            keyframesOutOfRange = keyframesOutOfRange || offset < 0 || offset > 1;
+            offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset;
+            previousOffset = offset;
+            offsets.push(offset);
+            return style;
+        });
+        if (keyframesOutOfRange) {
+            context.errors.push(invalidOffset());
+        }
+        if (offsetsOutOfOrder) {
+            context.errors.push(keyframeOffsetsOutOfOrder());
+        }
+        const length = metadata.steps.length;
+        let generatedOffset = 0;
+        if (totalKeyframesWithOffsets > 0 && totalKeyframesWithOffsets < length) {
+            context.errors.push(keyframesMissingOffsets());
+        }
+        else if (totalKeyframesWithOffsets == 0) {
+            generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1);
+        }
+        const limit = length - 1;
+        const currentTime = context.currentTime;
+        const currentAnimateTimings = context.currentAnimateTimings;
+        const animateDuration = currentAnimateTimings.duration;
+        keyframes.forEach((kf, i) => {
+            const offset = generatedOffset > 0 ? (i == limit ? 1 : generatedOffset * i) : offsets[i];
+            const durationUpToThisFrame = offset * animateDuration;
+            context.currentTime = currentTime + currentAnimateTimings.delay + durationUpToThisFrame;
+            currentAnimateTimings.duration = durationUpToThisFrame;
+            this._validateStyleAst(kf, context);
+            kf.offset = offset;
+            ast.styles.push(kf);
+        });
+        return ast;
+    }
+    visitReference(metadata, context) {
+        return {
+            type: AnimationMetadataType.Reference,
+            animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),
+            options: normalizeAnimationOptions(metadata.options),
+        };
+    }
+    visitAnimateChild(metadata, context) {
+        context.depCount++;
+        return {
+            type: AnimationMetadataType.AnimateChild,
+            options: normalizeAnimationOptions(metadata.options),
+        };
+    }
+    visitAnimateRef(metadata, context) {
+        return {
+            type: AnimationMetadataType.AnimateRef,
+            animation: this.visitReference(metadata.animation, context),
+            options: normalizeAnimationOptions(metadata.options),
+        };
+    }
+    visitQuery(metadata, context) {
+        const parentSelector = context.currentQuerySelector;
+        const options = (metadata.options || {});
+        context.queryCount++;
+        context.currentQuery = metadata;
+        const [selector, includeSelf] = normalizeSelector(metadata.selector);
+        context.currentQuerySelector = parentSelector.length
+            ? parentSelector + ' ' + selector
+            : selector;
+        getOrSetDefaultValue(context.collectedStyles, context.currentQuerySelector, new Map());
+        const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);
+        context.currentQuery = null;
+        context.currentQuerySelector = parentSelector;
+        return {
+            type: AnimationMetadataType.Query,
+            selector,
+            limit: options.limit || 0,
+            optional: !!options.optional,
+            includeSelf,
+            animation,
+            originalSelector: metadata.selector,
+            options: normalizeAnimationOptions(metadata.options),
+        };
+    }
+    visitStagger(metadata, context) {
+        if (!context.currentQuery) {
+            context.errors.push(invalidStagger());
+        }
+        const timings = metadata.timings === 'full'
+            ? { duration: 0, delay: 0, easing: 'full' }
+            : resolveTiming(metadata.timings, context.errors, true);
+        return {
+            type: AnimationMetadataType.Stagger,
+            animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),
+            timings,
+            options: null,
+        };
+    }
+}
+function normalizeSelector(selector) {
+    const hasAmpersand = selector.split(/\s*,\s*/).find((token) => token == SELF_TOKEN)
+        ? true
+        : false;
+    if (hasAmpersand) {
+        selector = selector.replace(SELF_TOKEN_REGEX, '');
+    }
+    // Note: the :enter and :leave aren't normalized here since those
+    // selectors are filled in at runtime during timeline building
+    selector = selector
+        .replace(/@\*/g, NG_TRIGGER_SELECTOR)
+        .replace(/@\w+/g, (match) => NG_TRIGGER_SELECTOR + '-' + match.slice(1))
+        .replace(/:animating/g, NG_ANIMATING_SELECTOR);
+    return [selector, hasAmpersand];
+}
+function normalizeParams(obj) {
+    return obj ? { ...obj } : null;
+}
+class AnimationAstBuilderContext {
+    errors;
+    queryCount = 0;
+    depCount = 0;
+    currentTransition = null;
+    currentQuery = null;
+    currentQuerySelector = null;
+    currentAnimateTimings = null;
+    currentTime = 0;
+    collectedStyles = new Map();
+    options = null;
+    unsupportedCSSPropertiesFound = new Set();
+    constructor(errors) {
+        this.errors = errors;
+    }
+}
+function consumeOffset(styles) {
+    if (typeof styles == 'string')
+        return null;
+    let offset = null;
+    if (Array.isArray(styles)) {
+        styles.forEach((styleTuple) => {
+            if (styleTuple instanceof Map && styleTuple.has('offset')) {
+                const obj = styleTuple;
+                offset = parseFloat(obj.get('offset'));
+                obj.delete('offset');
+            }
+        });
+    }
+    else if (styles instanceof Map && styles.has('offset')) {
+        const obj = styles;
+        offset = parseFloat(obj.get('offset'));
+        obj.delete('offset');
+    }
+    return offset;
+}
+function constructTimingAst(value, errors) {
+    if (value.hasOwnProperty('duration')) {
+        return value;
+    }
+    if (typeof value == 'number') {
+        const duration = resolveTiming(value, errors).duration;
+        return makeTimingAst(duration, 0, '');
+    }
+    const strValue = value;
+    const isDynamic = strValue.split(/\s+/).some((v) => v.charAt(0) == '{' && v.charAt(1) == '{');
+    if (isDynamic) {
+        const ast = makeTimingAst(0, 0, '');
+        ast.dynamic = true;
+        ast.strValue = strValue;
+        return ast;
+    }
+    const timings = resolveTiming(strValue, errors);
+    return makeTimingAst(timings.duration, timings.delay, timings.easing);
+}
+function normalizeAnimationOptions(options) {
+    if (options) {
+        options = { ...options };
+        if (options['params']) {
+            options['params'] = normalizeParams(options['params']);
+        }
+    }
+    else {
+        options = {};
+    }
+    return options;
+}
+function makeTimingAst(duration, delay, easing) {
+    return { duration, delay, easing };
+}
+
+function createTimelineInstruction(element, keyframes, preStyleProps, postStyleProps, duration, delay, easing = null, subTimeline = false) {
+    return {
+        type: 1 /* AnimationTransitionInstructionType.TimelineAnimation */,
+        element,
+        keyframes,
+        preStyleProps,
+        postStyleProps,
+        duration,
+        delay,
+        totalTime: duration + delay,
+        easing,
+        subTimeline,
+    };
+}
+
+class ElementInstructionMap {
+    _map = new Map();
+    get(element) {
+        return this._map.get(element) || [];
+    }
+    append(element, instructions) {
+        let existingInstructions = this._map.get(element);
+        if (!existingInstructions) {
+            this._map.set(element, (existingInstructions = []));
+        }
+        existingInstructions.push(...instructions);
+    }
+    has(element) {
+        return this._map.has(element);
+    }
+    clear() {
+        this._map.clear();
+    }
+}
+
+const ONE_FRAME_IN_MILLISECONDS = 1;
+const ENTER_TOKEN = ':enter';
+const ENTER_TOKEN_REGEX = /* @__PURE__ */ new RegExp(ENTER_TOKEN, 'g');
+const LEAVE_TOKEN = ':leave';
+const LEAVE_TOKEN_REGEX = /* @__PURE__ */ new RegExp(LEAVE_TOKEN, 'g');
+/*
+ * The code within this file aims to generate web-animations-compatible keyframes from Angular's
+ * animation DSL code.
+ *
+ * The code below will be converted from:
+ *
+ * ```ts
+ * sequence([
+ *   style({ opacity: 0 }),
+ *   animate(1000, style({ opacity: 0 }))
+ * ])
+ * ```
+ *
+ * To:
+ * ```ts
+ * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }]
+ * duration = 1000
+ * delay = 0
+ * easing = ''
+ * ```
+ *
+ * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a
+ * combination of AST traversal and merge-sort-like algorithms are used.
+ *
+ * [AST Traversal]
+ * Each of the animation verbs, when executed, will return an string-map object representing what
+ * type of action it is (style, animate, group, etc...) and the data associated with it. This means
+ * that when functional composition mix of these functions is evaluated (like in the example above)
+ * then it will end up producing a tree of objects representing the animation itself.
+ *
+ * When this animation object tree is processed by the visitor code below it will visit each of the
+ * verb statements within the visitor. And during each visit it will build the context of the
+ * animation keyframes by interacting with the `TimelineBuilder`.
+ *
+ * [TimelineBuilder]
+ * This class is responsible for tracking the styles and building a series of keyframe objects for a
+ * timeline between a start and end time. The builder starts off with an initial timeline and each
+ * time the AST comes across a `group()`, `keyframes()` or a combination of the two within a
+ * `sequence()` then it will generate a sub timeline for each step as well as a new one after
+ * they are complete.
+ *
+ * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub
+ * timeline was created (based on one of the cases above) then the parent timeline will attempt to
+ * merge the styles used within the sub timelines into itself (only with group() this will happen).
+ * This happens with a merge operation (much like how the merge works in mergeSort) and it will only
+ * copy the most recently used styles from the sub timelines into the parent timeline. This ensures
+ * that if the styles are used later on in another phase of the animation then they will be the most
+ * up-to-date values.
+ *
+ * [How Missing Styles Are Updated]
+ * Each timeline has a `backFill` property which is responsible for filling in new styles into
+ * already processed keyframes if a new style shows up later within the animation sequence.
+ *
+ * ```ts
+ * sequence([
+ *   style({ width: 0 }),
+ *   animate(1000, style({ width: 100 })),
+ *   animate(1000, style({ width: 200 })),
+ *   animate(1000, style({ width: 300 }))
+ *   animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere
+ * else
+ * ])
+ * ```
+ *
+ * What is happening here is that the `height` value is added later in the sequence, but is missing
+ * from all previous animation steps. Therefore when a keyframe is created it would also be missing
+ * from all previous keyframes up until where it is first used. For the timeline keyframe generation
+ * to properly fill in the style it will place the previous value (the value from the parent
+ * timeline) or a default value of `*` into the backFill map.
+ *
+ * When a sub-timeline is created it will have its own backFill property. This is done so that
+ * styles present within the sub-timeline do not accidentally seep into the previous/future timeline
+ * keyframes
+ *
+ * [Validation]
+ * The code in this file is not responsible for validation. That functionality happens with within
+ * the `AnimationValidatorVisitor` code.
+ */
+function buildAnimationTimelines(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles = new Map(), finalStyles = new Map(), options, subInstructions, errors = []) {
+    return new AnimationTimelineBuilderVisitor().buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors);
+}
+class AnimationTimelineBuilderVisitor {
+    buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors = []) {
+        subInstructions = subInstructions || new ElementInstructionMap();
+        const context = new AnimationTimelineContext(driver, rootElement, subInstructions, enterClassName, leaveClassName, errors, []);
+        context.options = options;
+        const delay = options.delay ? resolveTimingValue(options.delay) : 0;
+        context.currentTimeline.delayNextStep(delay);
+        context.currentTimeline.setStyles([startingStyles], null, context.errors, options);
+        visitDslNode(this, ast, context);
+        // this checks to see if an actual animation happened
+        const timelines = context.timelines.filter((timeline) => timeline.containsAnimation());
+        // note: we just want to apply the final styles for the rootElement, so we do not
+        //       just apply the styles to the last timeline but the last timeline which
+        //       element is the root one (basically `*`-styles are replaced with the actual
+        //       state style values only for the root element)
+        if (timelines.length && finalStyles.size) {
+            let lastRootTimeline;
+            for (let i = timelines.length - 1; i >= 0; i--) {
+                const timeline = timelines[i];
+                if (timeline.element === rootElement) {
+                    lastRootTimeline = timeline;
+                    break;
+                }
+            }
+            if (lastRootTimeline && !lastRootTimeline.allowOnlyTimelineStyles()) {
+                lastRootTimeline.setStyles([finalStyles], null, context.errors, options);
+            }
+        }
+        return timelines.length
+            ? timelines.map((timeline) => timeline.buildKeyframes())
+            : [createTimelineInstruction(rootElement, [], [], [], 0, delay, '', false)];
+    }
+    visitTrigger(ast, context) {
+        // these values are not visited in this AST
+    }
+    visitState(ast, context) {
+        // these values are not visited in this AST
+    }
+    visitTransition(ast, context) {
+        // these values are not visited in this AST
+    }
+    visitAnimateChild(ast, context) {
+        const elementInstructions = context.subInstructions.get(context.element);
+        if (elementInstructions) {
+            const innerContext = context.createSubContext(ast.options);
+            const startTime = context.currentTimeline.currentTime;
+            const endTime = this._visitSubInstructions(elementInstructions, innerContext, innerContext.options);
+            if (startTime != endTime) {
+                // we do this on the upper context because we created a sub context for
+                // the sub child animations
+                context.transformIntoNewTimeline(endTime);
+            }
+        }
+        context.previousNode = ast;
+    }
+    visitAnimateRef(ast, context) {
+        const innerContext = context.createSubContext(ast.options);
+        innerContext.transformIntoNewTimeline();
+        this._applyAnimationRefDelays([ast.options, ast.animation.options], context, innerContext);
+        this.visitReference(ast.animation, innerContext);
+        context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);
+        context.previousNode = ast;
+    }
+    _applyAnimationRefDelays(animationsRefsOptions, context, innerContext) {
+        for (const animationRefOptions of animationsRefsOptions) {
+            const animationDelay = animationRefOptions?.delay;
+            if (animationDelay) {
+                const animationDelayValue = typeof animationDelay === 'number'
+                    ? animationDelay
+                    : resolveTimingValue(interpolateParams(animationDelay, animationRefOptions?.params ?? {}, context.errors));
+                innerContext.delayNextStep(animationDelayValue);
+            }
+        }
+    }
+    _visitSubInstructions(instructions, context, options) {
+        const startTime = context.currentTimeline.currentTime;
+        let furthestTime = startTime;
+        // this is a special-case for when a user wants to skip a sub
+        // animation from being fired entirely.
+        const duration = options.duration != null ? resolveTimingValue(options.duration) : null;
+        const delay = options.delay != null ? resolveTimingValue(options.delay) : null;
+        if (duration !== 0) {
+            instructions.forEach((instruction) => {
+                const instructionTimings = context.appendInstructionToTimeline(instruction, duration, delay);
+                furthestTime = Math.max(furthestTime, instructionTimings.duration + instructionTimings.delay);
+            });
+        }
+        return furthestTime;
+    }
+    visitReference(ast, context) {
+        context.updateOptions(ast.options, true);
+        visitDslNode(this, ast.animation, context);
+        context.previousNode = ast;
+    }
+    visitSequence(ast, context) {
+        const subContextCount = context.subContextCount;
+        let ctx = context;
+        const options = ast.options;
+        if (options && (options.params || options.delay)) {
+            ctx = context.createSubContext(options);
+            ctx.transformIntoNewTimeline();
+            if (options.delay != null) {
+                if (ctx.previousNode.type == AnimationMetadataType.Style) {
+                    ctx.currentTimeline.snapshotCurrentStyles();
+                    ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
+                }
+                const delay = resolveTimingValue(options.delay);
+                ctx.delayNextStep(delay);
+            }
+        }
+        if (ast.steps.length) {
+            ast.steps.forEach((s) => visitDslNode(this, s, ctx));
+            // this is here just in case the inner steps only contain or end with a style() call
+            ctx.currentTimeline.applyStylesToKeyframe();
+            // this means that some animation function within the sequence
+            // ended up creating a sub timeline (which means the current
+            // timeline cannot overlap with the contents of the sequence)
+            if (ctx.subContextCount > subContextCount) {
+                ctx.transformIntoNewTimeline();
+            }
+        }
+        context.previousNode = ast;
+    }
+    visitGroup(ast, context) {
+        const innerTimelines = [];
+        let furthestTime = context.currentTimeline.currentTime;
+        const delay = ast.options && ast.options.delay ? resolveTimingValue(ast.options.delay) : 0;
+        ast.steps.forEach((s) => {
+            const innerContext = context.createSubContext(ast.options);
+            if (delay) {
+                innerContext.delayNextStep(delay);
+            }
+            visitDslNode(this, s, innerContext);
+            furthestTime = Math.max(furthestTime, innerContext.currentTimeline.currentTime);
+            innerTimelines.push(innerContext.currentTimeline);
+        });
+        // this operation is run after the AST loop because otherwise
+        // if the parent timeline's collected styles were updated then
+        // it would pass in invalid data into the new-to-be forked items
+        innerTimelines.forEach((timeline) => context.currentTimeline.mergeTimelineCollectedStyles(timeline));
+        context.transformIntoNewTimeline(furthestTime);
+        context.previousNode = ast;
+    }
+    _visitTiming(ast, context) {
+        if (ast.dynamic) {
+            const strValue = ast.strValue;
+            const timingValue = context.params
+                ? interpolateParams(strValue, context.params, context.errors)
+                : strValue;
+            return resolveTiming(timingValue, context.errors);
+        }
+        else {
+            return { duration: ast.duration, delay: ast.delay, easing: ast.easing };
+        }
+    }
+    visitAnimate(ast, context) {
+        const timings = (context.currentAnimateTimings = this._visitTiming(ast.timings, context));
+        const timeline = context.currentTimeline;
+        if (timings.delay) {
+            context.incrementTime(timings.delay);
+            timeline.snapshotCurrentStyles();
+        }
+        const style = ast.style;
+        if (style.type == AnimationMetadataType.Keyframes) {
+            this.visitKeyframes(style, context);
+        }
+        else {
+            context.incrementTime(timings.duration);
+            this.visitStyle(style, context);
+            timeline.applyStylesToKeyframe();
+        }
+        context.currentAnimateTimings = null;
+        context.previousNode = ast;
+    }
+    visitStyle(ast, context) {
+        const timeline = context.currentTimeline;
+        const timings = context.currentAnimateTimings;
+        // this is a special case for when a style() call
+        // directly follows  an animate() call (but not inside of an animate() call)
+        if (!timings && timeline.hasCurrentStyleProperties()) {
+            timeline.forwardFrame();
+        }
+        const easing = (timings && timings.easing) || ast.easing;
+        if (ast.isEmptyStep) {
+            timeline.applyEmptyStep(easing);
+        }
+        else {
+            timeline.setStyles(ast.styles, easing, context.errors, context.options);
+        }
+        context.previousNode = ast;
+    }
+    visitKeyframes(ast, context) {
+        const currentAnimateTimings = context.currentAnimateTimings;
+        const startTime = context.currentTimeline.duration;
+        const duration = currentAnimateTimings.duration;
+        const innerContext = context.createSubContext();
+        const innerTimeline = innerContext.currentTimeline;
+        innerTimeline.easing = currentAnimateTimings.easing;
+        ast.styles.forEach((step) => {
+            const offset = step.offset || 0;
+            innerTimeline.forwardTime(offset * duration);
+            innerTimeline.setStyles(step.styles, step.easing, context.errors, context.options);
+            innerTimeline.applyStylesToKeyframe();
+        });
+        // this will ensure that the parent timeline gets all the styles from
+        // the child even if the new timeline below is not used
+        context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline);
+        // we do this because the window between this timeline and the sub timeline
+        // should ensure that the styles within are exactly the same as they were before
+        context.transformIntoNewTimeline(startTime + duration);
+        context.previousNode = ast;
+    }
+    visitQuery(ast, context) {
+        // in the event that the first step before this is a style step we need
+        // to ensure the styles are applied before the children are animated
+        const startTime = context.currentTimeline.currentTime;
+        const options = (ast.options || {});
+        const delay = options.delay ? resolveTimingValue(options.delay) : 0;
+        if (delay &&
+            (context.previousNode.type === AnimationMetadataType.Style ||
+                (startTime == 0 && context.currentTimeline.hasCurrentStyleProperties()))) {
+            context.currentTimeline.snapshotCurrentStyles();
+            context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
+        }
+        let furthestTime = startTime;
+        const elms = context.invokeQuery(ast.selector, ast.originalSelector, ast.limit, ast.includeSelf, options.optional ? true : false, context.errors);
+        context.currentQueryTotal = elms.length;
+        let sameElementTimeline = null;
+        elms.forEach((element, i) => {
+            context.currentQueryIndex = i;
+            const innerContext = context.createSubContext(ast.options, element);
+            if (delay) {
+                innerContext.delayNextStep(delay);
+            }
+            if (element === context.element) {
+                sameElementTimeline = innerContext.currentTimeline;
+            }
+            visitDslNode(this, ast.animation, innerContext);
+            // this is here just incase the inner steps only contain or end
+            // with a style() call (which is here to signal that this is a preparatory
+            // call to style an element before it is animated again)
+            innerContext.currentTimeline.applyStylesToKeyframe();
+            const endTime = innerContext.currentTimeline.currentTime;
+            furthestTime = Math.max(furthestTime, endTime);
+        });
+        context.currentQueryIndex = 0;
+        context.currentQueryTotal = 0;
+        context.transformIntoNewTimeline(furthestTime);
+        if (sameElementTimeline) {
+            context.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline);
+            context.currentTimeline.snapshotCurrentStyles();
+        }
+        context.previousNode = ast;
+    }
+    visitStagger(ast, context) {
+        const parentContext = context.parentContext;
+        const tl = context.currentTimeline;
+        const timings = ast.timings;
+        const duration = Math.abs(timings.duration);
+        const maxTime = duration * (context.currentQueryTotal - 1);
+        let delay = duration * context.currentQueryIndex;
+        let staggerTransformer = timings.duration < 0 ? 'reverse' : timings.easing;
+        switch (staggerTransformer) {
+            case 'reverse':
+                delay = maxTime - delay;
+                break;
+            case 'full':
+                delay = parentContext.currentStaggerTime;
+                break;
+        }
+        const timeline = context.currentTimeline;
+        if (delay) {
+            timeline.delayNextStep(delay);
+        }
+        const startingTime = timeline.currentTime;
+        visitDslNode(this, ast.animation, context);
+        context.previousNode = ast;
+        // time = duration + delay
+        // the reason why this computation is so complex is because
+        // the inner timeline may either have a delay value or a stretched
+        // keyframe depending on if a subtimeline is not used or is used.
+        parentContext.currentStaggerTime =
+            tl.currentTime - startingTime + (tl.startTime - parentContext.currentTimeline.startTime);
+    }
+}
+const DEFAULT_NOOP_PREVIOUS_NODE = {};
+class AnimationTimelineContext {
+    _driver;
+    element;
+    subInstructions;
+    _enterClassName;
+    _leaveClassName;
+    errors;
+    timelines;
+    parentContext = null;
+    currentTimeline;
+    currentAnimateTimings = null;
+    previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
+    subContextCount = 0;
+    options = {};
+    currentQueryIndex = 0;
+    currentQueryTotal = 0;
+    currentStaggerTime = 0;
+    constructor(_driver, element, subInstructions, _enterClassName, _leaveClassName, errors, timelines, initialTimeline) {
+        this._driver = _driver;
+        this.element = element;
+        this.subInstructions = subInstructions;
+        this._enterClassName = _enterClassName;
+        this._leaveClassName = _leaveClassName;
+        this.errors = errors;
+        this.timelines = timelines;
+        this.currentTimeline = initialTimeline || new TimelineBuilder(this._driver, element, 0);
+        timelines.push(this.currentTimeline);
+    }
+    get params() {
+        return this.options.params;
+    }
+    updateOptions(options, skipIfExists) {
+        if (!options)
+            return;
+        const newOptions = options;
+        let optionsToUpdate = this.options;
+        // NOTE: this will get patched up when other animation methods support duration overrides
+        if (newOptions.duration != null) {
+            optionsToUpdate.duration = resolveTimingValue(newOptions.duration);
+        }
+        if (newOptions.delay != null) {
+            optionsToUpdate.delay = resolveTimingValue(newOptions.delay);
+        }
+        const newParams = newOptions.params;
+        if (newParams) {
+            let paramsToUpdate = optionsToUpdate.params;
+            if (!paramsToUpdate) {
+                paramsToUpdate = this.options.params = {};
+            }
+            Object.keys(newParams).forEach((name) => {
+                if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) {
+                    paramsToUpdate[name] = interpolateParams(newParams[name], paramsToUpdate, this.errors);
+                }
+            });
+        }
+    }
+    _copyOptions() {
+        const options = {};
+        if (this.options) {
+            const oldParams = this.options.params;
+            if (oldParams) {
+                const params = (options['params'] = {});
+                Object.keys(oldParams).forEach((name) => {
+                    params[name] = oldParams[name];
+                });
+            }
+        }
+        return options;
+    }
+    createSubContext(options = null, element, newTime) {
+        const target = element || this.element;
+        const context = new AnimationTimelineContext(this._driver, target, this.subInstructions, this._enterClassName, this._leaveClassName, this.errors, this.timelines, this.currentTimeline.fork(target, newTime || 0));
+        context.previousNode = this.previousNode;
+        context.currentAnimateTimings = this.currentAnimateTimings;
+        context.options = this._copyOptions();
+        context.updateOptions(options);
+        context.currentQueryIndex = this.currentQueryIndex;
+        context.currentQueryTotal = this.currentQueryTotal;
+        context.parentContext = this;
+        this.subContextCount++;
+        return context;
+    }
+    transformIntoNewTimeline(newTime) {
+        this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
+        this.currentTimeline = this.currentTimeline.fork(this.element, newTime);
+        this.timelines.push(this.currentTimeline);
+        return this.currentTimeline;
+    }
+    appendInstructionToTimeline(instruction, duration, delay) {
+        const updatedTimings = {
+            duration: duration != null ? duration : instruction.duration,
+            delay: this.currentTimeline.currentTime + (delay != null ? delay : 0) + instruction.delay,
+            easing: '',
+        };
+        const builder = new SubTimelineBuilder(this._driver, instruction.element, instruction.keyframes, instruction.preStyleProps, instruction.postStyleProps, updatedTimings, instruction.stretchStartingKeyframe);
+        this.timelines.push(builder);
+        return updatedTimings;
+    }
+    incrementTime(time) {
+        this.currentTimeline.forwardTime(this.currentTimeline.duration + time);
+    }
+    delayNextStep(delay) {
+        // negative delays are not yet supported
+        if (delay > 0) {
+            this.currentTimeline.delayNextStep(delay);
+        }
+    }
+    invokeQuery(selector, originalSelector, limit, includeSelf, optional, errors) {
+        let results = [];
+        if (includeSelf) {
+            results.push(this.element);
+        }
+        if (selector.length > 0) {
+            // only if :self is used then the selector can be empty
+            selector = selector.replace(ENTER_TOKEN_REGEX, '.' + this._enterClassName);
+            selector = selector.replace(LEAVE_TOKEN_REGEX, '.' + this._leaveClassName);
+            const multi = limit != 1;
+            let elements = this._driver.query(this.element, selector, multi);
+            if (limit !== 0) {
+                elements =
+                    limit < 0
+                        ? elements.slice(elements.length + limit, elements.length)
+                        : elements.slice(0, limit);
+            }
+            results.push(...elements);
+        }
+        if (!optional && results.length == 0) {
+            errors.push(invalidQuery(originalSelector));
+        }
+        return results;
+    }
+}
+class TimelineBuilder {
+    _driver;
+    element;
+    startTime;
+    _elementTimelineStylesLookup;
+    duration = 0;
+    easing = null;
+    _previousKeyframe = new Map();
+    _currentKeyframe = new Map();
+    _keyframes = new Map();
+    _styleSummary = new Map();
+    _localTimelineStyles = new Map();
+    _globalTimelineStyles;
+    _pendingStyles = new Map();
+    _backFill = new Map();
+    _currentEmptyStepKeyframe = null;
+    constructor(_driver, element, startTime, _elementTimelineStylesLookup) {
+        this._driver = _driver;
+        this.element = element;
+        this.startTime = startTime;
+        this._elementTimelineStylesLookup = _elementTimelineStylesLookup;
+        if (!this._elementTimelineStylesLookup) {
+            this._elementTimelineStylesLookup = new Map();
+        }
+        this._globalTimelineStyles = this._elementTimelineStylesLookup.get(element);
+        if (!this._globalTimelineStyles) {
+            this._globalTimelineStyles = this._localTimelineStyles;
+            this._elementTimelineStylesLookup.set(element, this._localTimelineStyles);
+        }
+        this._loadKeyframe();
+    }
+    containsAnimation() {
+        switch (this._keyframes.size) {
+            case 0:
+                return false;
+            case 1:
+                return this.hasCurrentStyleProperties();
+            default:
+                return true;
+        }
+    }
+    hasCurrentStyleProperties() {
+        return this._currentKeyframe.size > 0;
+    }
+    get currentTime() {
+        return this.startTime + this.duration;
+    }
+    delayNextStep(delay) {
+        // in the event that a style() step is placed right before a stagger()
+        // and that style() step is the very first style() value in the animation
+        // then we need to make a copy of the keyframe [0, copy, 1] so that the delay
+        // properly applies the style() values to work with the stagger...
+        const hasPreStyleStep = this._keyframes.size === 1 && this._pendingStyles.size;
+        if (this.duration || hasPreStyleStep) {
+            this.forwardTime(this.currentTime + delay);
+            if (hasPreStyleStep) {
+                this.snapshotCurrentStyles();
+            }
+        }
+        else {
+            this.startTime += delay;
+        }
+    }
+    fork(element, currentTime) {
+        this.applyStylesToKeyframe();
+        return new TimelineBuilder(this._driver, element, currentTime || this.currentTime, this._elementTimelineStylesLookup);
+    }
+    _loadKeyframe() {
+        if (this._currentKeyframe) {
+            this._previousKeyframe = this._currentKeyframe;
+        }
+        this._currentKeyframe = this._keyframes.get(this.duration);
+        if (!this._currentKeyframe) {
+            this._currentKeyframe = new Map();
+            this._keyframes.set(this.duration, this._currentKeyframe);
+        }
+    }
+    forwardFrame() {
+        this.duration += ONE_FRAME_IN_MILLISECONDS;
+        this._loadKeyframe();
+    }
+    forwardTime(time) {
+        this.applyStylesToKeyframe();
+        this.duration = time;
+        this._loadKeyframe();
+    }
+    _updateStyle(prop, value) {
+        this._localTimelineStyles.set(prop, value);
+        this._globalTimelineStyles.set(prop, value);
+        this._styleSummary.set(prop, { time: this.currentTime, value });
+    }
+    allowOnlyTimelineStyles() {
+        return this._currentEmptyStepKeyframe !== this._currentKeyframe;
+    }
+    applyEmptyStep(easing) {
+        if (easing) {
+            this._previousKeyframe.set('easing', easing);
+        }
+        // special case for animate(duration):
+        // all missing styles are filled with a `*` value then
+        // if any destination styles are filled in later on the same
+        // keyframe then they will override the overridden styles
+        // We use `_globalTimelineStyles` here because there may be
+        // styles in previous keyframes that are not present in this timeline
+        for (let [prop, value] of this._globalTimelineStyles) {
+            this._backFill.set(prop, value || AUTO_STYLE);
+            this._currentKeyframe.set(prop, AUTO_STYLE);
+        }
+        this._currentEmptyStepKeyframe = this._currentKeyframe;
+    }
+    setStyles(input, easing, errors, options) {
+        if (easing) {
+            this._previousKeyframe.set('easing', easing);
+        }
+        const params = (options && options.params) || {};
+        const styles = flattenStyles(input, this._globalTimelineStyles);
+        for (let [prop, value] of styles) {
+            const val = interpolateParams(value, params, errors);
+            this._pendingStyles.set(prop, val);
+            if (!this._localTimelineStyles.has(prop)) {
+                this._backFill.set(prop, this._globalTimelineStyles.get(prop) ?? AUTO_STYLE);
+            }
+            this._updateStyle(prop, val);
+        }
+    }
+    applyStylesToKeyframe() {
+        if (this._pendingStyles.size == 0)
+            return;
+        this._pendingStyles.forEach((val, prop) => {
+            this._currentKeyframe.set(prop, val);
+        });
+        this._pendingStyles.clear();
+        this._localTimelineStyles.forEach((val, prop) => {
+            if (!this._currentKeyframe.has(prop)) {
+                this._currentKeyframe.set(prop, val);
+            }
+        });
+    }
+    snapshotCurrentStyles() {
+        for (let [prop, val] of this._localTimelineStyles) {
+            this._pendingStyles.set(prop, val);
+            this._updateStyle(prop, val);
+        }
+    }
+    getFinalKeyframe() {
+        return this._keyframes.get(this.duration);
+    }
+    get properties() {
+        const properties = [];
+        for (let prop in this._currentKeyframe) {
+            properties.push(prop);
+        }
+        return properties;
+    }
+    mergeTimelineCollectedStyles(timeline) {
+        timeline._styleSummary.forEach((details1, prop) => {
+            const details0 = this._styleSummary.get(prop);
+            if (!details0 || details1.time > details0.time) {
+                this._updateStyle(prop, details1.value);
+            }
+        });
+    }
+    buildKeyframes() {
+        this.applyStylesToKeyframe();
+        const preStyleProps = new Set();
+        const postStyleProps = new Set();
+        const isEmpty = this._keyframes.size === 1 && this.duration === 0;
+        let finalKeyframes = [];
+        this._keyframes.forEach((keyframe, time) => {
+            const finalKeyframe = new Map([...this._backFill, ...keyframe]);
+            finalKeyframe.forEach((value, prop) => {
+                if (value === _PRE_STYLE) {
+                    preStyleProps.add(prop);
+                }
+                else if (value === AUTO_STYLE) {
+                    postStyleProps.add(prop);
+                }
+            });
+            if (!isEmpty) {
+                finalKeyframe.set('offset', time / this.duration);
+            }
+            finalKeyframes.push(finalKeyframe);
+        });
+        const preProps = [...preStyleProps.values()];
+        const postProps = [...postStyleProps.values()];
+        // special case for a 0-second animation (which is designed just to place styles onscreen)
+        if (isEmpty) {
+            const kf0 = finalKeyframes[0];
+            const kf1 = new Map(kf0);
+            kf0.set('offset', 0);
+            kf1.set('offset', 1);
+            finalKeyframes = [kf0, kf1];
+        }
+        return createTimelineInstruction(this.element, finalKeyframes, preProps, postProps, this.duration, this.startTime, this.easing, false);
+    }
+}
+class SubTimelineBuilder extends TimelineBuilder {
+    keyframes;
+    preStyleProps;
+    postStyleProps;
+    _stretchStartingKeyframe;
+    timings;
+    constructor(driver, element, keyframes, preStyleProps, postStyleProps, timings, _stretchStartingKeyframe = false) {
+        super(driver, element, timings.delay);
+        this.keyframes = keyframes;
+        this.preStyleProps = preStyleProps;
+        this.postStyleProps = postStyleProps;
+        this._stretchStartingKeyframe = _stretchStartingKeyframe;
+        this.timings = { duration: timings.duration, delay: timings.delay, easing: timings.easing };
+    }
+    containsAnimation() {
+        return this.keyframes.length > 1;
+    }
+    buildKeyframes() {
+        let keyframes = this.keyframes;
+        let { delay, duration, easing } = this.timings;
+        if (this._stretchStartingKeyframe && delay) {
+            const newKeyframes = [];
+            const totalTime = duration + delay;
+            const startingGap = delay / totalTime;
+            // the original starting keyframe now starts once the delay is done
+            const newFirstKeyframe = new Map(keyframes[0]);
+            newFirstKeyframe.set('offset', 0);
+            newKeyframes.push(newFirstKeyframe);
+            const oldFirstKeyframe = new Map(keyframes[0]);
+            oldFirstKeyframe.set('offset', roundOffset(startingGap));
+            newKeyframes.push(oldFirstKeyframe);
+            /*
+              When the keyframe is stretched then it means that the delay before the animation
+              starts is gone. Instead the first keyframe is placed at the start of the animation
+              and it is then copied to where it starts when the original delay is over. This basically
+              means nothing animates during that delay, but the styles are still rendered. For this
+              to work the original offset values that exist in the original keyframes must be "warped"
+              so that they can take the new keyframe + delay into account.
+      
+              delay=1000, duration=1000, keyframes = 0 .5 1
+      
+              turns into
+      
+              delay=0, duration=2000, keyframes = 0 .33 .66 1
+             */
+            // offsets between 1 ... n -1 are all warped by the keyframe stretch
+            const limit = keyframes.length - 1;
+            for (let i = 1; i <= limit; i++) {
+                let kf = new Map(keyframes[i]);
+                const oldOffset = kf.get('offset');
+                const timeAtKeyframe = delay + oldOffset * duration;
+                kf.set('offset', roundOffset(timeAtKeyframe / totalTime));
+                newKeyframes.push(kf);
+            }
+            // the new starting keyframe should be added at the start
+            duration = totalTime;
+            delay = 0;
+            easing = '';
+            keyframes = newKeyframes;
+        }
+        return createTimelineInstruction(this.element, keyframes, this.preStyleProps, this.postStyleProps, duration, delay, easing, true);
+    }
+}
+function roundOffset(offset, decimalPoints = 3) {
+    const mult = Math.pow(10, decimalPoints - 1);
+    return Math.round(offset * mult) / mult;
+}
+function flattenStyles(input, allStyles) {
+    const styles = new Map();
+    let allProperties;
+    input.forEach((token) => {
+        if (token === '*') {
+            allProperties ??= allStyles.keys();
+            for (let prop of allProperties) {
+                styles.set(prop, AUTO_STYLE);
+            }
+        }
+        else {
+            for (let [prop, val] of token) {
+                styles.set(prop, val);
+            }
+        }
+    });
+    return styles;
+}
+
+function createTransitionInstruction(element, triggerName, fromState, toState, isRemovalTransition, fromStyles, toStyles, timelines, queriedElements, preStyleProps, postStyleProps, totalTime, errors) {
+    return {
+        type: 0 /* AnimationTransitionInstructionType.TransitionAnimation */,
+        element,
+        triggerName,
+        isRemovalTransition,
+        fromState,
+        fromStyles,
+        toState,
+        toStyles,
+        timelines,
+        queriedElements,
+        preStyleProps,
+        postStyleProps,
+        totalTime,
+        errors,
+    };
+}
+
+const EMPTY_OBJECT = {};
+class AnimationTransitionFactory {
+    _triggerName;
+    ast;
+    _stateStyles;
+    constructor(_triggerName, ast, _stateStyles) {
+        this._triggerName = _triggerName;
+        this.ast = ast;
+        this._stateStyles = _stateStyles;
+    }
+    match(currentState, nextState, element, params) {
+        return oneOrMoreTransitionsMatch(this.ast.matchers, currentState, nextState, element, params);
+    }
+    buildStyles(stateName, params, errors) {
+        let styler = this._stateStyles.get('*');
+        if (stateName !== undefined) {
+            styler = this._stateStyles.get(stateName?.toString()) || styler;
+        }
+        return styler ? styler.buildStyles(params, errors) : new Map();
+    }
+    build(driver, element, currentState, nextState, enterClassName, leaveClassName, currentOptions, nextOptions, subInstructions, skipAstBuild) {
+        const errors = [];
+        const transitionAnimationParams = (this.ast.options && this.ast.options.params) || EMPTY_OBJECT;
+        const currentAnimationParams = (currentOptions && currentOptions.params) || EMPTY_OBJECT;
+        const currentStateStyles = this.buildStyles(currentState, currentAnimationParams, errors);
+        const nextAnimationParams = (nextOptions && nextOptions.params) || EMPTY_OBJECT;
+        const nextStateStyles = this.buildStyles(nextState, nextAnimationParams, errors);
+        const queriedElements = new Set();
+        const preStyleMap = new Map();
+        const postStyleMap = new Map();
+        const isRemoval = nextState === 'void';
+        const animationOptions = {
+            params: applyParamDefaults(nextAnimationParams, transitionAnimationParams),
+            delay: this.ast.options?.delay,
+        };
+        const timelines = skipAstBuild
+            ? []
+            : buildAnimationTimelines(driver, element, this.ast.animation, enterClassName, leaveClassName, currentStateStyles, nextStateStyles, animationOptions, subInstructions, errors);
+        let totalTime = 0;
+        timelines.forEach((tl) => {
+            totalTime = Math.max(tl.duration + tl.delay, totalTime);
+        });
+        if (errors.length) {
+            return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, [], [], preStyleMap, postStyleMap, totalTime, errors);
+        }
+        timelines.forEach((tl) => {
+            const elm = tl.element;
+            const preProps = getOrSetDefaultValue(preStyleMap, elm, new Set());
+            tl.preStyleProps.forEach((prop) => preProps.add(prop));
+            const postProps = getOrSetDefaultValue(postStyleMap, elm, new Set());
+            tl.postStyleProps.forEach((prop) => postProps.add(prop));
+            if (elm !== element) {
+                queriedElements.add(elm);
+            }
+        });
+        if (typeof ngDevMode === 'undefined' || ngDevMode) {
+            checkNonAnimatableInTimelines(timelines, this._triggerName, driver);
+        }
+        return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, timelines, [...queriedElements.values()], preStyleMap, postStyleMap, totalTime);
+    }
+}
+/**
+ * Checks inside a set of timelines if they try to animate a css property which is not considered
+ * animatable, in that case it prints a warning on the console.
+ * Besides that the function doesn't have any other effect.
+ *
+ * Note: this check is done here after the timelines are built instead of doing on a lower level so
+ * that we can make sure that the warning appears only once per instruction (we can aggregate here
+ * all the issues instead of finding them separately).
+ *
+ * @param timelines The built timelines for the current instruction.
+ * @param triggerName The name of the trigger for the current instruction.
+ * @param driver Animation driver used to perform the check.
+ *
+ */
+function checkNonAnimatableInTimelines(timelines, triggerName, driver) {
+    if (!driver.validateAnimatableStyleProperty) {
+        return;
+    }
+    const allowedNonAnimatableProps = new Set([
+        // 'easing' is a utility/synthetic prop we use to represent
+        // easing functions, it represents a property of the animation
+        // which is not animatable but different values can be used
+        // in different steps
+        'easing',
+    ]);
+    const invalidNonAnimatableProps = new Set();
+    timelines.forEach(({ keyframes }) => {
+        const nonAnimatablePropsInitialValues = new Map();
+        keyframes.forEach((keyframe) => {
+            const entriesToCheck = Array.from(keyframe.entries()).filter(([prop]) => !allowedNonAnimatableProps.has(prop));
+            for (const [prop, value] of entriesToCheck) {
+                if (!driver.validateAnimatableStyleProperty(prop)) {
+                    if (nonAnimatablePropsInitialValues.has(prop) && !invalidNonAnimatableProps.has(prop)) {
+                        const propInitialValue = nonAnimatablePropsInitialValues.get(prop);
+                        if (propInitialValue !== value) {
+                            invalidNonAnimatableProps.add(prop);
+                        }
+                    }
+                    else {
+                        nonAnimatablePropsInitialValues.set(prop, value);
+                    }
+                }
+            }
+        });
+    });
+    if (invalidNonAnimatableProps.size > 0) {
+        console.warn(`Warning: The animation trigger "${triggerName}" is attempting to animate the following` +
+            ' not animatable properties: ' +
+            Array.from(invalidNonAnimatableProps).join(', ') +
+            '\n' +
+            '(to check the list of all animatable properties visit https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties)');
+    }
+}
+function oneOrMoreTransitionsMatch(matchFns, currentState, nextState, element, params) {
+    return matchFns.some((fn) => fn(currentState, nextState, element, params));
+}
+function applyParamDefaults(userParams, defaults) {
+    const result = { ...defaults };
+    Object.entries(userParams).forEach(([key, value]) => {
+        if (value != null) {
+            result[key] = value;
+        }
+    });
+    return result;
+}
+class AnimationStateStyles {
+    styles;
+    defaultParams;
+    normalizer;
+    constructor(styles, defaultParams, normalizer) {
+        this.styles = styles;
+        this.defaultParams = defaultParams;
+        this.normalizer = normalizer;
+    }
+    buildStyles(params, errors) {
+        const finalStyles = new Map();
+        const combinedParams = applyParamDefaults(params, this.defaultParams);
+        this.styles.styles.forEach((value) => {
+            if (typeof value !== 'string') {
+                value.forEach((val, prop) => {
+                    if (val) {
+                        val = interpolateParams(val, combinedParams, errors);
+                    }
+                    const normalizedProp = this.normalizer.normalizePropertyName(prop, errors);
+                    val = this.normalizer.normalizeStyleValue(prop, normalizedProp, val, errors);
+                    finalStyles.set(prop, val);
+                });
+            }
+        });
+        return finalStyles;
+    }
+}
+
+function buildTrigger(name, ast, normalizer) {
+    return new AnimationTrigger(name, ast, normalizer);
+}
+class AnimationTrigger {
+    name;
+    ast;
+    _normalizer;
+    transitionFactories = [];
+    fallbackTransition;
+    states = new Map();
+    constructor(name, ast, _normalizer) {
+        this.name = name;
+        this.ast = ast;
+        this._normalizer = _normalizer;
+        ast.states.forEach((ast) => {
+            const defaultParams = (ast.options && ast.options.params) || {};
+            this.states.set(ast.name, new AnimationStateStyles(ast.style, defaultParams, _normalizer));
+        });
+        balanceProperties(this.states, 'true', '1');
+        balanceProperties(this.states, 'false', '0');
+        ast.transitions.forEach((ast) => {
+            this.transitionFactories.push(new AnimationTransitionFactory(name, ast, this.states));
+        });
+        this.fallbackTransition = createFallbackTransition(name, this.states);
+    }
+    get containsQueries() {
+        return this.ast.queryCount > 0;
+    }
+    matchTransition(currentState, nextState, element, params) {
+        const entry = this.transitionFactories.find((f) => f.match(currentState, nextState, element, params));
+        return entry || null;
+    }
+    matchStyles(currentState, params, errors) {
+        return this.fallbackTransition.buildStyles(currentState, params, errors);
+    }
+}
+function createFallbackTransition(triggerName, states, normalizer) {
+    const matchers = [(fromState, toState) => true];
+    const animation = { type: AnimationMetadataType.Sequence, steps: [], options: null };
+    const transition = {
+        type: AnimationMetadataType.Transition,
+        animation,
+        matchers,
+        options: null,
+        queryCount: 0,
+        depCount: 0,
+    };
+    return new AnimationTransitionFactory(triggerName, transition, states);
+}
+function balanceProperties(stateMap, key1, key2) {
+    if (stateMap.has(key1)) {
+        if (!stateMap.has(key2)) {
+            stateMap.set(key2, stateMap.get(key1));
+        }
+    }
+    else if (stateMap.has(key2)) {
+        stateMap.set(key1, stateMap.get(key2));
+    }
+}
+
+const EMPTY_INSTRUCTION_MAP = /* @__PURE__ */ new ElementInstructionMap();
+class TimelineAnimationEngine {
+    bodyNode;
+    _driver;
+    _normalizer;
+    _animations = new Map();
+    _playersById = new Map();
+    players = [];
+    constructor(bodyNode, _driver, _normalizer) {
+        this.bodyNode = bodyNode;
+        this._driver = _driver;
+        this._normalizer = _normalizer;
+    }
+    register(id, metadata) {
+        const errors = [];
+        const warnings = [];
+        const ast = buildAnimationAst(this._driver, metadata, errors, warnings);
+        if (errors.length) {
+            throw registerFailed(errors);
+        }
+        else {
+            if (typeof ngDevMode === 'undefined' || ngDevMode) {
+                if (warnings.length) {
+                    warnRegister(warnings);
+                }
+            }
+            this._animations.set(id, ast);
+        }
+    }
+    _buildPlayer(i, preStyles, postStyles) {
+        const element = i.element;
+        const keyframes = normalizeKeyframes(this._normalizer, i.keyframes, preStyles, postStyles);
+        return this._driver.animate(element, keyframes, i.duration, i.delay, i.easing, [], true);
+    }
+    create(id, element, options = {}) {
+        const errors = [];
+        const ast = this._animations.get(id);
+        let instructions;
+        const autoStylesMap = new Map();
+        if (ast) {
+            instructions = buildAnimationTimelines(this._driver, element, ast, ENTER_CLASSNAME, LEAVE_CLASSNAME, new Map(), new Map(), options, EMPTY_INSTRUCTION_MAP, errors);
+            instructions.forEach((inst) => {
+                const styles = getOrSetDefaultValue(autoStylesMap, inst.element, new Map());
+                inst.postStyleProps.forEach((prop) => styles.set(prop, null));
+            });
+        }
+        else {
+            errors.push(missingOrDestroyedAnimation());
+            instructions = [];
+        }
+        if (errors.length) {
+            throw createAnimationFailed(errors);
+        }
+        autoStylesMap.forEach((styles, element) => {
+            styles.forEach((_, prop) => {
+                styles.set(prop, this._driver.computeStyle(element, prop, AUTO_STYLE));
+            });
+        });
+        const players = instructions.map((i) => {
+            const styles = autoStylesMap.get(i.element);
+            return this._buildPlayer(i, new Map(), styles);
+        });
+        const player = optimizeGroupPlayer(players);
+        this._playersById.set(id, player);
+        player.onDestroy(() => this.destroy(id));
+        this.players.push(player);
+        return player;
+    }
+    destroy(id) {
+        const player = this._getPlayer(id);
+        player.destroy();
+        this._playersById.delete(id);
+        const index = this.players.indexOf(player);
+        if (index >= 0) {
+            this.players.splice(index, 1);
+        }
+    }
+    _getPlayer(id) {
+        const player = this._playersById.get(id);
+        if (!player) {
+            throw missingPlayer(id);
+        }
+        return player;
+    }
+    listen(id, element, eventName, callback) {
+        // triggerName, fromState, toState are all ignored for timeline animations
+        const baseEvent = makeAnimationEvent(element, '', '', '');
+        listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback);
+        return () => { };
+    }
+    command(id, element, command, args) {
+        if (command == 'register') {
+            this.register(id, args[0]);
+            return;
+        }
+        if (command == 'create') {
+            const options = (args[0] || {});
+            this.create(id, element, options);
+            return;
+        }
+        const player = this._getPlayer(id);
+        switch (command) {
+            case 'play':
+                player.play();
+                break;
+            case 'pause':
+                player.pause();
+                break;
+            case 'reset':
+                player.reset();
+                break;
+            case 'restart':
+                player.restart();
+                break;
+            case 'finish':
+                player.finish();
+                break;
+            case 'init':
+                player.init();
+                break;
+            case 'setPosition':
+                player.setPosition(parseFloat(args[0]));
+                break;
+            case 'destroy':
+                this.destroy(id);
+                break;
+        }
+    }
+}
+
+const QUEUED_CLASSNAME = 'ng-animate-queued';
+const QUEUED_SELECTOR = '.ng-animate-queued';
+const DISABLED_CLASSNAME = 'ng-animate-disabled';
+const DISABLED_SELECTOR = '.ng-animate-disabled';
+const STAR_CLASSNAME = 'ng-star-inserted';
+const STAR_SELECTOR = '.ng-star-inserted';
+const EMPTY_PLAYER_ARRAY = [];
+const NULL_REMOVAL_STATE = {
+    namespaceId: '',
+    setForRemoval: false,
+    setForMove: false,
+    hasAnimation: false,
+    removedBeforeQueried: false,
+};
+const NULL_REMOVED_QUERIED_STATE = {
+    namespaceId: '',
+    setForMove: false,
+    setForRemoval: false,
+    hasAnimation: false,
+    removedBeforeQueried: true,
+};
+const REMOVAL_FLAG = '__ng_removed';
+class StateValue {
+    namespaceId;
+    value;
+    options;
+    get params() {
+        return this.options.params;
+    }
+    constructor(input, namespaceId = '') {
+        this.namespaceId = namespaceId;
+        const isObj = input && input.hasOwnProperty('value');
+        const value = isObj ? input['value'] : input;
+        this.value = normalizeTriggerValue(value);
+        if (isObj) {
+            // we drop the value property from options.
+            const { value, ...options } = input;
+            this.options = options;
+        }
+        else {
+            this.options = {};
+        }
+        if (!this.options.params) {
+            this.options.params = {};
+        }
+    }
+    absorbOptions(options) {
+        const newParams = options.params;
+        if (newParams) {
+            const oldParams = this.options.params;
+            Object.keys(newParams).forEach((prop) => {
+                if (oldParams[prop] == null) {
+                    oldParams[prop] = newParams[prop];
+                }
+            });
+        }
+    }
+}
+const VOID_VALUE = 'void';
+const DEFAULT_STATE_VALUE = /* @__PURE__ */ new StateValue(VOID_VALUE);
+class AnimationTransitionNamespace {
+    id;
+    hostElement;
+    _engine;
+    players = [];
+    _triggers = new Map();
+    _queue = [];
+    _elementListeners = new Map();
+    _hostClassName;
+    constructor(id, hostElement, _engine) {
+        this.id = id;
+        this.hostElement = hostElement;
+        this._engine = _engine;
+        this._hostClassName = 'ng-tns-' + id;
+        addClass(hostElement, this._hostClassName);
+    }
+    listen(element, name, phase, callback) {
+        if (!this._triggers.has(name)) {
+            throw missingTrigger(phase, name);
+        }
+        if (phase == null || phase.length == 0) {
+            throw missingEvent(name);
+        }
+        if (!isTriggerEventValid(phase)) {
+            throw unsupportedTriggerEvent(phase, name);
+        }
+        const listeners = getOrSetDefaultValue(this._elementListeners, element, []);
+        const data = { name, phase, callback };
+        listeners.push(data);
+        const triggersWithStates = getOrSetDefaultValue(this._engine.statesByElement, element, new Map());
+        if (!triggersWithStates.has(name)) {
+            addClass(element, NG_TRIGGER_CLASSNAME);
+            addClass(element, NG_TRIGGER_CLASSNAME + '-' + name);
+            triggersWithStates.set(name, DEFAULT_STATE_VALUE);
+        }
+        return () => {
+            // the event listener is removed AFTER the flush has occurred such
+            // that leave animations callbacks can fire (otherwise if the node
+            // is removed in between then the listeners would be deregistered)
+            this._engine.afterFlush(() => {
+                const index = listeners.indexOf(data);
+                if (index >= 0) {
+                    listeners.splice(index, 1);
+                }
+                if (!this._triggers.has(name)) {
+                    triggersWithStates.delete(name);
+                }
+            });
+        };
+    }
+    register(name, ast) {
+        if (this._triggers.has(name)) {
+            // throw
+            return false;
+        }
+        else {
+            this._triggers.set(name, ast);
+            return true;
+        }
+    }
+    _getTrigger(name) {
+        const trigger = this._triggers.get(name);
+        if (!trigger) {
+            throw unregisteredTrigger(name);
+        }
+        return trigger;
+    }
+    trigger(element, triggerName, value, defaultToFallback = true) {
+        const trigger = this._getTrigger(triggerName);
+        const player = new TransitionAnimationPlayer(this.id, triggerName, element);
+        let triggersWithStates = this._engine.statesByElement.get(element);
+        if (!triggersWithStates) {
+            addClass(element, NG_TRIGGER_CLASSNAME);
+            addClass(element, NG_TRIGGER_CLASSNAME + '-' + triggerName);
+            this._engine.statesByElement.set(element, (triggersWithStates = new Map()));
+        }
+        let fromState = triggersWithStates.get(triggerName);
+        const toState = new StateValue(value, this.id);
+        const isObj = value && value.hasOwnProperty('value');
+        if (!isObj && fromState) {
+            toState.absorbOptions(fromState.options);
+        }
+        triggersWithStates.set(triggerName, toState);
+        if (!fromState) {
+            fromState = DEFAULT_STATE_VALUE;
+        }
+        const isRemoval = toState.value === VOID_VALUE;
+        // normally this isn't reached by here, however, if an object expression
+        // is passed in then it may be a new object each time. Comparing the value
+        // is important since that will stay the same despite there being a new object.
+        // The removal arc here is special cased because the same element is triggered
+        // twice in the event that it contains animations on the outer/inner portions
+        // of the host container
+        if (!isRemoval && fromState.value === toState.value) {
+            // this means that despite the value not changing, some inner params
+            // have changed which means that the animation final styles need to be applied
+            if (!objEquals(fromState.params, toState.params)) {
+                const errors = [];
+                const fromStyles = trigger.matchStyles(fromState.value, fromState.params, errors);
+                const toStyles = trigger.matchStyles(toState.value, toState.params, errors);
+                if (errors.length) {
+                    this._engine.reportError(errors);
+                }
+                else {
+                    this._engine.afterFlush(() => {
+                        eraseStyles(element, fromStyles);
+                        setStyles(element, toStyles);
+                    });
+                }
+            }
+            return;
+        }
+        const playersOnElement = getOrSetDefaultValue(this._engine.playersByElement, element, []);
+        playersOnElement.forEach((player) => {
+            // only remove the player if it is queued on the EXACT same trigger/namespace
+            // we only also deal with queued players here because if the animation has
+            // started then we want to keep the player alive until the flush happens
+            // (which is where the previousPlayers are passed into the new player)
+            if (player.namespaceId == this.id && player.triggerName == triggerName && player.queued) {
+                player.destroy();
+            }
+        });
+        let transition = trigger.matchTransition(fromState.value, toState.value, element, toState.params);
+        let isFallbackTransition = false;
+        if (!transition) {
+            if (!defaultToFallback)
+                return;
+            transition = trigger.fallbackTransition;
+            isFallbackTransition = true;
+        }
+        this._engine.totalQueuedPlayers++;
+        this._queue.push({
+            element,
+            triggerName,
+            transition,
+            fromState,
+            toState,
+            player,
+            isFallbackTransition,
+        });
+        if (!isFallbackTransition) {
+            addClass(element, QUEUED_CLASSNAME);
+            player.onStart(() => {
+                removeClass(element, QUEUED_CLASSNAME);
+            });
+        }
+        player.onDone(() => {
+            let index = this.players.indexOf(player);
+            if (index >= 0) {
+                this.players.splice(index, 1);
+            }
+            const players = this._engine.playersByElement.get(element);
+            if (players) {
+                let index = players.indexOf(player);
+                if (index >= 0) {
+                    players.splice(index, 1);
+                }
+            }
+        });
+        this.players.push(player);
+        playersOnElement.push(player);
+        return player;
+    }
+    deregister(name) {
+        this._triggers.delete(name);
+        this._engine.statesByElement.forEach((stateMap) => stateMap.delete(name));
+        this._elementListeners.forEach((listeners, element) => {
+            this._elementListeners.set(element, listeners.filter((entry) => {
+                return entry.name != name;
+            }));
+        });
+    }
+    clearElementCache(element) {
+        this._engine.statesByElement.delete(element);
+        this._elementListeners.delete(element);
+        const elementPlayers = this._engine.playersByElement.get(element);
+        if (elementPlayers) {
+            elementPlayers.forEach((player) => player.destroy());
+            this._engine.playersByElement.delete(element);
+        }
+    }
+    _signalRemovalForInnerTriggers(rootElement, context) {
+        const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);
+        // emulate a leave animation for all inner nodes within this node.
+        // If there are no animations found for any of the nodes then clear the cache
+        // for the element.
+        elements.forEach((elm) => {
+            // this means that an inner remove() operation has already kicked off
+            // the animation on this element...
+            if (elm[REMOVAL_FLAG])
+                return;
+            const namespaces = this._engine.fetchNamespacesByElement(elm);
+            if (namespaces.size) {
+                namespaces.forEach((ns) => ns.triggerLeaveAnimation(elm, context, false, true));
+            }
+            else {
+                this.clearElementCache(elm);
+            }
+        });
+        // If the child elements were removed along with the parent, their animations might not
+        // have completed. Clear all the elements from the cache so we don't end up with a memory leak.
+        this._engine.afterFlushAnimationsDone(() => elements.forEach((elm) => this.clearElementCache(elm)));
+    }
+    triggerLeaveAnimation(element, context, destroyAfterComplete, defaultToFallback) {
+        const triggerStates = this._engine.statesByElement.get(element);
+        const previousTriggersValues = new Map();
+        if (triggerStates) {
+            const players = [];
+            triggerStates.forEach((state, triggerName) => {
+                previousTriggersValues.set(triggerName, state.value);
+                // this check is here in the event that an element is removed
+                // twice (both on the host level and the component level)
+                if (this._triggers.has(triggerName)) {
+                    const player = this.trigger(element, triggerName, VOID_VALUE, defaultToFallback);
+                    if (player) {
+                        players.push(player);
+                    }
+                }
+            });
+            if (players.length) {
+                this._engine.markElementAsRemoved(this.id, element, true, context, previousTriggersValues);
+                if (destroyAfterComplete) {
+                    optimizeGroupPlayer(players).onDone(() => this._engine.processLeaveNode(element));
+                }
+                return true;
+            }
+        }
+        return false;
+    }
+    prepareLeaveAnimationListeners(element) {
+        const listeners = this._elementListeners.get(element);
+        const elementStates = this._engine.statesByElement.get(element);
+        // if this statement fails then it means that the element was picked up
+        // by an earlier flush (or there are no listeners at all to track the leave).
+        if (listeners && elementStates) {
+            const visitedTriggers = new Set();
+            listeners.forEach((listener) => {
+                const triggerName = listener.name;
+                if (visitedTriggers.has(triggerName))
+                    return;
+                visitedTriggers.add(triggerName);
+                const trigger = this._triggers.get(triggerName);
+                const transition = trigger.fallbackTransition;
+                const fromState = elementStates.get(triggerName) || DEFAULT_STATE_VALUE;
+                const toState = new StateValue(VOID_VALUE);
+                const player = new TransitionAnimationPlayer(this.id, triggerName, element);
+                this._engine.totalQueuedPlayers++;
+                this._queue.push({
+                    element,
+                    triggerName,
+                    transition,
+                    fromState,
+                    toState,
+                    player,
+                    isFallbackTransition: true,
+                });
+            });
+        }
+    }
+    removeNode(element, context) {
+        const engine = this._engine;
+        if (element.childElementCount) {
+            this._signalRemovalForInnerTriggers(element, context);
+        }
+        // this means that a * => VOID animation was detected and kicked off
+        if (this.triggerLeaveAnimation(element, context, true))
+            return;
+        // find the player that is animating and make sure that the
+        // removal is delayed until that player has completed
+        let containsPotentialParentTransition = false;
+        if (engine.totalAnimations) {
+            const currentPlayers = engine.players.length
+                ? engine.playersByQueriedElement.get(element)
+                : [];
+            // when this `if statement` does not continue forward it means that
+            // a previous animation query has selected the current element and
+            // is animating it. In this situation want to continue forwards and
+            // allow the element to be queued up for animation later.
+            if (currentPlayers && currentPlayers.length) {
+                containsPotentialParentTransition = true;
+            }
+            else {
+                let parent = element;
+                while ((parent = parent.parentNode)) {
+                    const triggers = engine.statesByElement.get(parent);
+                    if (triggers) {
+                        containsPotentialParentTransition = true;
+                        break;
+                    }
+                }
+            }
+        }
+        // at this stage we know that the element will either get removed
+        // during flush or will be picked up by a parent query. Either way
+        // we need to fire the listeners for this element when it DOES get
+        // removed (once the query parent animation is done or after flush)
+        this.prepareLeaveAnimationListeners(element);
+        // whether or not a parent has an animation we need to delay the deferral of the leave
+        // operation until we have more information (which we do after flush() has been called)
+        if (containsPotentialParentTransition) {
+            engine.markElementAsRemoved(this.id, element, false, context);
+        }
+        else {
+            const removalFlag = element[REMOVAL_FLAG];
+            if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {
+                // we do this after the flush has occurred such
+                // that the callbacks can be fired
+                engine.afterFlush(() => this.clearElementCache(element));
+                engine.destroyInnerAnimations(element);
+                engine._onRemovalComplete(element, context);
+            }
+        }
+    }
+    insertNode(element, parent) {
+        addClass(element, this._hostClassName);
+    }
+    drainQueuedTransitions(microtaskId) {
+        const instructions = [];
+        this._queue.forEach((entry) => {
+            const player = entry.player;
+            if (player.destroyed)
+                return;
+            const element = entry.element;
+            const listeners = this._elementListeners.get(element);
+            if (listeners) {
+                listeners.forEach((listener) => {
+                    if (listener.name == entry.triggerName) {
+                        const baseEvent = makeAnimationEvent(element, entry.triggerName, entry.fromState.value, entry.toState.value);
+                        baseEvent['_data'] = microtaskId;
+                        listenOnPlayer(entry.player, listener.phase, baseEvent, listener.callback);
+                    }
+                });
+            }
+            if (player.markedForDestroy) {
+                this._engine.afterFlush(() => {
+                    // now we can destroy the element properly since the event listeners have
+                    // been bound to the player
+                    player.destroy();
+                });
+            }
+            else {
+                instructions.push(entry);
+            }
+        });
+        this._queue = [];
+        return instructions.sort((a, b) => {
+            // if depCount == 0 them move to front
+            // otherwise if a contains b then move back
+            const d0 = a.transition.ast.depCount;
+            const d1 = b.transition.ast.depCount;
+            if (d0 == 0 || d1 == 0) {
+                return d0 - d1;
+            }
+            return this._engine.driver.containsElement(a.element, b.element) ? 1 : -1;
+        });
+    }
+    destroy(context) {
+        this.players.forEach((p) => p.destroy());
+        this._signalRemovalForInnerTriggers(this.hostElement, context);
+    }
+}
+class TransitionAnimationEngine {
+    bodyNode;
+    driver;
+    _normalizer;
+    players = [];
+    newHostElements = new Map();
+    playersByElement = new Map();
+    playersByQueriedElement = new Map();
+    statesByElement = new Map();
+    disabledNodes = new Set();
+    totalAnimations = 0;
+    totalQueuedPlayers = 0;
+    _namespaceLookup = {};
+    _namespaceList = [];
+    _flushFns = [];
+    _whenQuietFns = [];
+    namespacesByHostElement = new Map();
+    collectedEnterElements = [];
+    collectedLeaveElements = [];
+    // this method is designed to be overridden by the code that uses this engine
+    onRemovalComplete = (element, context) => { };
+    /** @internal */
+    _onRemovalComplete(element, context) {
+        this.onRemovalComplete(element, context);
+    }
+    constructor(bodyNode, driver, _normalizer) {
+        this.bodyNode = bodyNode;
+        this.driver = driver;
+        this._normalizer = _normalizer;
+    }
+    get queuedPlayers() {
+        const players = [];
+        this._namespaceList.forEach((ns) => {
+            ns.players.forEach((player) => {
+                if (player.queued) {
+                    players.push(player);
+                }
+            });
+        });
+        return players;
+    }
+    createNamespace(namespaceId, hostElement) {
+        const ns = new AnimationTransitionNamespace(namespaceId, hostElement, this);
+        if (this.bodyNode && this.driver.containsElement(this.bodyNode, hostElement)) {
+            this._balanceNamespaceList(ns, hostElement);
+        }
+        else {
+            // defer this later until flush during when the host element has
+            // been inserted so that we know exactly where to place it in
+            // the namespace list
+            this.newHostElements.set(hostElement, ns);
+            // given that this host element is a part of the animation code, it
+            // may or may not be inserted by a parent node that is of an
+            // animation renderer type. If this happens then we can still have
+            // access to this item when we query for :enter nodes. If the parent
+            // is a renderer then the set data-structure will normalize the entry
+            this.collectEnterElement(hostElement);
+        }
+        return (this._namespaceLookup[namespaceId] = ns);
+    }
+    _balanceNamespaceList(ns, hostElement) {
+        const namespaceList = this._namespaceList;
+        const namespacesByHostElement = this.namespacesByHostElement;
+        const limit = namespaceList.length - 1;
+        if (limit >= 0) {
+            let found = false;
+            // Find the closest ancestor with an existing namespace so we can then insert `ns` after it,
+            // establishing a top-down ordering of namespaces in `this._namespaceList`.
+            let ancestor = this.driver.getParentElement(hostElement);
+            while (ancestor) {
+                const ancestorNs = namespacesByHostElement.get(ancestor);
+                if (ancestorNs) {
+                    // An animation namespace has been registered for this ancestor, so we insert `ns`
+                    // right after it to establish top-down ordering of animation namespaces.
+                    const index = namespaceList.indexOf(ancestorNs);
+                    namespaceList.splice(index + 1, 0, ns);
+                    found = true;
+                    break;
+                }
+                ancestor = this.driver.getParentElement(ancestor);
+            }
+            if (!found) {
+                // No namespace exists that is an ancestor of `ns`, so `ns` is inserted at the front to
+                // ensure that any existing descendants are ordered after `ns`, retaining the desired
+                // top-down ordering.
+                namespaceList.unshift(ns);
+            }
+        }
+        else {
+            namespaceList.push(ns);
+        }
+        namespacesByHostElement.set(hostElement, ns);
+        return ns;
+    }
+    register(namespaceId, hostElement) {
+        let ns = this._namespaceLookup[namespaceId];
+        if (!ns) {
+            ns = this.createNamespace(namespaceId, hostElement);
+        }
+        return ns;
+    }
+    registerTrigger(namespaceId, name, trigger) {
+        let ns = this._namespaceLookup[namespaceId];
+        if (ns && ns.register(name, trigger)) {
+            this.totalAnimations++;
+        }
+    }
+    destroy(namespaceId, context) {
+        if (!namespaceId)
+            return;
+        this.afterFlush(() => { });
+        this.afterFlushAnimationsDone(() => {
+            const ns = this._fetchNamespace(namespaceId);
+            this.namespacesByHostElement.delete(ns.hostElement);
+            const index = this._namespaceList.indexOf(ns);
+            if (index >= 0) {
+                this._namespaceList.splice(index, 1);
+            }
+            ns.destroy(context);
+            delete this._namespaceLookup[namespaceId];
+        });
+    }
+    _fetchNamespace(id) {
+        return this._namespaceLookup[id];
+    }
+    fetchNamespacesByElement(element) {
+        // normally there should only be one namespace per element, however
+        // if @triggers are placed on both the component element and then
+        // its host element (within the component code) then there will be
+        // two namespaces returned. We use a set here to simply deduplicate
+        // the namespaces in case (for the reason described above) there are multiple triggers
+        const namespaces = new Set();
+        const elementStates = this.statesByElement.get(element);
+        if (elementStates) {
+            for (let stateValue of elementStates.values()) {
+                if (stateValue.namespaceId) {
+                    const ns = this._fetchNamespace(stateValue.namespaceId);
+                    if (ns) {
+                        namespaces.add(ns);
+                    }
+                }
+            }
+        }
+        return namespaces;
+    }
+    trigger(namespaceId, element, name, value) {
+        if (isElementNode(element)) {
+            const ns = this._fetchNamespace(namespaceId);
+            if (ns) {
+                ns.trigger(element, name, value);
+                return true;
+            }
+        }
+        return false;
+    }
+    insertNode(namespaceId, element, parent, insertBefore) {
+        if (!isElementNode(element))
+            return;
+        // special case for when an element is removed and reinserted (move operation)
+        // when this occurs we do not want to use the element for deletion later
+        const details = element[REMOVAL_FLAG];
+        if (details && details.setForRemoval) {
+            details.setForRemoval = false;
+            details.setForMove = true;
+            const index = this.collectedLeaveElements.indexOf(element);
+            if (index >= 0) {
+                this.collectedLeaveElements.splice(index, 1);
+            }
+        }
+        // in the event that the namespaceId is blank then the caller
+        // code does not contain any animation code in it, but it is
+        // just being called so that the node is marked as being inserted
+        if (namespaceId) {
+            const ns = this._fetchNamespace(namespaceId);
+            // This if-statement is a workaround for router issue #21947.
+            // The router sometimes hits a race condition where while a route
+            // is being instantiated a new navigation arrives, triggering leave
+            // animation of DOM that has not been fully initialized, until this
+            // is resolved, we need to handle the scenario when DOM is not in a
+            // consistent state during the animation.
+            if (ns) {
+                ns.insertNode(element, parent);
+            }
+        }
+        // only *directives and host elements are inserted before
+        if (insertBefore) {
+            this.collectEnterElement(element);
+        }
+    }
+    collectEnterElement(element) {
+        this.collectedEnterElements.push(element);
+    }
+    markElementAsDisabled(element, value) {
+        if (value) {
+            if (!this.disabledNodes.has(element)) {
+                this.disabledNodes.add(element);
+                addClass(element, DISABLED_CLASSNAME);
+            }
+        }
+        else if (this.disabledNodes.has(element)) {
+            this.disabledNodes.delete(element);
+            removeClass(element, DISABLED_CLASSNAME);
+        }
+    }
+    removeNode(namespaceId, element, context) {
+        if (isElementNode(element)) {
+            const ns = namespaceId ? this._fetchNamespace(namespaceId) : null;
+            if (ns) {
+                ns.removeNode(element, context);
+            }
+            else {
+                this.markElementAsRemoved(namespaceId, element, false, context);
+            }
+            const hostNS = this.namespacesByHostElement.get(element);
+            if (hostNS && hostNS.id !== namespaceId) {
+                hostNS.removeNode(element, context);
+            }
+        }
+        else {
+            this._onRemovalComplete(element, context);
+        }
+    }
+    markElementAsRemoved(namespaceId, element, hasAnimation, context, previousTriggersValues) {
+        this.collectedLeaveElements.push(element);
+        element[REMOVAL_FLAG] = {
+            namespaceId,
+            setForRemoval: context,
+            hasAnimation,
+            removedBeforeQueried: false,
+            previousTriggersValues,
+        };
+    }
+    listen(namespaceId, element, name, phase, callback) {
+        if (isElementNode(element)) {
+            return this._fetchNamespace(namespaceId).listen(element, name, phase, callback);
+        }
+        return () => { };
+    }
+    _buildInstruction(entry, subTimelines, enterClassName, leaveClassName, skipBuildAst) {
+        return entry.transition.build(this.driver, entry.element, entry.fromState.value, entry.toState.value, enterClassName, leaveClassName, entry.fromState.options, entry.toState.options, subTimelines, skipBuildAst);
+    }
+    destroyInnerAnimations(containerElement) {
+        let elements = this.driver.query(containerElement, NG_TRIGGER_SELECTOR, true);
+        elements.forEach((element) => this.destroyActiveAnimationsForElement(element));
+        if (this.playersByQueriedElement.size == 0)
+            return;
+        elements = this.driver.query(containerElement, NG_ANIMATING_SELECTOR, true);
+        elements.forEach((element) => this.finishActiveQueriedAnimationOnElement(element));
+    }
+    destroyActiveAnimationsForElement(element) {
+        const players = this.playersByElement.get(element);
+        if (players) {
+            players.forEach((player) => {
+                // special case for when an element is set for destruction, but hasn't started.
+                // in this situation we want to delay the destruction until the flush occurs
+                // so that any event listeners attached to the player are triggered.
+                if (player.queued) {
+                    player.markedForDestroy = true;
+                }
+                else {
+                    player.destroy();
+                }
+            });
+        }
+    }
+    finishActiveQueriedAnimationOnElement(element) {
+        const players = this.playersByQueriedElement.get(element);
+        if (players) {
+            players.forEach((player) => player.finish());
+        }
+    }
+    whenRenderingDone() {
+        return new Promise((resolve) => {
+            if (this.players.length) {
+                return optimizeGroupPlayer(this.players).onDone(() => resolve());
+            }
+            else {
+                resolve();
+            }
+        });
+    }
+    processLeaveNode(element) {
+        const details = element[REMOVAL_FLAG];
+        if (details && details.setForRemoval) {
+            // this will prevent it from removing it twice
+            element[REMOVAL_FLAG] = NULL_REMOVAL_STATE;
+            if (details.namespaceId) {
+                this.destroyInnerAnimations(element);
+                const ns = this._fetchNamespace(details.namespaceId);
+                if (ns) {
+                    ns.clearElementCache(element);
+                }
+            }
+            this._onRemovalComplete(element, details.setForRemoval);
+        }
+        if (element.classList?.contains(DISABLED_CLASSNAME)) {
+            this.markElementAsDisabled(element, false);
+        }
+        this.driver.query(element, DISABLED_SELECTOR, true).forEach((node) => {
+            this.markElementAsDisabled(node, false);
+        });
+    }
+    flush(microtaskId = -1) {
+        let players = [];
+        if (this.newHostElements.size) {
+            this.newHostElements.forEach((ns, element) => this._balanceNamespaceList(ns, element));
+            this.newHostElements.clear();
+        }
+        if (this.totalAnimations && this.collectedEnterElements.length) {
+            for (let i = 0; i < this.collectedEnterElements.length; i++) {
+                const elm = this.collectedEnterElements[i];
+                addClass(elm, STAR_CLASSNAME);
+            }
+        }
+        if (this._namespaceList.length &&
+            (this.totalQueuedPlayers || this.collectedLeaveElements.length)) {
+            const cleanupFns = [];
+            try {
+                players = this._flushAnimations(cleanupFns, microtaskId);
+            }
+            finally {
+                for (let i = 0; i < cleanupFns.length; i++) {
+                    cleanupFns[i]();
+                }
+            }
+        }
+        else {
+            for (let i = 0; i < this.collectedLeaveElements.length; i++) {
+                const element = this.collectedLeaveElements[i];
+                this.processLeaveNode(element);
+            }
+        }
+        this.totalQueuedPlayers = 0;
+        this.collectedEnterElements.length = 0;
+        this.collectedLeaveElements.length = 0;
+        this._flushFns.forEach((fn) => fn());
+        this._flushFns = [];
+        if (this._whenQuietFns.length) {
+            // we move these over to a variable so that
+            // if any new callbacks are registered in another
+            // flush they do not populate the existing set
+            const quietFns = this._whenQuietFns;
+            this._whenQuietFns = [];
+            if (players.length) {
+                optimizeGroupPlayer(players).onDone(() => {
+                    quietFns.forEach((fn) => fn());
+                });
+            }
+            else {
+                quietFns.forEach((fn) => fn());
+            }
+        }
+    }
+    reportError(errors) {
+        throw triggerTransitionsFailed(errors);
+    }
+    _flushAnimations(cleanupFns, microtaskId) {
+        const subTimelines = new ElementInstructionMap();
+        const skippedPlayers = [];
+        const skippedPlayersMap = new Map();
+        const queuedInstructions = [];
+        const queriedElements = new Map();
+        const allPreStyleElements = new Map();
+        const allPostStyleElements = new Map();
+        const disabledElementsSet = new Set();
+        this.disabledNodes.forEach((node) => {
+            disabledElementsSet.add(node);
+            const nodesThatAreDisabled = this.driver.query(node, QUEUED_SELECTOR, true);
+            for (let i = 0; i < nodesThatAreDisabled.length; i++) {
+                disabledElementsSet.add(nodesThatAreDisabled[i]);
+            }
+        });
+        const bodyNode = this.bodyNode;
+        const allTriggerElements = Array.from(this.statesByElement.keys());
+        const enterNodeMap = buildRootMap(allTriggerElements, this.collectedEnterElements);
+        // this must occur before the instructions are built below such that
+        // the :enter queries match the elements (since the timeline queries
+        // are fired during instruction building).
+        const enterNodeMapIds = new Map();
+        let i = 0;
+        enterNodeMap.forEach((nodes, root) => {
+            const className = ENTER_CLASSNAME + i++;
+            enterNodeMapIds.set(root, className);
+            nodes.forEach((node) => addClass(node, className));
+        });
+        const allLeaveNodes = [];
+        const mergedLeaveNodes = new Set();
+        const leaveNodesWithoutAnimations = new Set();
+        for (let i = 0; i < this.collectedLeaveElements.length; i++) {
+            const element = this.collectedLeaveElements[i];
+            const details = element[REMOVAL_FLAG];
+            if (details && details.setForRemoval) {
+                allLeaveNodes.push(element);
+                mergedLeaveNodes.add(element);
+                if (details.hasAnimation) {
+                    this.driver
+                        .query(element, STAR_SELECTOR, true)
+                        .forEach((elm) => mergedLeaveNodes.add(elm));
+                }
+                else {
+                    leaveNodesWithoutAnimations.add(element);
+                }
+            }
+        }
+        const leaveNodeMapIds = new Map();
+        const leaveNodeMap = buildRootMap(allTriggerElements, Array.from(mergedLeaveNodes));
+        leaveNodeMap.forEach((nodes, root) => {
+            const className = LEAVE_CLASSNAME + i++;
+            leaveNodeMapIds.set(root, className);
+            nodes.forEach((node) => addClass(node, className));
+        });
+        cleanupFns.push(() => {
+            enterNodeMap.forEach((nodes, root) => {
+                const className = enterNodeMapIds.get(root);
+                nodes.forEach((node) => removeClass(node, className));
+            });
+            leaveNodeMap.forEach((nodes, root) => {
+                const className = leaveNodeMapIds.get(root);
+                nodes.forEach((node) => removeClass(node, className));
+            });
+            allLeaveNodes.forEach((element) => {
+                this.processLeaveNode(element);
+            });
+        });
+        const allPlayers = [];
+        const erroneousTransitions = [];
+        for (let i = this._namespaceList.length - 1; i >= 0; i--) {
+            const ns = this._namespaceList[i];
+            ns.drainQueuedTransitions(microtaskId).forEach((entry) => {
+                const player = entry.player;
+                const element = entry.element;
+                allPlayers.push(player);
+                if (this.collectedEnterElements.length) {
+                    const details = element[REMOVAL_FLAG];
+                    // animations for move operations (elements being removed and reinserted,
+                    // e.g. when the order of an *ngFor list changes) are currently not supported
+                    if (details && details.setForMove) {
+                        if (details.previousTriggersValues &&
+                            details.previousTriggersValues.has(entry.triggerName)) {
+                            const previousValue = details.previousTriggersValues.get(entry.triggerName);
+                            // we need to restore the previous trigger value since the element has
+                            // only been moved and hasn't actually left the DOM
+                            const triggersWithStates = this.statesByElement.get(entry.element);
+                            if (triggersWithStates && triggersWithStates.has(entry.triggerName)) {
+                                const state = triggersWithStates.get(entry.triggerName);
+                                state.value = previousValue;
+                                triggersWithStates.set(entry.triggerName, state);
+                            }
+                        }
+                        player.destroy();
+                        return;
+                    }
+                }
+                const nodeIsOrphaned = !bodyNode || !this.driver.containsElement(bodyNode, element);
+                const leaveClassName = leaveNodeMapIds.get(element);
+                const enterClassName = enterNodeMapIds.get(element);
+                const instruction = this._buildInstruction(entry, subTimelines, enterClassName, leaveClassName, nodeIsOrphaned);
+                if (instruction.errors && instruction.errors.length) {
+                    erroneousTransitions.push(instruction);
+                    return;
+                }
+                // even though the element may not be in the DOM, it may still
+                // be added at a later point (due to the mechanics of content
+                // projection and/or dynamic component insertion) therefore it's
+                // important to still style the element.
+                if (nodeIsOrphaned) {
+                    player.onStart(() => eraseStyles(element, instruction.fromStyles));
+                    player.onDestroy(() => setStyles(element, instruction.toStyles));
+                    skippedPlayers.push(player);
+                    return;
+                }
+                // if an unmatched transition is queued and ready to go
+                // then it SHOULD NOT render an animation and cancel the
+                // previously running animations.
+                if (entry.isFallbackTransition) {
+                    player.onStart(() => eraseStyles(element, instruction.fromStyles));
+                    player.onDestroy(() => setStyles(element, instruction.toStyles));
+                    skippedPlayers.push(player);
+                    return;
+                }
+                // this means that if a parent animation uses this animation as a sub-trigger
+                // then it will instruct the timeline builder not to add a player delay, but
+                // instead stretch the first keyframe gap until the animation starts. This is
+                // important in order to prevent extra initialization styles from being
+                // required by the user for the animation.
+                const timelines = [];
+                instruction.timelines.forEach((tl) => {
+                    tl.stretchStartingKeyframe = true;
+                    if (!this.disabledNodes.has(tl.element)) {
+                        timelines.push(tl);
+                    }
+                });
+                instruction.timelines = timelines;
+                subTimelines.append(element, instruction.timelines);
+                const tuple = { instruction, player, element };
+                queuedInstructions.push(tuple);
+                instruction.queriedElements.forEach((element) => getOrSetDefaultValue(queriedElements, element, []).push(player));
+                instruction.preStyleProps.forEach((stringMap, element) => {
+                    if (stringMap.size) {
+                        let setVal = allPreStyleElements.get(element);
+                        if (!setVal) {
+                            allPreStyleElements.set(element, (setVal = new Set()));
+                        }
+                        stringMap.forEach((_, prop) => setVal.add(prop));
+                    }
+                });
+                instruction.postStyleProps.forEach((stringMap, element) => {
+                    let setVal = allPostStyleElements.get(element);
+                    if (!setVal) {
+                        allPostStyleElements.set(element, (setVal = new Set()));
+                    }
+                    stringMap.forEach((_, prop) => setVal.add(prop));
+                });
+            });
+        }
+        if (erroneousTransitions.length) {
+            const errors = [];
+            erroneousTransitions.forEach((instruction) => {
+                errors.push(transitionFailed(instruction.triggerName, instruction.errors));
+            });
+            allPlayers.forEach((player) => player.destroy());
+            this.reportError(errors);
+        }
+        const allPreviousPlayersMap = new Map();
+        // this map tells us which element in the DOM tree is contained by
+        // which animation. Further down this map will get populated once
+        // the players are built and in doing so we can use it to efficiently
+        // figure out if a sub player is skipped due to a parent player having priority.
+        const animationElementMap = new Map();
+        queuedInstructions.forEach((entry) => {
+            const element = entry.element;
+            if (subTimelines.has(element)) {
+                animationElementMap.set(element, element);
+                this._beforeAnimationBuild(entry.player.namespaceId, entry.instruction, allPreviousPlayersMap);
+            }
+        });
+        skippedPlayers.forEach((player) => {
+            const element = player.element;
+            const previousPlayers = this._getPreviousPlayers(element, false, player.namespaceId, player.triggerName, null);
+            previousPlayers.forEach((prevPlayer) => {
+                getOrSetDefaultValue(allPreviousPlayersMap, element, []).push(prevPlayer);
+                prevPlayer.destroy();
+            });
+        });
+        // this is a special case for nodes that will be removed either by
+        // having their own leave animations or by being queried in a container
+        // that will be removed once a parent animation is complete. The idea
+        // here is that * styles must be identical to ! styles because of
+        // backwards compatibility (* is also filled in by default in many places).
+        // Otherwise * styles will return an empty value or "auto" since the element
+        // passed to getComputedStyle will not be visible (since * === destination)
+        const replaceNodes = allLeaveNodes.filter((node) => {
+            return replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements);
+        });
+        // POST STAGE: fill the * styles
+        const postStylesMap = new Map();
+        const allLeaveQueriedNodes = cloakAndComputeStyles(postStylesMap, this.driver, leaveNodesWithoutAnimations, allPostStyleElements, AUTO_STYLE);
+        allLeaveQueriedNodes.forEach((node) => {
+            if (replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements)) {
+                replaceNodes.push(node);
+            }
+        });
+        // PRE STAGE: fill the ! styles
+        const preStylesMap = new Map();
+        enterNodeMap.forEach((nodes, root) => {
+            cloakAndComputeStyles(preStylesMap, this.driver, new Set(nodes), allPreStyleElements, _PRE_STYLE);
+        });
+        replaceNodes.forEach((node) => {
+            const post = postStylesMap.get(node);
+            const pre = preStylesMap.get(node);
+            postStylesMap.set(node, new Map([...(post?.entries() ?? []), ...(pre?.entries() ?? [])]));
+        });
+        const rootPlayers = [];
+        const subPlayers = [];
+        const NO_PARENT_ANIMATION_ELEMENT_DETECTED = {};
+        queuedInstructions.forEach((entry) => {
+            const { element, player, instruction } = entry;
+            // this means that it was never consumed by a parent animation which
+            // means that it is independent and therefore should be set for animation
+            if (subTimelines.has(element)) {
+                if (disabledElementsSet.has(element)) {
+                    player.onDestroy(() => setStyles(element, instruction.toStyles));
+                    player.disabled = true;
+                    player.overrideTotalTime(instruction.totalTime);
+                    skippedPlayers.push(player);
+                    return;
+                }
+                // this will flow up the DOM and query the map to figure out
+                // if a parent animation has priority over it. In the situation
+                // that a parent is detected then it will cancel the loop. If
+                // nothing is detected, or it takes a few hops to find a parent,
+                // then it will fill in the missing nodes and signal them as having
+                // a detected parent (or a NO_PARENT value via a special constant).
+                let parentWithAnimation = NO_PARENT_ANIMATION_ELEMENT_DETECTED;
+                if (animationElementMap.size > 1) {
+                    let elm = element;
+                    const parentsToAdd = [];
+                    while ((elm = elm.parentNode)) {
+                        const detectedParent = animationElementMap.get(elm);
+                        if (detectedParent) {
+                            parentWithAnimation = detectedParent;
+                            break;
+                        }
+                        parentsToAdd.push(elm);
+                    }
+                    parentsToAdd.forEach((parent) => animationElementMap.set(parent, parentWithAnimation));
+                }
+                const innerPlayer = this._buildAnimation(player.namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap);
+                player.setRealPlayer(innerPlayer);
+                if (parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED) {
+                    rootPlayers.push(player);
+                }
+                else {
+                    const parentPlayers = this.playersByElement.get(parentWithAnimation);
+                    if (parentPlayers && parentPlayers.length) {
+                        player.parentPlayer = optimizeGroupPlayer(parentPlayers);
+                    }
+                    skippedPlayers.push(player);
+                }
+            }
+            else {
+                eraseStyles(element, instruction.fromStyles);
+                player.onDestroy(() => setStyles(element, instruction.toStyles));
+                // there still might be a ancestor player animating this
+                // element therefore we will still add it as a sub player
+                // even if its animation may be disabled
+                subPlayers.push(player);
+                if (disabledElementsSet.has(element)) {
+                    skippedPlayers.push(player);
+                }
+            }
+        });
+        // find all of the sub players' corresponding inner animation players
+        subPlayers.forEach((player) => {
+            // even if no players are found for a sub animation it
+            // will still complete itself after the next tick since it's Noop
+            const playersForElement = skippedPlayersMap.get(player.element);
+            if (playersForElement && playersForElement.length) {
+                const innerPlayer = optimizeGroupPlayer(playersForElement);
+                player.setRealPlayer(innerPlayer);
+            }
+        });
+        // the reason why we don't actually play the animation is
+        // because all that a skipped player is designed to do is to
+        // fire the start/done transition callback events
+        skippedPlayers.forEach((player) => {
+            if (player.parentPlayer) {
+                player.syncPlayerEvents(player.parentPlayer);
+            }
+            else {
+                player.destroy();
+            }
+        });
+        // run through all of the queued removals and see if they
+        // were picked up by a query. If not then perform the removal
+        // operation right away unless a parent animation is ongoing.
+        for (let i = 0; i < allLeaveNodes.length; i++) {
+            const element = allLeaveNodes[i];
+            const details = element[REMOVAL_FLAG];
+            removeClass(element, LEAVE_CLASSNAME);
+            // this means the element has a removal animation that is being
+            // taken care of and therefore the inner elements will hang around
+            // until that animation is over (or the parent queried animation)
+            if (details && details.hasAnimation)
+                continue;
+            let players = [];
+            // if this element is queried or if it contains queried children
+            // then we want for the element not to be removed from the page
+            // until the queried animations have finished
+            if (queriedElements.size) {
+                let queriedPlayerResults = queriedElements.get(element);
+                if (queriedPlayerResults && queriedPlayerResults.length) {
+                    players.push(...queriedPlayerResults);
+                }
+                let queriedInnerElements = this.driver.query(element, NG_ANIMATING_SELECTOR, true);
+                for (let j = 0; j < queriedInnerElements.length; j++) {
+                    let queriedPlayers = queriedElements.get(queriedInnerElements[j]);
+                    if (queriedPlayers && queriedPlayers.length) {
+                        players.push(...queriedPlayers);
+                    }
+                }
+            }
+            const activePlayers = players.filter((p) => !p.destroyed);
+            if (activePlayers.length) {
+                removeNodesAfterAnimationDone(this, element, activePlayers);
+            }
+            else {
+                this.processLeaveNode(element);
+            }
+        }
+        // this is required so the cleanup method doesn't remove them
+        allLeaveNodes.length = 0;
+        rootPlayers.forEach((player) => {
+            this.players.push(player);
+            player.onDone(() => {
+                player.destroy();
+                const index = this.players.indexOf(player);
+                this.players.splice(index, 1);
+            });
+            player.play();
+        });
+        return rootPlayers;
+    }
+    afterFlush(callback) {
+        this._flushFns.push(callback);
+    }
+    afterFlushAnimationsDone(callback) {
+        this._whenQuietFns.push(callback);
+    }
+    _getPreviousPlayers(element, isQueriedElement, namespaceId, triggerName, toStateValue) {
+        let players = [];
+        if (isQueriedElement) {
+            const queriedElementPlayers = this.playersByQueriedElement.get(element);
+            if (queriedElementPlayers) {
+                players = queriedElementPlayers;
+            }
+        }
+        else {
+            const elementPlayers = this.playersByElement.get(element);
+            if (elementPlayers) {
+                const isRemovalAnimation = !toStateValue || toStateValue == VOID_VALUE;
+                elementPlayers.forEach((player) => {
+                    if (player.queued)
+                        return;
+                    if (!isRemovalAnimation && player.triggerName != triggerName)
+                        return;
+                    players.push(player);
+                });
+            }
+        }
+        if (namespaceId || triggerName) {
+            players = players.filter((player) => {
+                if (namespaceId && namespaceId != player.namespaceId)
+                    return false;
+                if (triggerName && triggerName != player.triggerName)
+                    return false;
+                return true;
+            });
+        }
+        return players;
+    }
+    _beforeAnimationBuild(namespaceId, instruction, allPreviousPlayersMap) {
+        const triggerName = instruction.triggerName;
+        const rootElement = instruction.element;
+        // when a removal animation occurs, ALL previous players are collected
+        // and destroyed (even if they are outside of the current namespace)
+        const targetNameSpaceId = instruction.isRemovalTransition
+            ? undefined
+            : namespaceId;
+        const targetTriggerName = instruction.isRemovalTransition
+            ? undefined
+            : triggerName;
+        for (const timelineInstruction of instruction.timelines) {
+            const element = timelineInstruction.element;
+            const isQueriedElement = element !== rootElement;
+            const players = getOrSetDefaultValue(allPreviousPlayersMap, element, []);
+            const previousPlayers = this._getPreviousPlayers(element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);
+            previousPlayers.forEach((player) => {
+                const realPlayer = player.getRealPlayer();
+                if (realPlayer.beforeDestroy) {
+                    realPlayer.beforeDestroy();
+                }
+                player.destroy();
+                players.push(player);
+            });
+        }
+        // this needs to be done so that the PRE/POST styles can be
+        // computed properly without interfering with the previous animation
+        eraseStyles(rootElement, instruction.fromStyles);
+    }
+    _buildAnimation(namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap) {
+        const triggerName = instruction.triggerName;
+        const rootElement = instruction.element;
+        // we first run this so that the previous animation player
+        // data can be passed into the successive animation players
+        const allQueriedPlayers = [];
+        const allConsumedElements = new Set();
+        const allSubElements = new Set();
+        const allNewPlayers = instruction.timelines.map((timelineInstruction) => {
+            const element = timelineInstruction.element;
+            allConsumedElements.add(element);
+            // FIXME (matsko): make sure to-be-removed animations are removed properly
+            const details = element[REMOVAL_FLAG];
+            if (details && details.removedBeforeQueried)
+                return new NoopAnimationPlayer(timelineInstruction.duration, timelineInstruction.delay);
+            const isQueriedElement = element !== rootElement;
+            const previousPlayers = flattenGroupPlayers((allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY).map((p) => p.getRealPlayer())).filter((p) => {
+                // the `element` is not apart of the AnimationPlayer definition, but
+                // Mock/WebAnimations
+                // use the element within their implementation. This will be added in Angular5 to
+                // AnimationPlayer
+                const pp = p;
+                return pp.element ? pp.element === element : false;
+            });
+            const preStyles = preStylesMap.get(element);
+            const postStyles = postStylesMap.get(element);
+            const keyframes = normalizeKeyframes(this._normalizer, timelineInstruction.keyframes, preStyles, postStyles);
+            const player = this._buildPlayer(timelineInstruction, keyframes, previousPlayers);
+            // this means that this particular player belongs to a sub trigger. It is
+            // important that we match this player up with the corresponding (@trigger.listener)
+            if (timelineInstruction.subTimeline && skippedPlayersMap) {
+                allSubElements.add(element);
+            }
+            if (isQueriedElement) {
+                const wrappedPlayer = new TransitionAnimationPlayer(namespaceId, triggerName, element);
+                wrappedPlayer.setRealPlayer(player);
+                allQueriedPlayers.push(wrappedPlayer);
+            }
+            return player;
+        });
+        allQueriedPlayers.forEach((player) => {
+            getOrSetDefaultValue(this.playersByQueriedElement, player.element, []).push(player);
+            player.onDone(() => deleteOrUnsetInMap(this.playersByQueriedElement, player.element, player));
+        });
+        allConsumedElements.forEach((element) => addClass(element, NG_ANIMATING_CLASSNAME));
+        const player = optimizeGroupPlayer(allNewPlayers);
+        player.onDestroy(() => {
+            allConsumedElements.forEach((element) => removeClass(element, NG_ANIMATING_CLASSNAME));
+            setStyles(rootElement, instruction.toStyles);
+        });
+        // this basically makes all of the callbacks for sub element animations
+        // be dependent on the upper players for when they finish
+        allSubElements.forEach((element) => {
+            getOrSetDefaultValue(skippedPlayersMap, element, []).push(player);
+        });
+        return player;
+    }
+    _buildPlayer(instruction, keyframes, previousPlayers) {
+        if (keyframes.length > 0) {
+            return this.driver.animate(instruction.element, keyframes, instruction.duration, instruction.delay, instruction.easing, previousPlayers);
+        }
+        // special case for when an empty transition|definition is provided
+        // ... there is no point in rendering an empty animation
+        return new NoopAnimationPlayer(instruction.duration, instruction.delay);
+    }
+}
+class TransitionAnimationPlayer {
+    namespaceId;
+    triggerName;
+    element;
+    _player = new NoopAnimationPlayer();
+    _containsRealPlayer = false;
+    _queuedCallbacks = new Map();
+    destroyed = false;
+    parentPlayer = null;
+    markedForDestroy = false;
+    disabled = false;
+    queued = true;
+    totalTime = 0;
+    constructor(namespaceId, triggerName, element) {
+        this.namespaceId = namespaceId;
+        this.triggerName = triggerName;
+        this.element = element;
+    }
+    setRealPlayer(player) {
+        if (this._containsRealPlayer)
+            return;
+        this._player = player;
+        this._queuedCallbacks.forEach((callbacks, phase) => {
+            callbacks.forEach((callback) => listenOnPlayer(player, phase, undefined, callback));
+        });
+        this._queuedCallbacks.clear();
+        this._containsRealPlayer = true;
+        this.overrideTotalTime(player.totalTime);
+        this.queued = false;
+    }
+    getRealPlayer() {
+        return this._player;
+    }
+    overrideTotalTime(totalTime) {
+        this.totalTime = totalTime;
+    }
+    syncPlayerEvents(player) {
+        const p = this._player;
+        if (p.triggerCallback) {
+            player.onStart(() => p.triggerCallback('start'));
+        }
+        player.onDone(() => this.finish());
+        player.onDestroy(() => this.destroy());
+    }
+    _queueEvent(name, callback) {
+        getOrSetDefaultValue(this._queuedCallbacks, name, []).push(callback);
+    }
+    onDone(fn) {
+        if (this.queued) {
+            this._queueEvent('done', fn);
+        }
+        this._player.onDone(fn);
+    }
+    onStart(fn) {
+        if (this.queued) {
+            this._queueEvent('start', fn);
+        }
+        this._player.onStart(fn);
+    }
+    onDestroy(fn) {
+        if (this.queued) {
+            this._queueEvent('destroy', fn);
+        }
+        this._player.onDestroy(fn);
+    }
+    init() {
+        this._player.init();
+    }
+    hasStarted() {
+        return this.queued ? false : 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 = true;
+        this._player.destroy();
+    }
+    reset() {
+        !this.queued && this._player.reset();
+    }
+    setPosition(p) {
+        if (!this.queued) {
+            this._player.setPosition(p);
+        }
+    }
+    getPosition() {
+        return this.queued ? 0 : this._player.getPosition();
+    }
+    /** @internal */
+    triggerCallback(phaseName) {
+        const p = this._player;
+        if (p.triggerCallback) {
+            p.triggerCallback(phaseName);
+        }
+    }
+}
+function deleteOrUnsetInMap(map, key, value) {
+    let currentValues = map.get(key);
+    if (currentValues) {
+        if (currentValues.length) {
+            const index = currentValues.indexOf(value);
+            currentValues.splice(index, 1);
+        }
+        if (currentValues.length == 0) {
+            map.delete(key);
+        }
+    }
+    return currentValues;
+}
+function normalizeTriggerValue(value) {
+    // we use `!= null` here because it's the most simple
+    // way to test against a "falsy" value without mixing
+    // in empty strings or a zero value. DO NOT OPTIMIZE.
+    return value != null ? value : null;
+}
+function isElementNode(node) {
+    return node && node['nodeType'] === 1;
+}
+function isTriggerEventValid(eventName) {
+    return eventName == 'start' || eventName == 'done';
+}
+function cloakElement(element, value) {
+    const oldValue = element.style.display;
+    element.style.display = value != null ? value : 'none';
+    return oldValue;
+}
+function cloakAndComputeStyles(valuesMap, driver, elements, elementPropsMap, defaultStyle) {
+    const cloakVals = [];
+    elements.forEach((element) => cloakVals.push(cloakElement(element)));
+    const failedElements = [];
+    elementPropsMap.forEach((props, element) => {
+        const styles = new Map();
+        props.forEach((prop) => {
+            const value = driver.computeStyle(element, prop, defaultStyle);
+            styles.set(prop, value);
+            // there is no easy way to detect this because a sub element could be removed
+            // by a parent animation element being detached.
+            if (!value || value.length == 0) {
+                element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;
+                failedElements.push(element);
+            }
+        });
+        valuesMap.set(element, styles);
+    });
+    // we use a index variable here since Set.forEach(a, i) does not return
+    // an index value for the closure (but instead just the value)
+    let i = 0;
+    elements.forEach((element) => cloakElement(element, cloakVals[i++]));
+    return failedElements;
+}
+/*
+Since the Angular renderer code will return a collection of inserted
+nodes in all areas of a DOM tree, it's up to this algorithm to figure
+out which nodes are roots for each animation @trigger.
+
+By placing each inserted node into a Set and traversing upwards, it
+is possible to find the @trigger elements and well any direct *star
+insertion nodes, if a @trigger root is found then the enter element
+is placed into the Map[@trigger] spot.
+ */
+function buildRootMap(roots, nodes) {
+    const rootMap = new Map();
+    roots.forEach((root) => rootMap.set(root, []));
+    if (nodes.length == 0)
+        return rootMap;
+    const NULL_NODE = 1;
+    const nodeSet = new Set(nodes);
+    const localRootMap = new Map();
+    function getRoot(node) {
+        if (!node)
+            return NULL_NODE;
+        let root = localRootMap.get(node);
+        if (root)
+            return root;
+        const parent = node.parentNode;
+        if (rootMap.has(parent)) {
+            // ngIf inside @trigger
+            root = parent;
+        }
+        else if (nodeSet.has(parent)) {
+            // ngIf inside ngIf
+            root = NULL_NODE;
+        }
+        else {
+            // recurse upwards
+            root = getRoot(parent);
+        }
+        localRootMap.set(node, root);
+        return root;
+    }
+    nodes.forEach((node) => {
+        const root = getRoot(node);
+        if (root !== NULL_NODE) {
+            rootMap.get(root).push(node);
+        }
+    });
+    return rootMap;
+}
+function addClass(element, className) {
+    element.classList?.add(className);
+}
+function removeClass(element, className) {
+    element.classList?.remove(className);
+}
+function removeNodesAfterAnimationDone(engine, element, players) {
+    optimizeGroupPlayer(players).onDone(() => engine.processLeaveNode(element));
+}
+function flattenGroupPlayers(players) {
+    const finalPlayers = [];
+    _flattenGroupPlayersRecur(players, finalPlayers);
+    return finalPlayers;
+}
+function _flattenGroupPlayersRecur(players, finalPlayers) {
+    for (let i = 0; i < players.length; i++) {
+        const player = players[i];
+        if (player instanceof AnimationGroupPlayer) {
+            _flattenGroupPlayersRecur(player.players, finalPlayers);
+        }
+        else {
+            finalPlayers.push(player);
+        }
+    }
+}
+function objEquals(a, b) {
+    const k1 = Object.keys(a);
+    const k2 = Object.keys(b);
+    if (k1.length != k2.length)
+        return false;
+    for (let i = 0; i < k1.length; i++) {
+        const prop = k1[i];
+        if (!b.hasOwnProperty(prop) || a[prop] !== b[prop])
+            return false;
+    }
+    return true;
+}
+function replacePostStylesAsPre(element, allPreStyleElements, allPostStyleElements) {
+    const postEntry = allPostStyleElements.get(element);
+    if (!postEntry)
+        return false;
+    let preEntry = allPreStyleElements.get(element);
+    if (preEntry) {
+        postEntry.forEach((data) => preEntry.add(data));
+    }
+    else {
+        allPreStyleElements.set(element, postEntry);
+    }
+    allPostStyleElements.delete(element);
+    return true;
+}
+
+class AnimationEngine {
+    _driver;
+    _normalizer;
+    _transitionEngine;
+    _timelineEngine;
+    _triggerCache = {};
+    // this method is designed to be overridden by the code that uses this engine
+    onRemovalComplete = (element, context) => { };
+    constructor(doc, _driver, _normalizer) {
+        this._driver = _driver;
+        this._normalizer = _normalizer;
+        this._transitionEngine = new TransitionAnimationEngine(doc.body, _driver, _normalizer);
+        this._timelineEngine = new TimelineAnimationEngine(doc.body, _driver, _normalizer);
+        this._transitionEngine.onRemovalComplete = (element, context) => this.onRemovalComplete(element, context);
+    }
+    registerTrigger(componentId, namespaceId, hostElement, name, metadata) {
+        const cacheKey = componentId + '-' + name;
+        let trigger = this._triggerCache[cacheKey];
+        if (!trigger) {
+            const errors = [];
+            const warnings = [];
+            const ast = buildAnimationAst(this._driver, metadata, errors, warnings);
+            if (errors.length) {
+                throw triggerBuildFailed(name, errors);
+            }
+            if (typeof ngDevMode === 'undefined' || ngDevMode) {
+                if (warnings.length) {
+                    warnTriggerBuild(name, warnings);
+                }
+            }
+            trigger = buildTrigger(name, ast, this._normalizer);
+            this._triggerCache[cacheKey] = trigger;
+        }
+        this._transitionEngine.registerTrigger(namespaceId, name, trigger);
+    }
+    register(namespaceId, hostElement) {
+        this._transitionEngine.register(namespaceId, hostElement);
+    }
+    destroy(namespaceId, context) {
+        this._transitionEngine.destroy(namespaceId, context);
+    }
+    onInsert(namespaceId, element, parent, insertBefore) {
+        this._transitionEngine.insertNode(namespaceId, element, parent, insertBefore);
+    }
+    onRemove(namespaceId, element, context) {
+        this._transitionEngine.removeNode(namespaceId, element, context);
+    }
+    disableAnimations(element, disable) {
+        this._transitionEngine.markElementAsDisabled(element, disable);
+    }
+    process(namespaceId, element, property, value) {
+        if (property.charAt(0) == '@') {
+            const [id, action] = parseTimelineCommand(property);
+            const args = value;
+            this._timelineEngine.command(id, element, action, args);
+        }
+        else {
+            this._transitionEngine.trigger(namespaceId, element, property, value);
+        }
+    }
+    listen(namespaceId, element, eventName, eventPhase, callback) {
+        // @@listen
+        if (eventName.charAt(0) == '@') {
+            const [id, action] = parseTimelineCommand(eventName);
+            return this._timelineEngine.listen(id, element, action, callback);
+        }
+        return this._transitionEngine.listen(namespaceId, element, eventName, eventPhase, callback);
+    }
+    flush(microtaskId = -1) {
+        this._transitionEngine.flush(microtaskId);
+    }
+    get players() {
+        return [...this._transitionEngine.players, ...this._timelineEngine.players];
+    }
+    whenRenderingDone() {
+        return this._transitionEngine.whenRenderingDone();
+    }
+    afterFlushAnimationsDone(cb) {
+        this._transitionEngine.afterFlushAnimationsDone(cb);
+    }
+}
+
+/**
+ * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are
+ * detected.
+ *
+ * In CSS there exist properties that cannot be animated within a keyframe animation
+ * (whether it be via CSS keyframes or web-animations) and the animation implementation
+ * will ignore them. This function is designed to detect those special cased styles and
+ * return a container that will be executed at the start and end of the animation.
+ *
+ * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`
+ */
+function packageNonAnimatableStyles(element, styles) {
+    let startStyles = null;
+    let endStyles = null;
+    if (Array.isArray(styles) && styles.length) {
+        startStyles = filterNonAnimatableStyles(styles[0]);
+        if (styles.length > 1) {
+            endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);
+        }
+    }
+    else if (styles instanceof Map) {
+        startStyles = filterNonAnimatableStyles(styles);
+    }
+    return startStyles || endStyles ? new SpecialCasedStyles(element, startStyles, endStyles) : null;
+}
+/**
+ * Designed to be executed during a keyframe-based animation to apply any special-cased styles.
+ *
+ * When started (when the `start()` method is run) then the provided `startStyles`
+ * will be applied. When finished (when the `finish()` method is called) the
+ * `endStyles` will be applied as well any any starting styles. Finally when
+ * `destroy()` is called then all styles will be removed.
+ */
+class SpecialCasedStyles {
+    _element;
+    _startStyles;
+    _endStyles;
+    static initialStylesByElement = /* @__PURE__ */ new WeakMap();
+    _state = 0 /* SpecialCasedStylesState.Pending */;
+    _initialStyles;
+    constructor(_element, _startStyles, _endStyles) {
+        this._element = _element;
+        this._startStyles = _startStyles;
+        this._endStyles = _endStyles;
+        let initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);
+        if (!initialStyles) {
+            SpecialCasedStyles.initialStylesByElement.set(_element, (initialStyles = new Map()));
+        }
+        this._initialStyles = initialStyles;
+    }
+    start() {
+        if (this._state < 1 /* SpecialCasedStylesState.Started */) {
+            if (this._startStyles) {
+                setStyles(this._element, this._startStyles, this._initialStyles);
+            }
+            this._state = 1 /* SpecialCasedStylesState.Started */;
+        }
+    }
+    finish() {
+        this.start();
+        if (this._state < 2 /* SpecialCasedStylesState.Finished */) {
+            setStyles(this._element, this._initialStyles);
+            if (this._endStyles) {
+                setStyles(this._element, this._endStyles);
+                this._endStyles = null;
+            }
+            this._state = 1 /* SpecialCasedStylesState.Started */;
+        }
+    }
+    destroy() {
+        this.finish();
+        if (this._state < 3 /* SpecialCasedStylesState.Destroyed */) {
+            SpecialCasedStyles.initialStylesByElement.delete(this._element);
+            if (this._startStyles) {
+                eraseStyles(this._element, this._startStyles);
+                this._endStyles = null;
+            }
+            if (this._endStyles) {
+                eraseStyles(this._element, this._endStyles);
+                this._endStyles = null;
+            }
+            setStyles(this._element, this._initialStyles);
+            this._state = 3 /* SpecialCasedStylesState.Destroyed */;
+        }
+    }
+}
+function filterNonAnimatableStyles(styles) {
+    let result = null;
+    styles.forEach((val, prop) => {
+        if (isNonAnimatableStyle(prop)) {
+            result = result || new Map();
+            result.set(prop, val);
+        }
+    });
+    return result;
+}
+function isNonAnimatableStyle(prop) {
+    return prop === 'display' || prop === 'position';
+}
+
+class WebAnimationsPlayer {
+    element;
+    keyframes;
+    options;
+    _specialStyles;
+    _onDoneFns = [];
+    _onStartFns = [];
+    _onDestroyFns = [];
+    _duration;
+    _delay;
+    _initialized = false;
+    _finished = false;
+    _started = false;
+    _destroyed = false;
+    _finalKeyframe;
+    // the following original fns are persistent copies of the _onStartFns and _onDoneFns
+    // and are used to reset the fns to their original values upon reset()
+    // (since the _onStartFns and _onDoneFns get deleted after they are called)
+    _originalOnDoneFns = [];
+    _originalOnStartFns = [];
+    // using non-null assertion because it's re(set) by init();
+    domPlayer;
+    time = 0;
+    parentPlayer = null;
+    currentSnapshot = new Map();
+    constructor(element, keyframes, options, _specialStyles) {
+        this.element = element;
+        this.keyframes = keyframes;
+        this.options = options;
+        this._specialStyles = _specialStyles;
+        this._duration = options['duration'];
+        this._delay = options['delay'] || 0;
+        this.time = this._duration + this._delay;
+    }
+    _onFinish() {
+        if (!this._finished) {
+            this._finished = true;
+            this._onDoneFns.forEach((fn) => fn());
+            this._onDoneFns = [];
+        }
+    }
+    init() {
+        this._buildPlayer();
+        this._preparePlayerBeforeStart();
+    }
+    _buildPlayer() {
+        if (this._initialized)
+            return;
+        this._initialized = true;
+        const keyframes = this.keyframes;
+        // @ts-expect-error overwriting a readonly property
+        this.domPlayer = this._triggerWebAnimation(this.element, keyframes, this.options);
+        this._finalKeyframe = keyframes.length ? keyframes[keyframes.length - 1] : new Map();
+        const onFinish = () => this._onFinish();
+        this.domPlayer.addEventListener('finish', onFinish);
+        this.onDestroy(() => {
+            // We must remove the `finish` event listener once an animation has completed all its
+            // iterations. This action is necessary to prevent a memory leak since the listener captures
+            // `this`, creating a closure that prevents `this` from being garbage collected.
+            this.domPlayer.removeEventListener('finish', onFinish);
+        });
+    }
+    _preparePlayerBeforeStart() {
+        // this is required so that the player doesn't start to animate right away
+        if (this._delay) {
+            this._resetDomPlayerState();
+        }
+        else {
+            this.domPlayer.pause();
+        }
+    }
+    _convertKeyframesToObject(keyframes) {
+        const kfs = [];
+        keyframes.forEach((frame) => {
+            kfs.push(Object.fromEntries(frame));
+        });
+        return kfs;
+    }
+    /** @internal */
+    _triggerWebAnimation(element, keyframes, options) {
+        return element.animate(this._convertKeyframesToObject(keyframes), options);
+    }
+    onStart(fn) {
+        this._originalOnStartFns.push(fn);
+        this._onStartFns.push(fn);
+    }
+    onDone(fn) {
+        this._originalOnDoneFns.push(fn);
+        this._onDoneFns.push(fn);
+    }
+    onDestroy(fn) {
+        this._onDestroyFns.push(fn);
+    }
+    play() {
+        this._buildPlayer();
+        if (!this.hasStarted()) {
+            this._onStartFns.forEach((fn) => fn());
+            this._onStartFns = [];
+            this._started = true;
+            if (this._specialStyles) {
+                this._specialStyles.start();
+            }
+        }
+        this.domPlayer.play();
+    }
+    pause() {
+        this.init();
+        this.domPlayer.pause();
+    }
+    finish() {
+        this.init();
+        if (this._specialStyles) {
+            this._specialStyles.finish();
+        }
+        this._onFinish();
+        this.domPlayer.finish();
+    }
+    reset() {
+        this._resetDomPlayerState();
+        this._destroyed = false;
+        this._finished = false;
+        this._started = false;
+        this._onStartFns = this._originalOnStartFns;
+        this._onDoneFns = this._originalOnDoneFns;
+    }
+    _resetDomPlayerState() {
+        if (this.domPlayer) {
+            this.domPlayer.cancel();
+        }
+    }
+    restart() {
+        this.reset();
+        this.play();
+    }
+    hasStarted() {
+        return this._started;
+    }
+    destroy() {
+        if (!this._destroyed) {
+            this._destroyed = true;
+            this._resetDomPlayerState();
+            this._onFinish();
+            if (this._specialStyles) {
+                this._specialStyles.destroy();
+            }
+            this._onDestroyFns.forEach((fn) => fn());
+            this._onDestroyFns = [];
+        }
+    }
+    setPosition(p) {
+        if (this.domPlayer === undefined) {
+            this.init();
+        }
+        this.domPlayer.currentTime = p * this.time;
+    }
+    getPosition() {
+        // tsc is complaining with TS2362 without the conversion to number
+        return +(this.domPlayer.currentTime ?? 0) / this.time;
+    }
+    get totalTime() {
+        return this._delay + this._duration;
+    }
+    beforeDestroy() {
+        const styles = new Map();
+        if (this.hasStarted()) {
+            // note: this code is invoked only when the `play` function was called prior to this
+            // (thus `hasStarted` returns true), this implies that the code that initializes
+            // `_finalKeyframe` has also been executed and the non-null assertion can be safely used here
+            const finalKeyframe = this._finalKeyframe;
+            finalKeyframe.forEach((val, prop) => {
+                if (prop !== 'offset') {
+                    styles.set(prop, this._finished ? val : computeStyle(this.element, prop));
+                }
+            });
+        }
+        this.currentSnapshot = styles;
+    }
+    /** @internal */
+    triggerCallback(phaseName) {
+        const methods = phaseName === 'start' ? this._onStartFns : this._onDoneFns;
+        methods.forEach((fn) => fn());
+        methods.length = 0;
+    }
+}
+
+class WebAnimationsDriver {
+    validateStyleProperty(prop) {
+        // Perform actual validation in dev mode only, in prod mode this check is a noop.
+        if (typeof ngDevMode === 'undefined' || ngDevMode) {
+            return validateStyleProperty(prop);
+        }
+        return true;
+    }
+    validateAnimatableStyleProperty(prop) {
+        // Perform actual validation in dev mode only, in prod mode this check is a noop.
+        if (typeof ngDevMode === 'undefined' || ngDevMode) {
+            const cssProp = camelCaseToDashCase(prop);
+            return validateWebAnimatableStyleProperty(cssProp);
+        }
+        return true;
+    }
+    containsElement(elm1, elm2) {
+        return containsElement(elm1, elm2);
+    }
+    getParentElement(element) {
+        return getParentElement(element);
+    }
+    query(element, selector, multi) {
+        return invokeQuery(element, selector, multi);
+    }
+    computeStyle(element, prop, defaultValue) {
+        return computeStyle(element, prop);
+    }
+    animate(element, keyframes, duration, delay, easing, previousPlayers = []) {
+        const fill = delay == 0 ? 'both' : 'forwards';
+        const playerOptions = { duration, delay, fill };
+        // we check for this to avoid having a null|undefined value be present
+        // for the easing (which results in an error for certain browsers #9752)
+        if (easing) {
+            playerOptions['easing'] = easing;
+        }
+        const previousStyles = new Map();
+        const previousWebAnimationPlayers = (previousPlayers.filter((player) => player instanceof WebAnimationsPlayer));
+        if (allowPreviousPlayerStylesMerge(duration, delay)) {
+            previousWebAnimationPlayers.forEach((player) => {
+                player.currentSnapshot.forEach((val, prop) => previousStyles.set(prop, val));
+            });
+        }
+        let _keyframes = normalizeKeyframes$1(keyframes).map((styles) => new Map(styles));
+        _keyframes = balancePreviousStylesIntoKeyframes(element, _keyframes, previousStyles);
+        const specialStyles = packageNonAnimatableStyles(element, _keyframes);
+        return new WebAnimationsPlayer(element, _keyframes, playerOptions, specialStyles);
+    }
+}
+
+function createEngine(type, doc) {
+    // TODO: find a way to make this tree shakable.
+    if (type === 'noop') {
+        return new AnimationEngine(doc, new NoopAnimationDriver(), new NoopAnimationStyleNormalizer());
+    }
+    return new AnimationEngine(doc, new WebAnimationsDriver(), new WebAnimationsStyleNormalizer());
+}
+
+class Animation {
+    _driver;
+    _animationAst;
+    constructor(_driver, input) {
+        this._driver = _driver;
+        const errors = [];
+        const warnings = [];
+        const ast = buildAnimationAst(_driver, input, errors, warnings);
+        if (errors.length) {
+            throw validationFailed(errors);
+        }
+        if (typeof ngDevMode === 'undefined' || ngDevMode) {
+            if (warnings.length) {
+                warnValidation(warnings);
+            }
+        }
+        this._animationAst = ast;
+    }
+    buildTimelines(element, startingStyles, destinationStyles, options, subInstructions) {
+        const start = Array.isArray(startingStyles)
+            ? normalizeStyles(startingStyles)
+            : startingStyles;
+        const dest = Array.isArray(destinationStyles)
+            ? normalizeStyles(destinationStyles)
+            : destinationStyles;
+        const errors = [];
+        subInstructions = subInstructions || new ElementInstructionMap();
+        const result = buildAnimationTimelines(this._driver, element, this._animationAst, ENTER_CLASSNAME, LEAVE_CLASSNAME, start, dest, options, subInstructions, errors);
+        if (errors.length) {
+            throw buildingFailed(errors);
+        }
+        return result;
+    }
+}
+
+const ANIMATION_PREFIX = '@';
+const DISABLE_ANIMATIONS_FLAG = '@.disabled';
+class BaseAnimationRenderer {
+    namespaceId;
+    delegate;
+    engine;
+    _onDestroy;
+    // We need to explicitly type this property because of an api-extractor bug
+    // See https://github.com/microsoft/rushstack/issues/4390
+    ɵtype = 0 /* AnimationRendererType.Regular */;
+    constructor(namespaceId, delegate, engine, _onDestroy) {
+        this.namespaceId = namespaceId;
+        this.delegate = delegate;
+        this.engine = engine;
+        this._onDestroy = _onDestroy;
+    }
+    get data() {
+        return this.delegate.data;
+    }
+    destroyNode(node) {
+        this.delegate.destroyNode?.(node);
+    }
+    destroy() {
+        this.engine.destroy(this.namespaceId, this.delegate);
+        this.engine.afterFlushAnimationsDone(() => {
+            // Call the renderer destroy method after the animations has finished as otherwise
+            // styles will be removed too early which will cause an unstyled animation.
+            queueMicrotask(() => {
+                this.delegate.destroy();
+            });
+        });
+        this._onDestroy?.();
+    }
+    createElement(name, namespace) {
+        return this.delegate.createElement(name, namespace);
+    }
+    createComment(value) {
+        return this.delegate.createComment(value);
+    }
+    createText(value) {
+        return this.delegate.createText(value);
+    }
+    appendChild(parent, newChild) {
+        this.delegate.appendChild(parent, newChild);
+        this.engine.onInsert(this.namespaceId, newChild, parent, false);
+    }
+    insertBefore(parent, newChild, refChild, isMove = true) {
+        this.delegate.insertBefore(parent, newChild, refChild);
+        // If `isMove` true than we should animate this insert.
+        this.engine.onInsert(this.namespaceId, newChild, parent, isMove);
+    }
+    removeChild(parent, oldChild, isHostElement) {
+        // Prior to the changes in #57203, this method wasn't being called at all by `core` if the child
+        // doesn't have a parent. There appears to be some animation-specific downstream logic that
+        // depends on the null check happening before the animation engine. This check keeps the old
+        // behavior while allowing `core` to not have to check for the parent element anymore.
+        if (this.parentNode(oldChild)) {
+            this.engine.onRemove(this.namespaceId, oldChild, this.delegate);
+        }
+    }
+    selectRootElement(selectorOrNode, preserveContent) {
+        return this.delegate.selectRootElement(selectorOrNode, preserveContent);
+    }
+    parentNode(node) {
+        return this.delegate.parentNode(node);
+    }
+    nextSibling(node) {
+        return this.delegate.nextSibling(node);
+    }
+    setAttribute(el, name, value, namespace) {
+        this.delegate.setAttribute(el, name, value, namespace);
+    }
+    removeAttribute(el, name, namespace) {
+        this.delegate.removeAttribute(el, name, namespace);
+    }
+    addClass(el, name) {
+        this.delegate.addClass(el, name);
+    }
+    removeClass(el, name) {
+        this.delegate.removeClass(el, name);
+    }
+    setStyle(el, style, value, flags) {
+        this.delegate.setStyle(el, style, value, flags);
+    }
+    removeStyle(el, style, flags) {
+        this.delegate.removeStyle(el, style, flags);
+    }
+    setProperty(el, name, value) {
+        if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {
+            this.disableAnimations(el, !!value);
+        }
+        else {
+            this.delegate.setProperty(el, name, value);
+        }
+    }
+    setValue(node, value) {
+        this.delegate.setValue(node, value);
+    }
+    listen(target, eventName, callback, options) {
+        return this.delegate.listen(target, eventName, callback, options);
+    }
+    disableAnimations(element, value) {
+        this.engine.disableAnimations(element, value);
+    }
+}
+class AnimationRenderer extends BaseAnimationRenderer {
+    factory;
+    constructor(factory, namespaceId, delegate, engine, onDestroy) {
+        super(namespaceId, delegate, engine, onDestroy);
+        this.factory = factory;
+        this.namespaceId = namespaceId;
+    }
+    setProperty(el, name, value) {
+        if (name.charAt(0) == ANIMATION_PREFIX) {
+            if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {
+                value = value === undefined ? true : !!value;
+                this.disableAnimations(el, value);
+            }
+            else {
+                this.engine.process(this.namespaceId, el, name.slice(1), value);
+            }
+        }
+        else {
+            this.delegate.setProperty(el, name, value);
+        }
+    }
+    listen(target, eventName, callback, options) {
+        if (eventName.charAt(0) == ANIMATION_PREFIX) {
+            const element = resolveElementFromTarget(target);
+            let name = eventName.slice(1);
+            let phase = '';
+            // @listener.phase is for trigger animation callbacks
+            // @@listener is for animation builder callbacks
+            if (name.charAt(0) != ANIMATION_PREFIX) {
+                [name, phase] = parseTriggerCallbackName(name);
+            }
+            return this.engine.listen(this.namespaceId, element, name, phase, (event) => {
+                const countId = event['_data'] || -1;
+                this.factory.scheduleListenerCallback(countId, callback, event);
+            });
+        }
+        return this.delegate.listen(target, eventName, callback, options);
+    }
+}
+function resolveElementFromTarget(target) {
+    switch (target) {
+        case 'body':
+            return document.body;
+        case 'document':
+            return document;
+        case 'window':
+            return window;
+        default:
+            return target;
+    }
+}
+function parseTriggerCallbackName(triggerName) {
+    const dotIndex = triggerName.indexOf('.');
+    const trigger = triggerName.substring(0, dotIndex);
+    const phase = triggerName.slice(dotIndex + 1);
+    return [trigger, phase];
+}
+
+class AnimationRendererFactory {
+    delegate;
+    engine;
+    _zone;
+    _currentId = 0;
+    _microtaskId = 1;
+    _animationCallbacksBuffer = [];
+    _rendererCache = new Map();
+    _cdRecurDepth = 0;
+    constructor(delegate, engine, _zone) {
+        this.delegate = delegate;
+        this.engine = engine;
+        this._zone = _zone;
+        engine.onRemovalComplete = (element, delegate) => {
+            delegate?.removeChild(null, element);
+        };
+    }
+    createRenderer(hostElement, type) {
+        const EMPTY_NAMESPACE_ID = '';
+        // cache the delegates to find out which cached delegate can
+        // be used by which cached renderer
+        const delegate = this.delegate.createRenderer(hostElement, type);
+        if (!hostElement || !type?.data?.['animation']) {
+            const cache = this._rendererCache;
+            let renderer = cache.get(delegate);
+            if (!renderer) {
+                // Ensure that the renderer is removed from the cache on destroy
+                // since it may contain references to detached DOM nodes.
+                const onRendererDestroy = () => cache.delete(delegate);
+                renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine, onRendererDestroy);
+                // only cache this result when the base renderer is used
+                cache.set(delegate, renderer);
+            }
+            return renderer;
+        }
+        const componentId = type.id;
+        const namespaceId = type.id + '-' + this._currentId;
+        this._currentId++;
+        this.engine.register(namespaceId, hostElement);
+        const registerTrigger = (trigger) => {
+            if (Array.isArray(trigger)) {
+                trigger.forEach(registerTrigger);
+            }
+            else {
+                this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);
+            }
+        };
+        const animationTriggers = type.data['animation'];
+        animationTriggers.forEach(registerTrigger);
+        return new AnimationRenderer(this, namespaceId, delegate, this.engine);
+    }
+    begin() {
+        this._cdRecurDepth++;
+        if (this.delegate.begin) {
+            this.delegate.begin();
+        }
+    }
+    _scheduleCountTask() {
+        queueMicrotask(() => {
+            this._microtaskId++;
+        });
+    }
+    /** @internal */
+    scheduleListenerCallback(count, fn, data) {
+        if (count >= 0 && count < this._microtaskId) {
+            this._zone.run(() => fn(data));
+            return;
+        }
+        const animationCallbacksBuffer = this._animationCallbacksBuffer;
+        if (animationCallbacksBuffer.length == 0) {
+            queueMicrotask(() => {
+                this._zone.run(() => {
+                    animationCallbacksBuffer.forEach((tuple) => {
+                        const [fn, data] = tuple;
+                        fn(data);
+                    });
+                    this._animationCallbacksBuffer = [];
+                });
+            });
+        }
+        animationCallbacksBuffer.push([fn, data]);
+    }
+    end() {
+        this._cdRecurDepth--;
+        // this is to prevent animations from running twice when an inner
+        // component does CD when a parent component instead has inserted it
+        if (this._cdRecurDepth == 0) {
+            this._zone.runOutsideAngular(() => {
+                this._scheduleCountTask();
+                this.engine.flush(this._microtaskId);
+            });
+        }
+        if (this.delegate.end) {
+            this.delegate.end();
+        }
+    }
+    whenRenderingDone() {
+        return this.engine.whenRenderingDone();
+    }
+    /**
+     * Used during HMR to clear any cached data about a component.
+     * @param componentId ID of the component that is being replaced.
+     */
+    componentReplaced(componentId) {
+        // Flush the engine since the renderer destruction waits for animations to be done.
+        this.engine.flush();
+        this.delegate.componentReplaced?.(componentId);
+    }
+}
+
+export { AnimationDriver, NoopAnimationDriver, Animation as ɵAnimation, AnimationEngine as ɵAnimationEngine, AnimationRenderer as ɵAnimationRenderer, AnimationRendererFactory as ɵAnimationRendererFactory, AnimationStyleNormalizer as ɵAnimationStyleNormalizer, BaseAnimationRenderer as ɵBaseAnimationRenderer, ENTER_CLASSNAME as ɵENTER_CLASSNAME, LEAVE_CLASSNAME as ɵLEAVE_CLASSNAME, NoopAnimationStyleNormalizer as ɵNoopAnimationStyleNormalizer, TransitionAnimationPlayer as ɵTransitionAnimationPlayer, WebAnimationsDriver as ɵWebAnimationsDriver, WebAnimationsPlayer as ɵWebAnimationsPlayer, WebAnimationsStyleNormalizer as ɵWebAnimationsStyleNormalizer, allowPreviousPlayerStylesMerge as ɵallowPreviousPlayerStylesMerge, camelCaseToDashCase as ɵcamelCaseToDashCase, containsElement as ɵcontainsElement, createEngine as ɵcreateEngine, getParentElement as ɵgetParentElement, invokeQuery as ɵinvokeQuery, normalizeKeyframes$1 as ɵnormalizeKeyframes, validateStyleProperty as ɵvalidateStyleProperty, validateWebAnimatableStyleProperty as ɵvalidateWebAnimatableStyleProperty };
+//# sourceMappingURL=browser.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/animations/fesm2022/browser.mjs.map


+ 126 - 0
node_modules/@angular/animations/fesm2022/browser/testing.mjs

@@ -0,0 +1,126 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import { validateStyleProperty, camelCaseToDashCase, validateWebAnimatableStyleProperty, containsElement, getParentElement, invokeQuery, normalizeKeyframes$1 as normalizeKeyframes, allowPreviousPlayerStylesMerge } from '../util.mjs';
+import { NoopAnimationPlayer, AUTO_STYLE } from '../private_export.mjs';
+import '@angular/core';
+
+/**
+ * @publicApi
+ */
+class MockAnimationDriver {
+    static log = [];
+    validateStyleProperty(prop) {
+        return validateStyleProperty(prop);
+    }
+    validateAnimatableStyleProperty(prop) {
+        const cssProp = camelCaseToDashCase(prop);
+        return validateWebAnimatableStyleProperty(cssProp);
+    }
+    containsElement(elm1, elm2) {
+        return containsElement(elm1, elm2);
+    }
+    getParentElement(element) {
+        return getParentElement(element);
+    }
+    query(element, selector, multi) {
+        return invokeQuery(element, selector, multi);
+    }
+    computeStyle(element, prop, defaultValue) {
+        return defaultValue || '';
+    }
+    animate(element, keyframes, duration, delay, easing, previousPlayers = []) {
+        const player = new MockAnimationPlayer(element, keyframes, duration, delay, easing, previousPlayers);
+        MockAnimationDriver.log.push(player);
+        return player;
+    }
+}
+/**
+ * @publicApi
+ */
+class MockAnimationPlayer extends NoopAnimationPlayer {
+    element;
+    keyframes;
+    duration;
+    delay;
+    easing;
+    previousPlayers;
+    __finished = false;
+    __started = false;
+    previousStyles = new Map();
+    _onInitFns = [];
+    currentSnapshot = new Map();
+    _keyframes = [];
+    constructor(element, keyframes, duration, delay, easing, previousPlayers) {
+        super(duration, delay);
+        this.element = element;
+        this.keyframes = keyframes;
+        this.duration = duration;
+        this.delay = delay;
+        this.easing = easing;
+        this.previousPlayers = previousPlayers;
+        this._keyframes = normalizeKeyframes(keyframes);
+        if (allowPreviousPlayerStylesMerge(duration, delay)) {
+            previousPlayers.forEach((player) => {
+                if (player instanceof MockAnimationPlayer) {
+                    const styles = player.currentSnapshot;
+                    styles.forEach((val, prop) => this.previousStyles.set(prop, val));
+                }
+            });
+        }
+    }
+    /** @internal */
+    onInit(fn) {
+        this._onInitFns.push(fn);
+    }
+    /** @internal */
+    init() {
+        super.init();
+        this._onInitFns.forEach((fn) => fn());
+        this._onInitFns = [];
+    }
+    reset() {
+        super.reset();
+        this.__started = false;
+    }
+    finish() {
+        super.finish();
+        this.__finished = true;
+    }
+    destroy() {
+        super.destroy();
+        this.__finished = true;
+    }
+    /** @internal */
+    triggerMicrotask() { }
+    play() {
+        super.play();
+        this.__started = true;
+    }
+    hasStarted() {
+        return this.__started;
+    }
+    beforeDestroy() {
+        const captures = new Map();
+        this.previousStyles.forEach((val, prop) => captures.set(prop, val));
+        if (this.hasStarted()) {
+            // when assembling the captured styles, it's important that
+            // we build the keyframe styles in the following order:
+            // {other styles within keyframes, ... previousStyles }
+            this._keyframes.forEach((kf) => {
+                for (let [prop, val] of kf) {
+                    if (prop !== 'offset') {
+                        captures.set(prop, this.__finished ? val : AUTO_STYLE);
+                    }
+                }
+            });
+        }
+        this.currentSnapshot = captures;
+    }
+}
+
+export { MockAnimationDriver, MockAnimationPlayer };
+//# sourceMappingURL=testing.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/animations/fesm2022/browser/testing.mjs.map


+ 1176 - 0
node_modules/@angular/animations/fesm2022/private_export.mjs

@@ -0,0 +1,1176 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+/**
+ * @description Constants for the categories of parameters that can be defined for animations.
+ *
+ * A corresponding function defines a set of parameters for each category, and
+ * collects them into a corresponding `AnimationMetadata` object.
+ *
+ * @publicApi
+ */
+var AnimationMetadataType;
+(function (AnimationMetadataType) {
+    /**
+     * Associates a named animation state with a set of CSS styles.
+     * See [`state()`](api/animations/state)
+     */
+    AnimationMetadataType[AnimationMetadataType["State"] = 0] = "State";
+    /**
+     * Data for a transition from one animation state to another.
+     * See `transition()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Transition"] = 1] = "Transition";
+    /**
+     * Contains a set of animation steps.
+     * See `sequence()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Sequence"] = 2] = "Sequence";
+    /**
+     * Contains a set of animation steps.
+     * See `group()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Group"] = 3] = "Group";
+    /**
+     * Contains an animation step.
+     * See `animate()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Animate"] = 4] = "Animate";
+    /**
+     * Contains a set of animation steps.
+     * See `keyframes()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Keyframes"] = 5] = "Keyframes";
+    /**
+     * Contains a set of CSS property-value pairs into a named style.
+     * See `style()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Style"] = 6] = "Style";
+    /**
+     * Associates an animation with an entry trigger that can be attached to an element.
+     * See `trigger()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Trigger"] = 7] = "Trigger";
+    /**
+     * Contains a re-usable animation.
+     * See `animation()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Reference"] = 8] = "Reference";
+    /**
+     * Contains data to use in executing child animations returned by a query.
+     * See `animateChild()`
+     */
+    AnimationMetadataType[AnimationMetadataType["AnimateChild"] = 9] = "AnimateChild";
+    /**
+     * Contains animation parameters for a re-usable animation.
+     * See `useAnimation()`
+     */
+    AnimationMetadataType[AnimationMetadataType["AnimateRef"] = 10] = "AnimateRef";
+    /**
+     * Contains child-animation query data.
+     * See `query()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Query"] = 11] = "Query";
+    /**
+     * Contains data for staggering an animation sequence.
+     * See `stagger()`
+     */
+    AnimationMetadataType[AnimationMetadataType["Stagger"] = 12] = "Stagger";
+})(AnimationMetadataType || (AnimationMetadataType = {}));
+/**
+ * Specifies automatic styling.
+ *
+ * @publicApi
+ */
+const AUTO_STYLE = '*';
+/**
+ * Creates a named animation trigger, containing a  list of [`state()`](api/animations/state)
+ * and `transition()` entries to be evaluated when the expression
+ * bound to the trigger changes.
+ *
+ * @param name An identifying string.
+ * @param definitions  An animation definition object, containing an array of
+ * [`state()`](api/animations/state) and `transition()` declarations.
+ *
+ * @return An object that encapsulates the trigger data.
+ *
+ * @usageNotes
+ * Define an animation trigger in the `animations` section of `@Component` metadata.
+ * In the template, reference the trigger by name and bind it to a trigger expression that
+ * evaluates to a defined animation state, using the following format:
+ *
+ * `[@triggerName]="expression"`
+ *
+ * Animation trigger bindings convert all values to strings, and then match the
+ * previous and current values against any linked transitions.
+ * Booleans can be specified as `1` or `true` and `0` or `false`.
+ *
+ * ### Usage Example
+ *
+ * The following example creates an animation trigger reference based on the provided
+ * name value.
+ * The provided animation value is expected to be an array consisting of state and
+ * transition declarations.
+ *
+ * ```ts
+ * @Component({
+ *   selector: "my-component",
+ *   templateUrl: "my-component-tpl.html",
+ *   animations: [
+ *     trigger("myAnimationTrigger", [
+ *       state(...),
+ *       state(...),
+ *       transition(...),
+ *       transition(...)
+ *     ])
+ *   ]
+ * })
+ * class MyComponent {
+ *   myStatusExp = "something";
+ * }
+ * ```
+ *
+ * The template associated with this component makes use of the defined trigger
+ * by binding to an element within its template code.
+ *
+ * ```html
+ * <!-- somewhere inside of my-component-tpl.html -->
+ * <div [@myAnimationTrigger]="myStatusExp">...</div>
+ * ```
+ *
+ * ### Using an inline function
+ * The `transition` animation method also supports reading an inline function which can decide
+ * if its associated animation should be run.
+ *
+ * ```ts
+ * // this method is run each time the `myAnimationTrigger` trigger value changes.
+ * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:
+ string]: any}): boolean {
+ *   // notice that `element` and `params` are also available here
+ *   return toState == 'yes-please-animate';
+ * }
+ *
+ * @Component({
+ *   selector: 'my-component',
+ *   templateUrl: 'my-component-tpl.html',
+ *   animations: [
+ *     trigger('myAnimationTrigger', [
+ *       transition(myInlineMatcherFn, [
+ *         // the animation sequence code
+ *       ]),
+ *     ])
+ *   ]
+ * })
+ * class MyComponent {
+ *   myStatusExp = "yes-please-animate";
+ * }
+ * ```
+ *
+ * ### Disabling Animations
+ * When true, the special animation control binding `@.disabled` binding prevents
+ * all animations from rendering.
+ * Place the  `@.disabled` binding on an element to disable
+ * animations on the element itself, as well as any inner animation triggers
+ * within the element.
+ *
+ * The following example shows how to use this feature:
+ *
+ * ```angular-ts
+ * @Component({
+ *   selector: 'my-component',
+ *   template: `
+ *     <div [@.disabled]="isDisabled">
+ *       <div [@childAnimation]="exp"></div>
+ *     </div>
+ *   `,
+ *   animations: [
+ *     trigger("childAnimation", [
+ *       // ...
+ *     ])
+ *   ]
+ * })
+ * class MyComponent {
+ *   isDisabled = true;
+ *   exp = '...';
+ * }
+ * ```
+ *
+ * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,
+ * along with any inner animations.
+ *
+ * ### Disable animations application-wide
+ * When an area of the template is set to have animations disabled,
+ * **all** inner components have their animations disabled as well.
+ * This means that you can disable all animations for an app
+ * by placing a host binding set on `@.disabled` on the topmost Angular component.
+ *
+ * ```ts
+ * import {Component, HostBinding} from '@angular/core';
+ *
+ * @Component({
+ *   selector: 'app-component',
+ *   templateUrl: 'app.component.html',
+ * })
+ * class AppComponent {
+ *   @HostBinding('@.disabled')
+ *   public animationsDisabled = true;
+ * }
+ * ```
+ *
+ * ### Overriding disablement of inner animations
+ * Despite inner animations being disabled, a parent animation can `query()`
+ * for inner elements located in disabled areas of the template and still animate
+ * them if needed. This is also the case for when a sub animation is
+ * queried by a parent and then later animated using `animateChild()`.
+ *
+ * ### Detecting when an animation is disabled
+ * If a region of the DOM (or the entire application) has its animations disabled, the animation
+ * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides
+ * an instance of an `AnimationEvent`. If animations are disabled,
+ * the `.disabled` flag on the event is true.
+ *
+ * @publicApi
+ */
+function trigger(name, definitions) {
+    return { type: AnimationMetadataType.Trigger, name, definitions, options: {} };
+}
+/**
+ * Defines an animation step that combines styling information with timing information.
+ *
+ * @param timings Sets `AnimateTimings` for the parent animation.
+ * A string in the format "duration [delay] [easing]".
+ *  - Duration and delay are expressed as a number and optional time unit,
+ * such as "1s" or "10ms" for one second and 10 milliseconds, respectively.
+ * The default unit is milliseconds.
+ *  - The easing value controls how the animation accelerates and decelerates
+ * during its runtime. Value is one of  `ease`, `ease-in`, `ease-out`,
+ * `ease-in-out`, or a `cubic-bezier()` function call.
+ * If not supplied, no easing is applied.
+ *
+ * For example, the string "1s 100ms ease-out" specifies a duration of
+ * 1000 milliseconds, and delay of 100 ms, and the "ease-out" easing style,
+ * which decelerates near the end of the duration.
+ * @param styles Sets AnimationStyles for the parent animation.
+ * A function call to either `style()` or `keyframes()`
+ * that returns a collection of CSS style entries to be applied to the parent animation.
+ * When null, uses the styles from the destination state.
+ * This is useful when describing an animation step that will complete an animation;
+ * see "Animating to the final state" in `transitions()`.
+ * @returns An object that encapsulates the animation step.
+ *
+ * @usageNotes
+ * Call within an animation `sequence()`, {@link /api/animations/group group()}, or
+ * `transition()` call to specify an animation step
+ * that applies given style data to the parent animation for a given amount of time.
+ *
+ * ### Syntax Examples
+ * **Timing examples**
+ *
+ * The following examples show various `timings` specifications.
+ * - `animate(500)` : Duration is 500 milliseconds.
+ * - `animate("1s")` : Duration is 1000 milliseconds.
+ * - `animate("100ms 0.5s")` : Duration is 100 milliseconds, delay is 500 milliseconds.
+ * - `animate("5s ease-in")` : Duration is 5000 milliseconds, easing in.
+ * - `animate("5s 10ms cubic-bezier(.17,.67,.88,.1)")` : Duration is 5000 milliseconds, delay is 10
+ * milliseconds, easing according to a bezier curve.
+ *
+ * **Style examples**
+ *
+ * The following example calls `style()` to set a single CSS style.
+ * ```ts
+ * animate(500, style({ background: "red" }))
+ * ```
+ * The following example calls `keyframes()` to set a CSS style
+ * to different values for successive keyframes.
+ * ```ts
+ * animate(500, keyframes(
+ *  [
+ *   style({ background: "blue" }),
+ *   style({ background: "red" })
+ *  ])
+ * ```
+ *
+ * @publicApi
+ */
+function animate(timings, styles = null) {
+    return { type: AnimationMetadataType.Animate, styles, timings };
+}
+/**
+ * @description Defines a list of animation steps to be run in parallel.
+ *
+ * @param steps An array of animation step objects.
+ * - When steps are defined by `style()` or `animate()`
+ * function calls, each call within the group is executed instantly.
+ * - To specify offset styles to be applied at a later time, define steps with
+ * `keyframes()`, or use `animate()` calls with a delay value.
+ * For example:
+ *
+ * ```ts
+ * group([
+ *   animate("1s", style({ background: "black" })),
+ *   animate("2s", style({ color: "white" }))
+ * ])
+ * ```
+ *
+ * @param options An options object containing a delay and
+ * developer-defined parameters that provide styling defaults and
+ * can be overridden on invocation.
+ *
+ * @return An object that encapsulates the group data.
+ *
+ * @usageNotes
+ * Grouped animations are useful when a series of styles must be
+ * animated at different starting times and closed off at different ending times.
+ *
+ * When called within a `sequence()` or a
+ * `transition()` call, does not continue to the next
+ * instruction until all of the inner animation steps have completed.
+ *
+ * @publicApi
+ */
+function group(steps, options = null) {
+    return { type: AnimationMetadataType.Group, steps, options };
+}
+/**
+ * Defines a list of animation steps to be run sequentially, one by one.
+ *
+ * @param steps An array of animation step objects.
+ * - Steps defined by `style()` calls apply the styling data immediately.
+ * - Steps defined by `animate()` calls apply the styling data over time
+ *   as specified by the timing data.
+ *
+ * ```ts
+ * sequence([
+ *   style({ opacity: 0 }),
+ *   animate("1s", style({ opacity: 1 }))
+ * ])
+ * ```
+ *
+ * @param options An options object containing a delay and
+ * developer-defined parameters that provide styling defaults and
+ * can be overridden on invocation.
+ *
+ * @return An object that encapsulates the sequence data.
+ *
+ * @usageNotes
+ * When you pass an array of steps to a
+ * `transition()` call, the steps run sequentially by default.
+ * Compare this to the  {@link /api/animations/group group()} call, which runs animation steps in
+ *parallel.
+ *
+ * When a sequence is used within a  {@link /api/animations/group group()} or a `transition()` call,
+ * execution continues to the next instruction only after each of the inner animation
+ * steps have completed.
+ *
+ * @publicApi
+ **/
+function sequence(steps, options = null) {
+    return { type: AnimationMetadataType.Sequence, steps, options };
+}
+/**
+ * Declares a key/value object containing CSS properties/styles that
+ * can then be used for an animation [`state`](api/animations/state), within an animation
+ *`sequence`, or as styling data for calls to `animate()` and `keyframes()`.
+ *
+ * @param tokens A set of CSS styles or HTML styles associated with an animation state.
+ * The value can be any of the following:
+ * - A key-value style pair associating a CSS property with a value.
+ * - An array of key-value style pairs.
+ * - An asterisk (*), to use auto-styling, where styles are derived from the element
+ * being animated and applied to the animation when it starts.
+ *
+ * Auto-styling can be used to define a state that depends on layout or other
+ * environmental factors.
+ *
+ * @return An object that encapsulates the style data.
+ *
+ * @usageNotes
+ * The following examples create animation styles that collect a set of
+ * CSS property values:
+ *
+ * ```ts
+ * // string values for CSS properties
+ * style({ background: "red", color: "blue" })
+ *
+ * // numerical pixel values
+ * style({ width: 100, height: 0 })
+ * ```
+ *
+ * The following example uses auto-styling to allow an element to animate from
+ * a height of 0 up to its full height:
+ *
+ * ```ts
+ * style({ height: 0 }),
+ * animate("1s", style({ height: "*" }))
+ * ```
+ *
+ * @publicApi
+ **/
+function style(tokens) {
+    return { type: AnimationMetadataType.Style, styles: tokens, offset: null };
+}
+/**
+ * Declares an animation state within a trigger attached to an element.
+ *
+ * @param name One or more names for the defined state in a comma-separated string.
+ * The following reserved state names can be supplied to define a style for specific use
+ * cases:
+ *
+ * - `void` You can associate styles with this name to be used when
+ * the element is detached from the application. For example, when an `ngIf` evaluates
+ * to false, the state of the associated element is void.
+ *  - `*` (asterisk) Indicates the default state. You can associate styles with this name
+ * to be used as the fallback when the state that is being animated is not declared
+ * within the trigger.
+ *
+ * @param styles A set of CSS styles associated with this state, created using the
+ * `style()` function.
+ * This set of styles persists on the element once the state has been reached.
+ * @param options Parameters that can be passed to the state when it is invoked.
+ * 0 or more key-value pairs.
+ * @return An object that encapsulates the new state data.
+ *
+ * @usageNotes
+ * Use the `trigger()` function to register states to an animation trigger.
+ * Use the `transition()` function to animate between states.
+ * When a state is active within a component, its associated styles persist on the element,
+ * even when the animation ends.
+ *
+ * @publicApi
+ **/
+function state(name, styles, options) {
+    return { type: AnimationMetadataType.State, name, styles, options };
+}
+/**
+ * Defines a set of animation styles, associating each style with an optional `offset` value.
+ *
+ * @param steps A set of animation styles with optional offset data.
+ * The optional `offset` value for a style specifies a percentage of the total animation
+ * time at which that style is applied.
+ * @returns An object that encapsulates the keyframes data.
+ *
+ * @usageNotes
+ * Use with the `animate()` call. Instead of applying animations
+ * from the current state
+ * to the destination state, keyframes describe how each style entry is applied and at what point
+ * within the animation arc.
+ * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).
+ *
+ * ### Usage
+ *
+ * In the following example, the offset values describe
+ * when each `backgroundColor` value is applied. The color is red at the start, and changes to
+ * blue when 20% of the total time has elapsed.
+ *
+ * ```ts
+ * // the provided offset values
+ * animate("5s", keyframes([
+ *   style({ backgroundColor: "red", offset: 0 }),
+ *   style({ backgroundColor: "blue", offset: 0.2 }),
+ *   style({ backgroundColor: "orange", offset: 0.3 }),
+ *   style({ backgroundColor: "black", offset: 1 })
+ * ]))
+ * ```
+ *
+ * If there are no `offset` values specified in the style entries, the offsets
+ * are calculated automatically.
+ *
+ * ```ts
+ * animate("5s", keyframes([
+ *   style({ backgroundColor: "red" }) // offset = 0
+ *   style({ backgroundColor: "blue" }) // offset = 0.33
+ *   style({ backgroundColor: "orange" }) // offset = 0.66
+ *   style({ backgroundColor: "black" }) // offset = 1
+ * ]))
+ *```
+
+ * @publicApi
+ */
+function keyframes(steps) {
+    return { type: AnimationMetadataType.Keyframes, steps };
+}
+/**
+ * Declares an animation transition which is played when a certain specified condition is met.
+ *
+ * @param stateChangeExpr A string with a specific format or a function that specifies when the
+ * animation transition should occur (see [State Change Expression](#state-change-expression)).
+ *
+ * @param steps One or more animation objects that represent the animation's instructions.
+ *
+ * @param options An options object that can be used to specify a delay for the animation or provide
+ * custom parameters for it.
+ *
+ * @returns An object that encapsulates the transition data.
+ *
+ * @usageNotes
+ *
+ * ### State Change Expression
+ *
+ * The State Change Expression instructs Angular when to run the transition's animations, it can
+ *either be
+ *  - a string with a specific syntax
+ *  - or a function that compares the previous and current state (value of the expression bound to
+ *    the element's trigger) and returns `true` if the transition should occur or `false` otherwise
+ *
+ * The string format can be:
+ *  - `fromState => toState`, which indicates that the transition's animations should occur then the
+ *    expression bound to the trigger's element goes from `fromState` to `toState`
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition('open => closed', animate('.5s ease-out', style({ height: 0 }) ))
+ *      ```
+ *
+ *  - `fromState <=> toState`, which indicates that the transition's animations should occur then
+ *    the expression bound to the trigger's element goes from `fromState` to `toState` or vice versa
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition('enabled <=> disabled', animate('1s cubic-bezier(0.8,0.3,0,1)'))
+ *      ```
+ *
+ *  - `:enter`/`:leave`, which indicates that the transition's animations should occur when the
+ *    element enters or exists the DOM
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition(':enter', [
+ *          style({ opacity: 0 }),
+ *          animate('500ms', style({ opacity: 1 }))
+ *        ])
+ *      ```
+ *
+ *  - `:increment`/`:decrement`, which indicates that the transition's animations should occur when
+ *    the numerical expression bound to the trigger's element has increased in value or decreased
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition(':increment', query('@counter', animateChild()))
+ *      ```
+ *
+ *  - a sequence of any of the above divided by commas, which indicates that transition's animations
+ *    should occur whenever one of the state change expressions matches
+ *
+ *    _Example:_
+ *      ```ts
+ *        transition(':increment, * => enabled, :enter', animate('1s ease', keyframes([
+ *          style({ transform: 'scale(1)', offset: 0}),
+ *          style({ transform: 'scale(1.1)', offset: 0.7}),
+ *          style({ transform: 'scale(1)', offset: 1})
+ *        ]))),
+ *      ```
+ *
+ * Also note that in such context:
+ *  - `void` can be used to indicate the absence of the element
+ *  - asterisks can be used as wildcards that match any state
+ *  - (as a consequence of the above, `void => *` is equivalent to `:enter` and `* => void` is
+ *    equivalent to `:leave`)
+ *  - `true` and `false` also match expression values of `1` and `0` respectively (but do not match
+ *    _truthy_ and _falsy_ values)
+ *
+ * <div class="docs-alert docs-alert-helpful">
+ *
+ *  Be careful about entering end leaving elements as their transitions present a common
+ *  pitfall for developers.
+ *
+ *  Note that when an element with a trigger enters the DOM its `:enter` transition always
+ *  gets executed, but its `:leave` transition will not be executed if the element is removed
+ *  alongside its parent (as it will be removed "without warning" before its transition has
+ *  a chance to be executed, the only way that such transition can occur is if the element
+ *  is exiting the DOM on its own).
+ *
+ *
+ * </div>
+ *
+ * ### Animating to a Final State
+ *
+ * If the final step in a transition is a call to `animate()` that uses a timing value
+ * with no `style` data, that step is automatically considered the final animation arc,
+ * for the element to reach the final state, in such case Angular automatically adds or removes
+ * CSS styles to ensure that the element is in the correct final state.
+ *
+ *
+ * ### Usage Examples
+ *
+ *  - Transition animations applied based on
+ *    the trigger's expression value
+ *
+ *   ```html
+ *   <div [@myAnimationTrigger]="myStatusExp">
+ *    ...
+ *   </div>
+ *   ```
+ *
+ *   ```ts
+ *   trigger("myAnimationTrigger", [
+ *     ..., // states
+ *     transition("on => off, open => closed", animate(500)),
+ *     transition("* <=> error", query('.indicator', animateChild()))
+ *   ])
+ *   ```
+ *
+ *  - Transition animations applied based on custom logic dependent
+ *    on the trigger's expression value and provided parameters
+ *
+ *    ```html
+ *    <div [@myAnimationTrigger]="{
+ *     value: stepName,
+ *     params: { target: currentTarget }
+ *    }">
+ *     ...
+ *    </div>
+ *    ```
+ *
+ *    ```ts
+ *    trigger("myAnimationTrigger", [
+ *      ..., // states
+ *      transition(
+ *        (fromState, toState, _element, params) =>
+ *          ['firststep', 'laststep'].includes(fromState.toLowerCase())
+ *          && toState === params?.['target'],
+ *        animate('1s')
+ *      )
+ *    ])
+ *    ```
+ *
+ * @publicApi
+ **/
+function transition(stateChangeExpr, steps, options = null) {
+    return { type: AnimationMetadataType.Transition, expr: stateChangeExpr, animation: steps, options };
+}
+/**
+ * Produces a reusable animation that can be invoked in another animation or sequence,
+ * by calling the `useAnimation()` function.
+ *
+ * @param steps One or more animation objects, as returned by the `animate()`
+ * or `sequence()` function, that form a transformation from one state to another.
+ * A sequence is used by default when you pass an array.
+ * @param options An options object that can contain a delay value for the start of the
+ * animation, and additional developer-defined parameters.
+ * Provided values for additional parameters are used as defaults,
+ * and override values can be passed to the caller on invocation.
+ * @returns An object that encapsulates the animation data.
+ *
+ * @usageNotes
+ * The following example defines a reusable animation, providing some default parameter
+ * values.
+ *
+ * ```ts
+ * var fadeAnimation = animation([
+ *   style({ opacity: '{{ start }}' }),
+ *   animate('{{ time }}',
+ *   style({ opacity: '{{ end }}'}))
+ *   ],
+ *   { params: { time: '1000ms', start: 0, end: 1 }});
+ * ```
+ *
+ * The following invokes the defined animation with a call to `useAnimation()`,
+ * passing in override parameter values.
+ *
+ * ```js
+ * useAnimation(fadeAnimation, {
+ *   params: {
+ *     time: '2s',
+ *     start: 1,
+ *     end: 0
+ *   }
+ * })
+ * ```
+ *
+ * If any of the passed-in parameter values are missing from this call,
+ * the default values are used. If one or more parameter values are missing before a step is
+ * animated, `useAnimation()` throws an error.
+ *
+ * @publicApi
+ */
+function animation(steps, options = null) {
+    return { type: AnimationMetadataType.Reference, animation: steps, options };
+}
+/**
+ * Executes a queried inner animation element within an animation sequence.
+ *
+ * @param options An options object that can contain a delay value for the start of the
+ * animation, and additional override values for developer-defined parameters.
+ * @return An object that encapsulates the child animation data.
+ *
+ * @usageNotes
+ * Each time an animation is triggered in Angular, the parent animation
+ * has priority and any child animations are blocked. In order
+ * for a child animation to run, the parent animation must query each of the elements
+ * containing child animations, and run them using this function.
+ *
+ * Note that this feature is designed to be used with `query()` and it will only work
+ * with animations that are assigned using the Angular animation library. CSS keyframes
+ * and transitions are not handled by this API.
+ *
+ * @publicApi
+ */
+function animateChild(options = null) {
+    return { type: AnimationMetadataType.AnimateChild, options };
+}
+/**
+ * Starts a reusable animation that is created using the `animation()` function.
+ *
+ * @param animation The reusable animation to start.
+ * @param options An options object that can contain a delay value for the start of
+ * the animation, and additional override values for developer-defined parameters.
+ * @return An object that contains the animation parameters.
+ *
+ * @publicApi
+ */
+function useAnimation(animation, options = null) {
+    return { type: AnimationMetadataType.AnimateRef, animation, options };
+}
+/**
+ * Finds one or more inner elements within the current element that is
+ * being animated within a sequence. Use with `animate()`.
+ *
+ * @param selector The element to query, or a set of elements that contain Angular-specific
+ * characteristics, specified with one or more of the following tokens.
+ *  - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements (not
+ *     all elements can be queried via these tokens, see
+ *     [Entering and Leaving Elements](#entering-and-leaving-elements))
+ *  - `query(":animating")` : Query all currently animating elements.
+ *  - `query("@triggerName")` : Query elements that contain an animation trigger.
+ *  - `query("@*")` : Query all elements that contain an animation triggers.
+ *  - `query(":self")` : Include the current element into the animation sequence.
+ *
+ * @param animation One or more animation steps to apply to the queried element or elements.
+ * An array is treated as an animation sequence.
+ * @param options An options object. Use the 'limit' field to limit the total number of
+ * items to collect.
+ * @return An object that encapsulates the query data.
+ *
+ * @usageNotes
+ *
+ * ### Multiple Tokens
+ *
+ * Tokens can be merged into a combined query selector string. For example:
+ *
+ * ```ts
+ *  query(':self, .record:enter, .record:leave, @subTrigger', [...])
+ * ```
+ *
+ * The `query()` function collects multiple elements and works internally by using
+ * `element.querySelectorAll`. Use the `limit` field of an options object to limit
+ * the total number of items to be collected. For example:
+ *
+ * ```js
+ * query('div', [
+ *   animate(...),
+ *   animate(...)
+ * ], { limit: 1 })
+ * ```
+ *
+ * By default, throws an error when zero items are found. Set the
+ * `optional` flag to ignore this error. For example:
+ *
+ * ```js
+ * query('.some-element-that-may-not-be-there', [
+ *   animate(...),
+ *   animate(...)
+ * ], { optional: true })
+ * ```
+ *
+ * ### Entering and Leaving Elements
+ *
+ * Not all elements can be queried via the `:enter` and `:leave` tokens, the only ones
+ * that can are those that Angular assumes can enter/leave based on their own logic
+ * (if their insertion/removal is simply a consequence of that of their parent they
+ * should be queried via a different token in their parent's `:enter`/`:leave` transitions).
+ *
+ * The only elements Angular assumes can enter/leave based on their own logic (thus the only
+ * ones that can be queried via the `:enter` and `:leave` tokens) are:
+ *  - Those inserted dynamically (via `ViewContainerRef`)
+ *  - Those that have a structural directive (which, under the hood, are a subset of the above ones)
+ *
+ * <div class="docs-alert docs-alert-helpful">
+ *
+ *  Note that elements will be successfully queried via `:enter`/`:leave` even if their
+ *  insertion/removal is not done manually via `ViewContainerRef`or caused by their structural
+ *  directive (e.g. they enter/exit alongside their parent).
+ *
+ * </div>
+ *
+ * <div class="docs-alert docs-alert-important">
+ *
+ *  There is an exception to what previously mentioned, besides elements entering/leaving based on
+ *  their own logic, elements with an animation trigger can always be queried via `:leave` when
+ * their parent is also leaving.
+ *
+ * </div>
+ *
+ * ### Usage Example
+ *
+ * The following example queries for inner elements and animates them
+ * individually using `animate()`.
+ *
+ * ```angular-ts
+ * @Component({
+ *   selector: 'inner',
+ *   template: `
+ *     <div [@queryAnimation]="exp">
+ *       <h1>Title</h1>
+ *       <div class="content">
+ *         Blah blah blah
+ *       </div>
+ *     </div>
+ *   `,
+ *   animations: [
+ *    trigger('queryAnimation', [
+ *      transition('* => goAnimate', [
+ *        // hide the inner elements
+ *        query('h1', style({ opacity: 0 })),
+ *        query('.content', style({ opacity: 0 })),
+ *
+ *        // animate the inner elements in, one by one
+ *        query('h1', animate(1000, style({ opacity: 1 }))),
+ *        query('.content', animate(1000, style({ opacity: 1 }))),
+ *      ])
+ *    ])
+ *  ]
+ * })
+ * class Cmp {
+ *   exp = '';
+ *
+ *   goAnimate() {
+ *     this.exp = 'goAnimate';
+ *   }
+ * }
+ * ```
+ *
+ * @publicApi
+ */
+function query(selector, animation, options = null) {
+    return { type: AnimationMetadataType.Query, selector, animation, options };
+}
+/**
+ * Use within an animation `query()` call to issue a timing gap after
+ * each queried item is animated.
+ *
+ * @param timings A delay value.
+ * @param animation One ore more animation steps.
+ * @returns An object that encapsulates the stagger data.
+ *
+ * @usageNotes
+ * In the following example, a container element wraps a list of items stamped out
+ * by an `@for` block. The container element contains an animation trigger that will later be set
+ * to query for each of the inner items.
+ *
+ * Each time items are added, the opacity fade-in animation runs,
+ * and each removed item is faded out.
+ * When either of these animations occur, the stagger effect is
+ * applied after each item's animation is started.
+ *
+ * ```html
+ * <!-- list.component.html -->
+ * <button (click)="toggle()">Show / Hide Items</button>
+ * <hr />
+ * <div [@listAnimation]="items.length">
+ *   @for(item of items; track $index) {
+ *      <div>{{ item }}</div>
+ *   }
+ * </div>
+ * ```
+ *
+ * Here is the component code:
+ *
+ * ```ts
+ * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';
+ * @Component({
+ *   templateUrl: 'list.component.html',
+ *   animations: [
+ *     trigger('listAnimation', [
+ *     ...
+ *     ])
+ *   ]
+ * })
+ * class ListComponent {
+ *   items = [];
+ *
+ *   showItems() {
+ *     this.items = [0,1,2,3,4];
+ *   }
+ *
+ *   hideItems() {
+ *     this.items = [];
+ *   }
+ *
+ *   toggle() {
+ *     this.items.length ? this.hideItems() : this.showItems();
+ *    }
+ *  }
+ * ```
+ *
+ * Here is the animation trigger code:
+ *
+ * ```ts
+ * trigger('listAnimation', [
+ *   transition('* => *', [ // each time the binding value changes
+ *     query(':leave', [
+ *       stagger(100, [
+ *         animate('0.5s', style({ opacity: 0 }))
+ *       ])
+ *     ]),
+ *     query(':enter', [
+ *       style({ opacity: 0 }),
+ *       stagger(100, [
+ *         animate('0.5s', style({ opacity: 1 }))
+ *       ])
+ *     ])
+ *   ])
+ * ])
+ * ```
+ *
+ * @publicApi
+ */
+function stagger(timings, animation) {
+    return { type: AnimationMetadataType.Stagger, timings, animation };
+}
+
+/**
+ * An empty programmatic controller for reusable animations.
+ * Used internally when animations are disabled, to avoid
+ * checking for the null case when an animation player is expected.
+ *
+ * @see {@link animate}
+ * @see {@link AnimationPlayer}
+ *
+ * @publicApi
+ */
+class NoopAnimationPlayer {
+    _onDoneFns = [];
+    _onStartFns = [];
+    _onDestroyFns = [];
+    _originalOnDoneFns = [];
+    _originalOnStartFns = [];
+    _started = false;
+    _destroyed = false;
+    _finished = false;
+    _position = 0;
+    parentPlayer = null;
+    totalTime;
+    constructor(duration = 0, delay = 0) {
+        this.totalTime = duration + delay;
+    }
+    _onFinish() {
+        if (!this._finished) {
+            this._finished = true;
+            this._onDoneFns.forEach((fn) => fn());
+            this._onDoneFns = [];
+        }
+    }
+    onStart(fn) {
+        this._originalOnStartFns.push(fn);
+        this._onStartFns.push(fn);
+    }
+    onDone(fn) {
+        this._originalOnDoneFns.push(fn);
+        this._onDoneFns.push(fn);
+    }
+    onDestroy(fn) {
+        this._onDestroyFns.push(fn);
+    }
+    hasStarted() {
+        return this._started;
+    }
+    init() { }
+    play() {
+        if (!this.hasStarted()) {
+            this._onStart();
+            this.triggerMicrotask();
+        }
+        this._started = true;
+    }
+    /** @internal */
+    triggerMicrotask() {
+        queueMicrotask(() => this._onFinish());
+    }
+    _onStart() {
+        this._onStartFns.forEach((fn) => fn());
+        this._onStartFns = [];
+    }
+    pause() { }
+    restart() { }
+    finish() {
+        this._onFinish();
+    }
+    destroy() {
+        if (!this._destroyed) {
+            this._destroyed = true;
+            if (!this.hasStarted()) {
+                this._onStart();
+            }
+            this.finish();
+            this._onDestroyFns.forEach((fn) => fn());
+            this._onDestroyFns = [];
+        }
+    }
+    reset() {
+        this._started = false;
+        this._finished = false;
+        this._onStartFns = this._originalOnStartFns;
+        this._onDoneFns = this._originalOnDoneFns;
+    }
+    setPosition(position) {
+        this._position = this.totalTime ? position * this.totalTime : 1;
+    }
+    getPosition() {
+        return this.totalTime ? this._position / this.totalTime : 1;
+    }
+    /** @internal */
+    triggerCallback(phaseName) {
+        const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
+        methods.forEach((fn) => fn());
+        methods.length = 0;
+    }
+}
+
+/**
+ * A programmatic controller for a group of reusable animations.
+ * Used internally to control animations.
+ *
+ * @see {@link AnimationPlayer}
+ * @see {@link animations/group group}
+ *
+ */
+class AnimationGroupPlayer {
+    _onDoneFns = [];
+    _onStartFns = [];
+    _finished = false;
+    _started = false;
+    _destroyed = false;
+    _onDestroyFns = [];
+    parentPlayer = null;
+    totalTime = 0;
+    players;
+    constructor(_players) {
+        this.players = _players;
+        let doneCount = 0;
+        let destroyCount = 0;
+        let startCount = 0;
+        const total = this.players.length;
+        if (total == 0) {
+            queueMicrotask(() => this._onFinish());
+        }
+        else {
+            this.players.forEach((player) => {
+                player.onDone(() => {
+                    if (++doneCount == total) {
+                        this._onFinish();
+                    }
+                });
+                player.onDestroy(() => {
+                    if (++destroyCount == total) {
+                        this._onDestroy();
+                    }
+                });
+                player.onStart(() => {
+                    if (++startCount == total) {
+                        this._onStart();
+                    }
+                });
+            });
+        }
+        this.totalTime = this.players.reduce((time, player) => Math.max(time, player.totalTime), 0);
+    }
+    _onFinish() {
+        if (!this._finished) {
+            this._finished = true;
+            this._onDoneFns.forEach((fn) => fn());
+            this._onDoneFns = [];
+        }
+    }
+    init() {
+        this.players.forEach((player) => player.init());
+    }
+    onStart(fn) {
+        this._onStartFns.push(fn);
+    }
+    _onStart() {
+        if (!this.hasStarted()) {
+            this._started = true;
+            this._onStartFns.forEach((fn) => fn());
+            this._onStartFns = [];
+        }
+    }
+    onDone(fn) {
+        this._onDoneFns.push(fn);
+    }
+    onDestroy(fn) {
+        this._onDestroyFns.push(fn);
+    }
+    hasStarted() {
+        return this._started;
+    }
+    play() {
+        if (!this.parentPlayer) {
+            this.init();
+        }
+        this._onStart();
+        this.players.forEach((player) => player.play());
+    }
+    pause() {
+        this.players.forEach((player) => player.pause());
+    }
+    restart() {
+        this.players.forEach((player) => player.restart());
+    }
+    finish() {
+        this._onFinish();
+        this.players.forEach((player) => player.finish());
+    }
+    destroy() {
+        this._onDestroy();
+    }
+    _onDestroy() {
+        if (!this._destroyed) {
+            this._destroyed = true;
+            this._onFinish();
+            this.players.forEach((player) => player.destroy());
+            this._onDestroyFns.forEach((fn) => fn());
+            this._onDestroyFns = [];
+        }
+    }
+    reset() {
+        this.players.forEach((player) => player.reset());
+        this._destroyed = false;
+        this._finished = false;
+        this._started = false;
+    }
+    setPosition(p) {
+        const timeAtPosition = p * this.totalTime;
+        this.players.forEach((player) => {
+            const position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;
+            player.setPosition(position);
+        });
+    }
+    getPosition() {
+        const longestPlayer = this.players.reduce((longestSoFar, player) => {
+            const newPlayerIsLongest = longestSoFar === null || player.totalTime > longestSoFar.totalTime;
+            return newPlayerIsLongest ? player : longestSoFar;
+        }, null);
+        return longestPlayer != null ? longestPlayer.getPosition() : 0;
+    }
+    beforeDestroy() {
+        this.players.forEach((player) => {
+            if (player.beforeDestroy) {
+                player.beforeDestroy();
+            }
+        });
+    }
+    /** @internal */
+    triggerCallback(phaseName) {
+        const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
+        methods.forEach((fn) => fn());
+        methods.length = 0;
+    }
+}
+
+const ɵPRE_STYLE = '!';
+
+export { AUTO_STYLE, AnimationGroupPlayer, AnimationMetadataType, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, ɵPRE_STYLE };
+//# sourceMappingURL=private_export.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/animations/fesm2022/private_export.mjs.map


+ 697 - 0
node_modules/@angular/animations/fesm2022/util.mjs

@@ -0,0 +1,697 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import { AnimationGroupPlayer, NoopAnimationPlayer, AUTO_STYLE, ɵPRE_STYLE as _PRE_STYLE, AnimationMetadataType, sequence } from './private_export.mjs';
+import { ɵRuntimeError as _RuntimeError } from '@angular/core';
+
+const LINE_START = '\n - ';
+function invalidTimingValue(exp) {
+    return new _RuntimeError(3000 /* RuntimeErrorCode.INVALID_TIMING_VALUE */, ngDevMode && `The provided timing value "${exp}" is invalid.`);
+}
+function negativeStepValue() {
+    return new _RuntimeError(3100 /* RuntimeErrorCode.NEGATIVE_STEP_VALUE */, ngDevMode && 'Duration values below 0 are not allowed for this animation step.');
+}
+function negativeDelayValue() {
+    return new _RuntimeError(3101 /* RuntimeErrorCode.NEGATIVE_DELAY_VALUE */, ngDevMode && 'Delay values below 0 are not allowed for this animation step.');
+}
+function invalidStyleParams(varName) {
+    return new _RuntimeError(3001 /* RuntimeErrorCode.INVALID_STYLE_PARAMS */, ngDevMode &&
+        `Unable to resolve the local animation param ${varName} in the given list of values`);
+}
+function invalidParamValue(varName) {
+    return new _RuntimeError(3003 /* RuntimeErrorCode.INVALID_PARAM_VALUE */, ngDevMode && `Please provide a value for the animation param ${varName}`);
+}
+function invalidNodeType(nodeType) {
+    return new _RuntimeError(3004 /* RuntimeErrorCode.INVALID_NODE_TYPE */, ngDevMode && `Unable to resolve animation metadata node #${nodeType}`);
+}
+function invalidCssUnitValue(userProvidedProperty, value) {
+    return new _RuntimeError(3005 /* RuntimeErrorCode.INVALID_CSS_UNIT_VALUE */, ngDevMode && `Please provide a CSS unit value for ${userProvidedProperty}:${value}`);
+}
+function invalidTrigger() {
+    return new _RuntimeError(3006 /* RuntimeErrorCode.INVALID_TRIGGER */, ngDevMode &&
+        "animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))");
+}
+function invalidDefinition() {
+    return new _RuntimeError(3007 /* RuntimeErrorCode.INVALID_DEFINITION */, ngDevMode && 'only state() and transition() definitions can sit inside of a trigger()');
+}
+function invalidState(metadataName, missingSubs) {
+    return new _RuntimeError(3008 /* RuntimeErrorCode.INVALID_STATE */, ngDevMode &&
+        `state("${metadataName}", ...) must define default values for all the following style substitutions: ${missingSubs.join(', ')}`);
+}
+function invalidStyleValue(value) {
+    return new _RuntimeError(3002 /* RuntimeErrorCode.INVALID_STYLE_VALUE */, ngDevMode && `The provided style string value ${value} is not allowed.`);
+}
+function invalidParallelAnimation(prop, firstStart, firstEnd, secondStart, secondEnd) {
+    return new _RuntimeError(3010 /* RuntimeErrorCode.INVALID_PARALLEL_ANIMATION */, ngDevMode &&
+        `The CSS property "${prop}" that exists between the times of "${firstStart}ms" and "${firstEnd}ms" is also being animated in a parallel animation between the times of "${secondStart}ms" and "${secondEnd}ms"`);
+}
+function invalidKeyframes() {
+    return new _RuntimeError(3011 /* RuntimeErrorCode.INVALID_KEYFRAMES */, ngDevMode && `keyframes() must be placed inside of a call to animate()`);
+}
+function invalidOffset() {
+    return new _RuntimeError(3012 /* RuntimeErrorCode.INVALID_OFFSET */, ngDevMode && `Please ensure that all keyframe offsets are between 0 and 1`);
+}
+function keyframeOffsetsOutOfOrder() {
+    return new _RuntimeError(3200 /* RuntimeErrorCode.KEYFRAME_OFFSETS_OUT_OF_ORDER */, ngDevMode && `Please ensure that all keyframe offsets are in order`);
+}
+function keyframesMissingOffsets() {
+    return new _RuntimeError(3202 /* RuntimeErrorCode.KEYFRAMES_MISSING_OFFSETS */, ngDevMode && `Not all style() steps within the declared keyframes() contain offsets`);
+}
+function invalidStagger() {
+    return new _RuntimeError(3013 /* RuntimeErrorCode.INVALID_STAGGER */, ngDevMode && `stagger() can only be used inside of query()`);
+}
+function invalidQuery(selector) {
+    return new _RuntimeError(3014 /* RuntimeErrorCode.INVALID_QUERY */, ngDevMode &&
+        `\`query("${selector}")\` returned zero elements. (Use \`query("${selector}", { optional: true })\` if you wish to allow this.)`);
+}
+function invalidExpression(expr) {
+    return new _RuntimeError(3015 /* RuntimeErrorCode.INVALID_EXPRESSION */, ngDevMode && `The provided transition expression "${expr}" is not supported`);
+}
+function invalidTransitionAlias(alias) {
+    return new _RuntimeError(3016 /* RuntimeErrorCode.INVALID_TRANSITION_ALIAS */, ngDevMode && `The transition alias value "${alias}" is not supported`);
+}
+function validationFailed(errors) {
+    return new _RuntimeError(3500 /* RuntimeErrorCode.VALIDATION_FAILED */, ngDevMode && `animation validation failed:\n${errors.map((err) => err.message).join('\n')}`);
+}
+function buildingFailed(errors) {
+    return new _RuntimeError(3501 /* RuntimeErrorCode.BUILDING_FAILED */, ngDevMode && `animation building failed:\n${errors.map((err) => err.message).join('\n')}`);
+}
+function triggerBuildFailed(name, errors) {
+    return new _RuntimeError(3404 /* RuntimeErrorCode.TRIGGER_BUILD_FAILED */, ngDevMode &&
+        `The animation trigger "${name}" has failed to build due to the following errors:\n - ${errors
+            .map((err) => err.message)
+            .join('\n - ')}`);
+}
+function animationFailed(errors) {
+    return new _RuntimeError(3502 /* RuntimeErrorCode.ANIMATION_FAILED */, ngDevMode &&
+        `Unable to animate due to the following errors:${LINE_START}${errors
+            .map((err) => err.message)
+            .join(LINE_START)}`);
+}
+function registerFailed(errors) {
+    return new _RuntimeError(3503 /* RuntimeErrorCode.REGISTRATION_FAILED */, ngDevMode &&
+        `Unable to build the animation due to the following errors: ${errors
+            .map((err) => err.message)
+            .join('\n')}`);
+}
+function missingOrDestroyedAnimation() {
+    return new _RuntimeError(3300 /* RuntimeErrorCode.MISSING_OR_DESTROYED_ANIMATION */, ngDevMode && "The requested animation doesn't exist or has already been destroyed");
+}
+function createAnimationFailed(errors) {
+    return new _RuntimeError(3504 /* RuntimeErrorCode.CREATE_ANIMATION_FAILED */, ngDevMode &&
+        `Unable to create the animation due to the following errors:${errors
+            .map((err) => err.message)
+            .join('\n')}`);
+}
+function missingPlayer(id) {
+    return new _RuntimeError(3301 /* RuntimeErrorCode.MISSING_PLAYER */, ngDevMode && `Unable to find the timeline player referenced by ${id}`);
+}
+function missingTrigger(phase, name) {
+    return new _RuntimeError(3302 /* RuntimeErrorCode.MISSING_TRIGGER */, ngDevMode &&
+        `Unable to listen on the animation trigger event "${phase}" because the animation trigger "${name}" doesn\'t exist!`);
+}
+function missingEvent(name) {
+    return new _RuntimeError(3303 /* RuntimeErrorCode.MISSING_EVENT */, ngDevMode &&
+        `Unable to listen on the animation trigger "${name}" because the provided event is undefined!`);
+}
+function unsupportedTriggerEvent(phase, name) {
+    return new _RuntimeError(3400 /* RuntimeErrorCode.UNSUPPORTED_TRIGGER_EVENT */, ngDevMode &&
+        `The provided animation trigger event "${phase}" for the animation trigger "${name}" is not supported!`);
+}
+function unregisteredTrigger(name) {
+    return new _RuntimeError(3401 /* RuntimeErrorCode.UNREGISTERED_TRIGGER */, ngDevMode && `The provided animation trigger "${name}" has not been registered!`);
+}
+function triggerTransitionsFailed(errors) {
+    return new _RuntimeError(3402 /* RuntimeErrorCode.TRIGGER_TRANSITIONS_FAILED */, ngDevMode &&
+        `Unable to process animations due to the following failed trigger transitions\n ${errors
+            .map((err) => err.message)
+            .join('\n')}`);
+}
+function transitionFailed(name, errors) {
+    return new _RuntimeError(3505 /* RuntimeErrorCode.TRANSITION_FAILED */, ngDevMode && `@${name} has failed due to:\n ${errors.map((err) => err.message).join('\n- ')}`);
+}
+
+/**
+ * Set of all animatable CSS properties
+ *
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animated_properties
+ */
+const ANIMATABLE_PROP_SET = new Set([
+    '-moz-outline-radius',
+    '-moz-outline-radius-bottomleft',
+    '-moz-outline-radius-bottomright',
+    '-moz-outline-radius-topleft',
+    '-moz-outline-radius-topright',
+    '-ms-grid-columns',
+    '-ms-grid-rows',
+    '-webkit-line-clamp',
+    '-webkit-text-fill-color',
+    '-webkit-text-stroke',
+    '-webkit-text-stroke-color',
+    'accent-color',
+    'all',
+    'backdrop-filter',
+    'background',
+    'background-color',
+    'background-position',
+    'background-size',
+    'block-size',
+    'border',
+    'border-block-end',
+    'border-block-end-color',
+    'border-block-end-width',
+    'border-block-start',
+    'border-block-start-color',
+    'border-block-start-width',
+    'border-bottom',
+    'border-bottom-color',
+    'border-bottom-left-radius',
+    'border-bottom-right-radius',
+    'border-bottom-width',
+    'border-color',
+    'border-end-end-radius',
+    'border-end-start-radius',
+    'border-image-outset',
+    'border-image-slice',
+    'border-image-width',
+    'border-inline-end',
+    'border-inline-end-color',
+    'border-inline-end-width',
+    'border-inline-start',
+    'border-inline-start-color',
+    'border-inline-start-width',
+    'border-left',
+    'border-left-color',
+    'border-left-width',
+    'border-radius',
+    'border-right',
+    'border-right-color',
+    'border-right-width',
+    'border-start-end-radius',
+    'border-start-start-radius',
+    'border-top',
+    'border-top-color',
+    'border-top-left-radius',
+    'border-top-right-radius',
+    'border-top-width',
+    'border-width',
+    'bottom',
+    'box-shadow',
+    'caret-color',
+    'clip',
+    'clip-path',
+    'color',
+    'column-count',
+    'column-gap',
+    'column-rule',
+    'column-rule-color',
+    'column-rule-width',
+    'column-width',
+    'columns',
+    'filter',
+    'flex',
+    'flex-basis',
+    'flex-grow',
+    'flex-shrink',
+    'font',
+    'font-size',
+    'font-size-adjust',
+    'font-stretch',
+    'font-variation-settings',
+    'font-weight',
+    'gap',
+    'grid-column-gap',
+    'grid-gap',
+    'grid-row-gap',
+    'grid-template-columns',
+    'grid-template-rows',
+    'height',
+    'inline-size',
+    'input-security',
+    'inset',
+    'inset-block',
+    'inset-block-end',
+    'inset-block-start',
+    'inset-inline',
+    'inset-inline-end',
+    'inset-inline-start',
+    'left',
+    'letter-spacing',
+    'line-clamp',
+    'line-height',
+    'margin',
+    'margin-block-end',
+    'margin-block-start',
+    'margin-bottom',
+    'margin-inline-end',
+    'margin-inline-start',
+    'margin-left',
+    'margin-right',
+    'margin-top',
+    'mask',
+    'mask-border',
+    'mask-position',
+    'mask-size',
+    'max-block-size',
+    'max-height',
+    'max-inline-size',
+    'max-lines',
+    'max-width',
+    'min-block-size',
+    'min-height',
+    'min-inline-size',
+    'min-width',
+    'object-position',
+    'offset',
+    'offset-anchor',
+    'offset-distance',
+    'offset-path',
+    'offset-position',
+    'offset-rotate',
+    'opacity',
+    'order',
+    'outline',
+    'outline-color',
+    'outline-offset',
+    'outline-width',
+    'padding',
+    'padding-block-end',
+    'padding-block-start',
+    'padding-bottom',
+    'padding-inline-end',
+    'padding-inline-start',
+    'padding-left',
+    'padding-right',
+    'padding-top',
+    'perspective',
+    'perspective-origin',
+    'right',
+    'rotate',
+    'row-gap',
+    'scale',
+    'scroll-margin',
+    'scroll-margin-block',
+    'scroll-margin-block-end',
+    'scroll-margin-block-start',
+    'scroll-margin-bottom',
+    'scroll-margin-inline',
+    'scroll-margin-inline-end',
+    'scroll-margin-inline-start',
+    'scroll-margin-left',
+    'scroll-margin-right',
+    'scroll-margin-top',
+    'scroll-padding',
+    'scroll-padding-block',
+    'scroll-padding-block-end',
+    'scroll-padding-block-start',
+    'scroll-padding-bottom',
+    'scroll-padding-inline',
+    'scroll-padding-inline-end',
+    'scroll-padding-inline-start',
+    'scroll-padding-left',
+    'scroll-padding-right',
+    'scroll-padding-top',
+    'scroll-snap-coordinate',
+    'scroll-snap-destination',
+    'scrollbar-color',
+    'shape-image-threshold',
+    'shape-margin',
+    'shape-outside',
+    'tab-size',
+    'text-decoration',
+    'text-decoration-color',
+    'text-decoration-thickness',
+    'text-emphasis',
+    'text-emphasis-color',
+    'text-indent',
+    'text-shadow',
+    'text-underline-offset',
+    'top',
+    'transform',
+    'transform-origin',
+    'translate',
+    'vertical-align',
+    'visibility',
+    'width',
+    'word-spacing',
+    'z-index',
+    'zoom',
+]);
+
+function optimizeGroupPlayer(players) {
+    switch (players.length) {
+        case 0:
+            return new NoopAnimationPlayer();
+        case 1:
+            return players[0];
+        default:
+            return new AnimationGroupPlayer(players);
+    }
+}
+function normalizeKeyframes$1(normalizer, keyframes, preStyles = new Map(), postStyles = new Map()) {
+    const errors = [];
+    const normalizedKeyframes = [];
+    let previousOffset = -1;
+    let previousKeyframe = null;
+    keyframes.forEach((kf) => {
+        const offset = kf.get('offset');
+        const isSameOffset = offset == previousOffset;
+        const normalizedKeyframe = (isSameOffset && previousKeyframe) || new Map();
+        kf.forEach((val, prop) => {
+            let normalizedProp = prop;
+            let normalizedValue = val;
+            if (prop !== 'offset') {
+                normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);
+                switch (normalizedValue) {
+                    case _PRE_STYLE:
+                        normalizedValue = preStyles.get(prop);
+                        break;
+                    case AUTO_STYLE:
+                        normalizedValue = postStyles.get(prop);
+                        break;
+                    default:
+                        normalizedValue = normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);
+                        break;
+                }
+            }
+            normalizedKeyframe.set(normalizedProp, normalizedValue);
+        });
+        if (!isSameOffset) {
+            normalizedKeyframes.push(normalizedKeyframe);
+        }
+        previousKeyframe = normalizedKeyframe;
+        previousOffset = offset;
+    });
+    if (errors.length) {
+        throw animationFailed(errors);
+    }
+    return normalizedKeyframes;
+}
+function listenOnPlayer(player, eventName, event, callback) {
+    switch (eventName) {
+        case 'start':
+            player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));
+            break;
+        case 'done':
+            player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));
+            break;
+        case 'destroy':
+            player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));
+            break;
+    }
+}
+function copyAnimationEvent(e, phaseName, player) {
+    const totalTime = player.totalTime;
+    const disabled = player.disabled ? true : false;
+    const event = makeAnimationEvent(e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName, totalTime == undefined ? e.totalTime : totalTime, disabled);
+    const data = e['_data'];
+    if (data != null) {
+        event['_data'] = data;
+    }
+    return event;
+}
+function makeAnimationEvent(element, triggerName, fromState, toState, phaseName = '', totalTime = 0, disabled) {
+    return { element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled };
+}
+function getOrSetDefaultValue(map, key, defaultValue) {
+    let value = map.get(key);
+    if (!value) {
+        map.set(key, (value = defaultValue));
+    }
+    return value;
+}
+function parseTimelineCommand(command) {
+    const separatorPos = command.indexOf(':');
+    const id = command.substring(1, separatorPos);
+    const action = command.slice(separatorPos + 1);
+    return [id, action];
+}
+const documentElement = /* @__PURE__ */ (() => typeof document === 'undefined' ? null : document.documentElement)();
+function getParentElement(element) {
+    const parent = element.parentNode || element.host || null; // consider host to support shadow DOM
+    if (parent === documentElement) {
+        return null;
+    }
+    return parent;
+}
+function containsVendorPrefix(prop) {
+    // Webkit is the only real popular vendor prefix nowadays
+    // cc: http://shouldiprefix.com/
+    return prop.substring(1, 6) == 'ebkit'; // webkit or Webkit
+}
+let _CACHED_BODY = null;
+let _IS_WEBKIT = false;
+function validateStyleProperty(prop) {
+    if (!_CACHED_BODY) {
+        _CACHED_BODY = getBodyNode() || {};
+        _IS_WEBKIT = _CACHED_BODY.style ? 'WebkitAppearance' in _CACHED_BODY.style : false;
+    }
+    let result = true;
+    if (_CACHED_BODY.style && !containsVendorPrefix(prop)) {
+        result = prop in _CACHED_BODY.style;
+        if (!result && _IS_WEBKIT) {
+            const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.slice(1);
+            result = camelProp in _CACHED_BODY.style;
+        }
+    }
+    return result;
+}
+function validateWebAnimatableStyleProperty(prop) {
+    return ANIMATABLE_PROP_SET.has(prop);
+}
+function getBodyNode() {
+    if (typeof document != 'undefined') {
+        return document.body;
+    }
+    return null;
+}
+function containsElement(elm1, elm2) {
+    while (elm2) {
+        if (elm2 === elm1) {
+            return true;
+        }
+        elm2 = getParentElement(elm2);
+    }
+    return false;
+}
+function invokeQuery(element, selector, multi) {
+    if (multi) {
+        return Array.from(element.querySelectorAll(selector));
+    }
+    const elem = element.querySelector(selector);
+    return elem ? [elem] : [];
+}
+
+const ONE_SECOND = 1000;
+const SUBSTITUTION_EXPR_START = '{{';
+const SUBSTITUTION_EXPR_END = '}}';
+const ENTER_CLASSNAME = 'ng-enter';
+const LEAVE_CLASSNAME = 'ng-leave';
+const NG_TRIGGER_CLASSNAME = 'ng-trigger';
+const NG_TRIGGER_SELECTOR = '.ng-trigger';
+const NG_ANIMATING_CLASSNAME = 'ng-animating';
+const NG_ANIMATING_SELECTOR = '.ng-animating';
+function resolveTimingValue(value) {
+    if (typeof value == 'number')
+        return value;
+    const matches = value.match(/^(-?[\.\d]+)(m?s)/);
+    if (!matches || matches.length < 2)
+        return 0;
+    return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);
+}
+function _convertTimeValueToMS(value, unit) {
+    switch (unit) {
+        case 's':
+            return value * ONE_SECOND;
+        default: // ms or something else
+            return value;
+    }
+}
+function resolveTiming(timings, errors, allowNegativeValues) {
+    return timings.hasOwnProperty('duration')
+        ? timings
+        : parseTimeExpression(timings, errors, allowNegativeValues);
+}
+function parseTimeExpression(exp, errors, allowNegativeValues) {
+    const regex = /^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;
+    let duration;
+    let delay = 0;
+    let easing = '';
+    if (typeof exp === 'string') {
+        const matches = exp.match(regex);
+        if (matches === null) {
+            errors.push(invalidTimingValue(exp));
+            return { duration: 0, delay: 0, easing: '' };
+        }
+        duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);
+        const delayMatch = matches[3];
+        if (delayMatch != null) {
+            delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);
+        }
+        const easingVal = matches[5];
+        if (easingVal) {
+            easing = easingVal;
+        }
+    }
+    else {
+        duration = exp;
+    }
+    if (!allowNegativeValues) {
+        let containsErrors = false;
+        let startIndex = errors.length;
+        if (duration < 0) {
+            errors.push(negativeStepValue());
+            containsErrors = true;
+        }
+        if (delay < 0) {
+            errors.push(negativeDelayValue());
+            containsErrors = true;
+        }
+        if (containsErrors) {
+            errors.splice(startIndex, 0, invalidTimingValue(exp));
+        }
+    }
+    return { duration, delay, easing };
+}
+function normalizeKeyframes(keyframes) {
+    if (!keyframes.length) {
+        return [];
+    }
+    if (keyframes[0] instanceof Map) {
+        return keyframes;
+    }
+    return keyframes.map((kf) => new Map(Object.entries(kf)));
+}
+function normalizeStyles(styles) {
+    return Array.isArray(styles) ? new Map(...styles) : new Map(styles);
+}
+function setStyles(element, styles, formerStyles) {
+    styles.forEach((val, prop) => {
+        const camelProp = dashCaseToCamelCase(prop);
+        if (formerStyles && !formerStyles.has(prop)) {
+            formerStyles.set(prop, element.style[camelProp]);
+        }
+        element.style[camelProp] = val;
+    });
+}
+function eraseStyles(element, styles) {
+    styles.forEach((_, prop) => {
+        const camelProp = dashCaseToCamelCase(prop);
+        element.style[camelProp] = '';
+    });
+}
+function normalizeAnimationEntry(steps) {
+    if (Array.isArray(steps)) {
+        if (steps.length == 1)
+            return steps[0];
+        return sequence(steps);
+    }
+    return steps;
+}
+function validateStyleParams(value, options, errors) {
+    const params = options.params || {};
+    const matches = extractStyleParams(value);
+    if (matches.length) {
+        matches.forEach((varName) => {
+            if (!params.hasOwnProperty(varName)) {
+                errors.push(invalidStyleParams(varName));
+            }
+        });
+    }
+}
+const PARAM_REGEX = /* @__PURE__ */ new RegExp(`${SUBSTITUTION_EXPR_START}\\s*(.+?)\\s*${SUBSTITUTION_EXPR_END}`, 'g');
+function extractStyleParams(value) {
+    let params = [];
+    if (typeof value === 'string') {
+        let match;
+        while ((match = PARAM_REGEX.exec(value))) {
+            params.push(match[1]);
+        }
+        PARAM_REGEX.lastIndex = 0;
+    }
+    return params;
+}
+function interpolateParams(value, params, errors) {
+    const original = `${value}`;
+    const str = original.replace(PARAM_REGEX, (_, varName) => {
+        let localVal = params[varName];
+        // this means that the value was never overridden by the data passed in by the user
+        if (localVal == null) {
+            errors.push(invalidParamValue(varName));
+            localVal = '';
+        }
+        return localVal.toString();
+    });
+    // we do this to assert that numeric values stay as they are
+    return str == original ? value : str;
+}
+const DASH_CASE_REGEXP = /-+([a-z0-9])/g;
+function dashCaseToCamelCase(input) {
+    return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
+}
+function camelCaseToDashCase(input) {
+    return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
+}
+function allowPreviousPlayerStylesMerge(duration, delay) {
+    return duration === 0 || delay === 0;
+}
+function balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles) {
+    if (previousStyles.size && keyframes.length) {
+        let startingKeyframe = keyframes[0];
+        let missingStyleProps = [];
+        previousStyles.forEach((val, prop) => {
+            if (!startingKeyframe.has(prop)) {
+                missingStyleProps.push(prop);
+            }
+            startingKeyframe.set(prop, val);
+        });
+        if (missingStyleProps.length) {
+            for (let i = 1; i < keyframes.length; i++) {
+                let kf = keyframes[i];
+                missingStyleProps.forEach((prop) => kf.set(prop, computeStyle(element, prop)));
+            }
+        }
+    }
+    return keyframes;
+}
+function visitDslNode(visitor, node, context) {
+    switch (node.type) {
+        case AnimationMetadataType.Trigger:
+            return visitor.visitTrigger(node, context);
+        case AnimationMetadataType.State:
+            return visitor.visitState(node, context);
+        case AnimationMetadataType.Transition:
+            return visitor.visitTransition(node, context);
+        case AnimationMetadataType.Sequence:
+            return visitor.visitSequence(node, context);
+        case AnimationMetadataType.Group:
+            return visitor.visitGroup(node, context);
+        case AnimationMetadataType.Animate:
+            return visitor.visitAnimate(node, context);
+        case AnimationMetadataType.Keyframes:
+            return visitor.visitKeyframes(node, context);
+        case AnimationMetadataType.Style:
+            return visitor.visitStyle(node, context);
+        case AnimationMetadataType.Reference:
+            return visitor.visitReference(node, context);
+        case AnimationMetadataType.AnimateChild:
+            return visitor.visitAnimateChild(node, context);
+        case AnimationMetadataType.AnimateRef:
+            return visitor.visitAnimateRef(node, context);
+        case AnimationMetadataType.Query:
+            return visitor.visitQuery(node, context);
+        case AnimationMetadataType.Stagger:
+            return visitor.visitStagger(node, context);
+        default:
+            throw invalidNodeType(node.type);
+    }
+}
+function computeStyle(element, prop) {
+    return window.getComputedStyle(element)[prop];
+}
+
+export { ENTER_CLASSNAME, LEAVE_CLASSNAME, NG_ANIMATING_CLASSNAME, NG_ANIMATING_SELECTOR, NG_TRIGGER_CLASSNAME, NG_TRIGGER_SELECTOR, SUBSTITUTION_EXPR_START, allowPreviousPlayerStylesMerge, balancePreviousStylesIntoKeyframes, buildingFailed, camelCaseToDashCase, computeStyle, containsElement, createAnimationFailed, dashCaseToCamelCase, eraseStyles, extractStyleParams, getOrSetDefaultValue, getParentElement, interpolateParams, invalidCssUnitValue, invalidDefinition, invalidExpression, invalidKeyframes, invalidOffset, invalidParallelAnimation, invalidQuery, invalidStagger, invalidState, invalidStyleValue, invalidTransitionAlias, invalidTrigger, invokeQuery, keyframeOffsetsOutOfOrder, keyframesMissingOffsets, listenOnPlayer, makeAnimationEvent, missingEvent, missingOrDestroyedAnimation, missingPlayer, missingTrigger, normalizeAnimationEntry, normalizeKeyframes$1 as normalizeKeyframes, normalizeKeyframes as normalizeKeyframes$1, normalizeStyles, optimizeGroupPlayer, parseTimelineCommand, registerFailed, resolveTiming, resolveTimingValue, setStyles, transitionFailed, triggerBuildFailed, triggerTransitionsFailed, unregisteredTrigger, unsupportedTriggerEvent, validateStyleParams, validateStyleProperty, validateWebAnimatableStyleProperty, validationFailed, visitDslNode };
+//# sourceMappingURL=util.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/animations/fesm2022/util.mjs.map


+ 246 - 0
node_modules/@angular/animations/index.d.ts

@@ -0,0 +1,246 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { RendererFactory2 } from '@angular/core';
+import { AnimationMetadata, AnimationOptions, AnimationPlayer } from './animation_player.d.js';
+export { AUTO_STYLE, AnimateChildOptions, AnimateTimings, AnimationAnimateChildMetadata, AnimationAnimateMetadata, AnimationAnimateRefMetadata, AnimationGroupMetadata, AnimationKeyframesSequenceMetadata, AnimationMetadataType, AnimationQueryMetadata, AnimationQueryOptions, AnimationReferenceMetadata, AnimationSequenceMetadata, AnimationStaggerMetadata, AnimationStateMetadata, AnimationStyleMetadata, AnimationTransitionMetadata, AnimationTriggerMetadata, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, ɵStyleData, ɵStyleDataMap } from './animation_player.d.js';
+
+/**
+ * An injectable service that produces an animation sequence programmatically within an
+ * Angular component or directive.
+ * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.
+ *
+ * @usageNotes
+ *
+ * To use this service, add it to your component or directive as a dependency.
+ * The service is instantiated along with your component.
+ *
+ * Apps do not typically need to create their own animation players, but if you
+ * do need to, follow these steps:
+ *
+ * 1. Use the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code> method
+ * to create a programmatic animation. The method returns an `AnimationFactory` instance.
+ *
+ * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.
+ *
+ * 3. Use the player object to control the animation programmatically.
+ *
+ * For example:
+ *
+ * ```ts
+ * // import the service from BrowserAnimationsModule
+ * import {AnimationBuilder} from '@angular/animations';
+ * // require the service as a dependency
+ * class MyCmp {
+ *   constructor(private _builder: AnimationBuilder) {}
+ *
+ *   makeAnimation(element: any) {
+ *     // first define a reusable animation
+ *     const myAnimation = this._builder.build([
+ *       style({ width: 0 }),
+ *       animate(1000, style({ width: '100px' }))
+ *     ]);
+ *
+ *     // use the returned factory object to create a player
+ *     const player = myAnimation.create(element);
+ *
+ *     player.play();
+ *   }
+ * }
+ * ```
+ *
+ * @publicApi
+ */
+declare abstract class AnimationBuilder {
+    /**
+     * Builds a factory for producing a defined animation.
+     * @param animation A reusable animation definition.
+     * @returns A factory object that can create a player for the defined animation.
+     * @see {@link animate}
+     */
+    abstract build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;
+    static ɵfac: i0.ɵɵFactoryDeclaration<AnimationBuilder, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<AnimationBuilder>;
+}
+/**
+ * A factory object returned from the
+ * <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>
+ * method.
+ *
+ * @publicApi
+ */
+declare abstract class AnimationFactory {
+    /**
+     * Creates an `AnimationPlayer` instance for the reusable animation defined by
+     * the <code>[AnimationBuilder.build](api/animations/AnimationBuilder#build)()</code>
+     * method that created this factory and attaches the new player a DOM element.
+     *
+     * @param element The DOM element to which to attach the player.
+     * @param options A set of options that can include a time delay and
+     * additional developer-defined parameters.
+     */
+    abstract create(element: any, options?: AnimationOptions): AnimationPlayer;
+}
+declare class BrowserAnimationBuilder extends AnimationBuilder {
+    private animationModuleType;
+    private _nextAnimationId;
+    private _renderer;
+    constructor(rootRenderer: RendererFactory2, doc: Document);
+    build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;
+    static ɵfac: i0.ɵɵFactoryDeclaration<BrowserAnimationBuilder, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<BrowserAnimationBuilder>;
+}
+
+/**
+ * An instance of this class is returned as an event parameter when an animation
+ * callback is captured for an animation either during the start or done phase.
+ *
+ * ```ts
+ * @Component({
+ *   host: {
+ *     '[@myAnimationTrigger]': 'someExpression',
+ *     '(@myAnimationTrigger.start)': 'captureStartEvent($event)',
+ *     '(@myAnimationTrigger.done)': 'captureDoneEvent($event)',
+ *   },
+ *   animations: [
+ *     trigger("myAnimationTrigger", [
+ *        // ...
+ *     ])
+ *   ]
+ * })
+ * class MyComponent {
+ *   someExpression: any = false;
+ *   captureStartEvent(event: AnimationEvent) {
+ *     // the toState, fromState and totalTime data is accessible from the event variable
+ *   }
+ *
+ *   captureDoneEvent(event: AnimationEvent) {
+ *     // the toState, fromState and totalTime data is accessible from the event variable
+ *   }
+ * }
+ * ```
+ *
+ * @publicApi
+ */
+interface AnimationEvent {
+    /**
+     * The name of the state from which the animation is triggered.
+     */
+    fromState: string;
+    /**
+     * The name of the state in which the animation completes.
+     */
+    toState: string;
+    /**
+     * The time it takes the animation to complete, in milliseconds.
+     */
+    totalTime: number;
+    /**
+     * The animation phase in which the callback was invoked, one of
+     * "start" or "done".
+     */
+    phaseName: string;
+    /**
+     * The element to which the animation is attached.
+     */
+    element: any;
+    /**
+     * Internal.
+     */
+    triggerName: string;
+    /**
+     * Internal.
+     */
+    disabled: boolean;
+}
+
+/**
+ * The list of error codes used in runtime code of the `animations` package.
+ * Reserved error code range: 3000-3999.
+ */
+declare const enum RuntimeErrorCode {
+    INVALID_TIMING_VALUE = 3000,
+    INVALID_STYLE_PARAMS = 3001,
+    INVALID_STYLE_VALUE = 3002,
+    INVALID_PARAM_VALUE = 3003,
+    INVALID_NODE_TYPE = 3004,
+    INVALID_CSS_UNIT_VALUE = 3005,
+    INVALID_TRIGGER = 3006,
+    INVALID_DEFINITION = 3007,
+    INVALID_STATE = 3008,
+    INVALID_PROPERTY = 3009,
+    INVALID_PARALLEL_ANIMATION = 3010,
+    INVALID_KEYFRAMES = 3011,
+    INVALID_OFFSET = 3012,
+    INVALID_STAGGER = 3013,
+    INVALID_QUERY = 3014,
+    INVALID_EXPRESSION = 3015,
+    INVALID_TRANSITION_ALIAS = 3016,
+    NEGATIVE_STEP_VALUE = 3100,
+    NEGATIVE_DELAY_VALUE = 3101,
+    KEYFRAME_OFFSETS_OUT_OF_ORDER = 3200,
+    KEYFRAMES_MISSING_OFFSETS = 3202,
+    MISSING_OR_DESTROYED_ANIMATION = 3300,
+    MISSING_PLAYER = 3301,
+    MISSING_TRIGGER = 3302,
+    MISSING_EVENT = 3303,
+    UNSUPPORTED_TRIGGER_EVENT = 3400,
+    UNREGISTERED_TRIGGER = 3401,
+    TRIGGER_TRANSITIONS_FAILED = 3402,
+    TRIGGER_PARSING_FAILED = 3403,
+    TRIGGER_BUILD_FAILED = 3404,
+    VALIDATION_FAILED = 3500,
+    BUILDING_FAILED = 3501,
+    ANIMATION_FAILED = 3502,
+    REGISTRATION_FAILED = 3503,
+    CREATE_ANIMATION_FAILED = 3504,
+    TRANSITION_FAILED = 3505,
+    BROWSER_ANIMATION_BUILDER_INJECTED_WITHOUT_ANIMATIONS = 3600
+}
+
+/**
+ * A programmatic controller for a group of reusable animations.
+ * Used internally to control animations.
+ *
+ * @see {@link AnimationPlayer}
+ * @see {@link animations/group group}
+ *
+ */
+declare class AnimationGroupPlayer implements AnimationPlayer {
+    private _onDoneFns;
+    private _onStartFns;
+    private _finished;
+    private _started;
+    private _destroyed;
+    private _onDestroyFns;
+    parentPlayer: AnimationPlayer | null;
+    totalTime: number;
+    readonly players: AnimationPlayer[];
+    constructor(_players: AnimationPlayer[]);
+    private _onFinish;
+    init(): void;
+    onStart(fn: () => void): void;
+    private _onStart;
+    onDone(fn: () => void): void;
+    onDestroy(fn: () => void): void;
+    hasStarted(): boolean;
+    play(): void;
+    pause(): void;
+    restart(): void;
+    finish(): void;
+    destroy(): void;
+    private _onDestroy;
+    reset(): void;
+    setPosition(p: number): void;
+    getPosition(): number;
+    beforeDestroy(): void;
+}
+
+declare const ɵPRE_STYLE = "!";
+
+export { AnimationBuilder, AnimationFactory, AnimationMetadata, AnimationOptions, AnimationPlayer, AnimationGroupPlayer as ɵAnimationGroupPlayer, BrowserAnimationBuilder as ɵBrowserAnimationBuilder, ɵPRE_STYLE, RuntimeErrorCode as ɵRuntimeErrorCode };
+export type { AnimationEvent };

+ 63 - 0
node_modules/@angular/animations/package.json

@@ -0,0 +1,63 @@
+{
+  "name": "@angular/animations",
+  "version": "20.1.0",
+  "description": "Angular - animations integration with web-animations",
+  "author": "angular",
+  "license": "MIT",
+  "engines": {
+    "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
+  },
+  "dependencies": {
+    "tslib": "^2.3.0"
+  },
+  "peerDependencies": {
+    "@angular/core": "20.1.0",
+    "@angular/common": "20.1.0"
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/angular/angular.git",
+    "directory": "packages/animations"
+  },
+  "ng-update": {
+    "packageGroup": [
+      "@angular/core",
+      "@angular/bazel",
+      "@angular/common",
+      "@angular/compiler",
+      "@angular/compiler-cli",
+      "@angular/animations",
+      "@angular/elements",
+      "@angular/platform-browser",
+      "@angular/platform-browser-dynamic",
+      "@angular/forms",
+      "@angular/platform-server",
+      "@angular/upgrade",
+      "@angular/router",
+      "@angular/language-service",
+      "@angular/localize",
+      "@angular/service-worker"
+    ]
+  },
+  "sideEffects": false,
+  "module": "./fesm2022/animations.mjs",
+  "typings": "./index.d.ts",
+  "type": "module",
+  "exports": {
+    "./package.json": {
+      "default": "./package.json"
+    },
+    ".": {
+      "types": "./index.d.ts",
+      "default": "./fesm2022/animations.mjs"
+    },
+    "./browser": {
+      "types": "./browser/index.d.ts",
+      "default": "./fesm2022/browser.mjs"
+    },
+    "./browser/testing": {
+      "types": "./browser/testing/index.d.ts",
+      "default": "./fesm2022/browser/testing.mjs"
+    }
+  }
+}

+ 21 - 0
node_modules/@angular/common/LICENSE

@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.

+ 8 - 0
node_modules/@angular/common/README.md

@@ -0,0 +1,8 @@
+Angular
+=======
+
+The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
+
+Usage information and reference details can be found in [Angular documentation](https://angular.dev/overview).
+
+License: MIT

+ 1968 - 0
node_modules/@angular/common/common_module.d.d.ts

@@ -0,0 +1,1968 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { InjectionToken, OnDestroy, DoCheck, ElementRef, Renderer2, OnChanges, Type, Injector, EnvironmentInjector, NgModuleFactory, ViewContainerRef, SimpleChanges, NgIterable, TrackByFunction, TemplateRef, IterableDiffers, KeyValueDiffers, PipeTransform, ChangeDetectorRef } from '@angular/core';
+import { SubscriptionLike, Observable, Subscribable } from 'rxjs';
+import { LocationChangeListener, PlatformLocation } from './platform_location.d.js';
+
+/**
+ * Enables the `Location` service to read route state from the browser's URL.
+ * Angular provides two strategies:
+ * `HashLocationStrategy` and `PathLocationStrategy`.
+ *
+ * Applications should use the `Router` or `Location` services to
+ * interact with application route state.
+ *
+ * For instance, `HashLocationStrategy` produces URLs like
+ * <code class="no-auto-link">http://example.com/#/foo</code>,
+ * and `PathLocationStrategy` produces
+ * <code class="no-auto-link">http://example.com/foo</code> as an equivalent URL.
+ *
+ * See these two classes for more.
+ *
+ * @publicApi
+ */
+declare abstract class LocationStrategy {
+    abstract path(includeHash?: boolean): string;
+    abstract prepareExternalUrl(internal: string): string;
+    abstract getState(): unknown;
+    abstract pushState(state: any, title: string, url: string, queryParams: string): void;
+    abstract replaceState(state: any, title: string, url: string, queryParams: string): void;
+    abstract forward(): void;
+    abstract back(): void;
+    historyGo?(relativePosition: number): void;
+    abstract onPopState(fn: LocationChangeListener): void;
+    abstract getBaseHref(): string;
+    static ɵfac: i0.ɵɵFactoryDeclaration<LocationStrategy, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<LocationStrategy>;
+}
+/**
+ * A predefined DI token for the base href
+ * to be used with the `PathLocationStrategy`.
+ * The base href is the URL prefix that should be preserved when generating
+ * and recognizing URLs.
+ *
+ * @usageNotes
+ *
+ * The following example shows how to use this token to configure the root app injector
+ * with a base href value, so that the DI framework can supply the dependency anywhere in the app.
+ *
+ * ```ts
+ * import {NgModule} from '@angular/core';
+ * import {APP_BASE_HREF} from '@angular/common';
+ *
+ * @NgModule({
+ *   providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]
+ * })
+ * class AppModule {}
+ * ```
+ *
+ * @publicApi
+ */
+declare const APP_BASE_HREF: InjectionToken<string>;
+/**
+ * @description
+ * A {@link LocationStrategy} used to configure the {@link Location} service to
+ * represent its state in the
+ * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the
+ * browser's URL.
+ *
+ * If you're using `PathLocationStrategy`, you may provide a {@link APP_BASE_HREF}
+ * or add a `<base href>` element to the document to override the default.
+ *
+ * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call
+ * `location.go('/foo')`, the browser's URL will become
+ * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,
+ * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.
+ *
+ * Similarly, if you add `<base href='/my/app/'/>` to the document and call
+ * `location.go('/foo')`, the browser's URL will become
+ * `example.com/my/app/foo`.
+ *
+ * Note that when using `PathLocationStrategy`, neither the query nor
+ * the fragment in the `<base href>` will be preserved, as outlined
+ * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).
+ *
+ * @usageNotes
+ *
+ * ### Example
+ *
+ * {@example common/location/ts/path_location_component.ts region='LocationComponent'}
+ *
+ * @publicApi
+ */
+declare class PathLocationStrategy extends LocationStrategy implements OnDestroy {
+    private _platformLocation;
+    private _baseHref;
+    private _removeListenerFns;
+    constructor(_platformLocation: PlatformLocation, href?: string);
+    /** @docs-private */
+    ngOnDestroy(): void;
+    onPopState(fn: LocationChangeListener): void;
+    getBaseHref(): string;
+    prepareExternalUrl(internal: string): string;
+    path(includeHash?: boolean): string;
+    pushState(state: any, title: string, url: string, queryParams: string): void;
+    replaceState(state: any, title: string, url: string, queryParams: string): void;
+    forward(): void;
+    back(): void;
+    getState(): unknown;
+    historyGo(relativePosition?: number): void;
+    static ɵfac: i0.ɵɵFactoryDeclaration<PathLocationStrategy, [null, { optional: true; }]>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<PathLocationStrategy>;
+}
+
+/** @publicApi */
+interface PopStateEvent {
+    pop?: boolean;
+    state?: any;
+    type?: string;
+    url?: string;
+}
+/**
+ * @description
+ *
+ * A service that applications can use to interact with a browser's URL.
+ *
+ * Depending on the `LocationStrategy` used, `Location` persists
+ * to the URL's path or the URL's hash segment.
+ *
+ * @usageNotes
+ *
+ * It's better to use the `Router.navigate()` service to trigger route changes. Use
+ * `Location` only if you need to interact with or create normalized URLs outside of
+ * routing.
+ *
+ * `Location` is responsible for normalizing the URL against the application's base href.
+ * A normalized URL is absolute from the URL host, includes the application's base href, and has no
+ * trailing slash:
+ * - `/my/app/user/123` is normalized
+ * - `my/app/user/123` **is not** normalized
+ * - `/my/app/user/123/` **is not** normalized
+ *
+ * ### Example
+ *
+ * {@example common/location/ts/path_location_component.ts region='LocationComponent'}
+ *
+ * @publicApi
+ */
+declare class Location implements OnDestroy {
+    constructor(locationStrategy: LocationStrategy);
+    /** @docs-private */
+    ngOnDestroy(): void;
+    /**
+     * Normalizes the URL path for this location.
+     *
+     * @param includeHash True to include an anchor fragment in the path.
+     *
+     * @returns The normalized URL path.
+     */
+    path(includeHash?: boolean): string;
+    /**
+     * Reports the current state of the location history.
+     * @returns The current value of the `history.state` object.
+     */
+    getState(): unknown;
+    /**
+     * Normalizes the given path and compares to the current normalized path.
+     *
+     * @param path The given URL path.
+     * @param query Query parameters.
+     *
+     * @returns True if the given URL path is equal to the current normalized path, false
+     * otherwise.
+     */
+    isCurrentPathEqualTo(path: string, query?: string): boolean;
+    /**
+     * Normalizes a URL path by stripping any trailing slashes.
+     *
+     * @param url String representing a URL.
+     *
+     * @returns The normalized URL string.
+     */
+    normalize(url: string): string;
+    /**
+     * Normalizes an external URL path.
+     * If the given URL doesn't begin with a leading slash (`'/'`), adds one
+     * before normalizing. Adds a hash if `HashLocationStrategy` is
+     * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.
+     *
+     * @param url String representing a URL.
+     *
+     * @returns  A normalized platform-specific URL.
+     */
+    prepareExternalUrl(url: string): string;
+    /**
+     * Changes the browser's URL to a normalized version of a given URL, and pushes a
+     * new item onto the platform's history.
+     *
+     * @param path  URL path to normalize.
+     * @param query Query parameters.
+     * @param state Location history state.
+     *
+     */
+    go(path: string, query?: string, state?: any): void;
+    /**
+     * Changes the browser's URL to a normalized version of the given URL, and replaces
+     * the top item on the platform's history stack.
+     *
+     * @param path  URL path to normalize.
+     * @param query Query parameters.
+     * @param state Location history state.
+     */
+    replaceState(path: string, query?: string, state?: any): void;
+    /**
+     * Navigates forward in the platform's history.
+     */
+    forward(): void;
+    /**
+     * Navigates back in the platform's history.
+     */
+    back(): void;
+    /**
+     * Navigate to a specific page from session history, identified by its relative position to the
+     * current page.
+     *
+     * @param relativePosition  Position of the target page in the history relative to the current
+     *     page.
+     * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)`
+     * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go
+     * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs
+     * when `relativePosition` equals 0.
+     * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history
+     */
+    historyGo(relativePosition?: number): void;
+    /**
+     * Registers a URL change listener. Use to catch updates performed by the Angular
+     * framework that are not detectible through "popstate" or "hashchange" events.
+     *
+     * @param fn The change handler function, which take a URL and a location history state.
+     * @returns A function that, when executed, unregisters a URL change listener.
+     */
+    onUrlChange(fn: (url: string, state: unknown) => void): VoidFunction;
+    /**
+     * Subscribes to the platform's `popState` events.
+     *
+     * Note: `Location.go()` does not trigger the `popState` event in the browser. Use
+     * `Location.onUrlChange()` to subscribe to URL changes instead.
+     *
+     * @param value Event that is triggered when the state history changes.
+     * @param exception The exception to throw.
+     *
+     * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate)
+     *
+     * @returns Subscribed events.
+     */
+    subscribe(onNext: (value: PopStateEvent) => void, onThrow?: ((exception: any) => void) | null, onReturn?: (() => void) | null): SubscriptionLike;
+    /**
+     * Normalizes URL parameters by prepending with `?` if needed.
+     *
+     * @param  params String of URL parameters.
+     *
+     * @returns The normalized URL parameters string.
+     */
+    static normalizeQueryParams: (params: string) => string;
+    /**
+     * Joins two parts of a URL with a slash if needed.
+     *
+     * @param start  URL string
+     * @param end    URL string
+     *
+     *
+     * @returns The joined URL string.
+     */
+    static joinWithSlash: (start: string, end: string) => string;
+    /**
+     * Removes a trailing slash from a URL string if needed.
+     * Looks for the first occurrence of either `#`, `?`, or the end of the
+     * line as `/` characters and removes the trailing slash if one exists.
+     *
+     * @param url URL string.
+     *
+     * @returns The URL string, modified if needed.
+     */
+    static stripTrailingSlash: (url: string) => string;
+    static ɵfac: i0.ɵɵFactoryDeclaration<Location, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<Location>;
+}
+
+/**
+ * @publicApi
+ */
+declare abstract class NgLocalization {
+    abstract getPluralCategory(value: any, locale?: string): string;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgLocalization, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<NgLocalization>;
+}
+/**
+ * Returns the plural case based on the locale
+ *
+ * @publicApi
+ */
+declare class NgLocaleLocalization extends NgLocalization {
+    protected locale: string;
+    constructor(locale: string);
+    getPluralCategory(value: any, locale?: string): string;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgLocaleLocalization, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<NgLocaleLocalization>;
+}
+
+/**
+ * @ngModule CommonModule
+ *
+ * @usageNotes
+ * ```html
+ * <some-element [ngClass]="stringExp|arrayExp|objExp|Set">...</some-element>
+ *
+ * <some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
+ * ```
+ *
+ * For more simple use cases you can use the [class bindings](/guide/templates/binding#css-class-and-style-property-bindings) directly.
+ * It doesn't require importing a directive.
+ *
+ * ```html
+ * <some-element [class]="'first second'">...</some-element>
+ *
+ * <some-element [class.expanded]="isExpanded">...</some-element>
+ *
+ * <some-element [class]="['first', 'second']">...</some-element>
+ *
+ * <some-element [class]="{'first': true, 'second': true, 'third': false}">...</some-element>
+ * ```
+ * @description
+ *
+ * Adds and removes CSS classes on an HTML element.
+ *
+ * The CSS classes are updated as follows, depending on the type of the expression evaluation:
+ * - `string` - the CSS classes listed in the string (space delimited) are added,
+ * - `Array` - the CSS classes declared as Array elements are added,
+ * - `Object` - keys are CSS classes that get added when the expression given in the value
+ *              evaluates to a truthy value, otherwise they are removed.
+ *
+ *
+ * @see [Class bindings](/guide/templates/binding#css-class-and-style-property-bindings)
+ *
+ * @publicApi
+ */
+declare class NgClass implements DoCheck {
+    private _ngEl;
+    private _renderer;
+    private initialClasses;
+    private rawClass;
+    private stateMap;
+    constructor(_ngEl: ElementRef, _renderer: Renderer2);
+    set klass(value: string);
+    set ngClass(value: string | string[] | Set<string> | {
+        [klass: string]: any;
+    } | null | undefined);
+    ngDoCheck(): void;
+    private _updateState;
+    private _applyStateDiff;
+    private _toggleClass;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgClass, never>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgClass, "[ngClass]", never, { "klass": { "alias": "class"; "required": false; }; "ngClass": { "alias": "ngClass"; "required": false; }; }, {}, never, never, true, never>;
+}
+
+/**
+ * Instantiates a {@link /api/core/Component Component} type and inserts its Host View into the current View.
+ * `NgComponentOutlet` provides a declarative approach for dynamic component creation.
+ *
+ * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and
+ * any existing component will be destroyed.
+ *
+ * @usageNotes
+ *
+ * ### Fine tune control
+ *
+ * You can control the component creation process by using the following optional attributes:
+ *
+ * * `ngComponentOutletInputs`: Optional component inputs object, which will be bind to the
+ * component.
+ *
+ * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for
+ * the Component. Defaults to the injector of the current view container.
+ *
+ * * `ngComponentOutletEnvironmentInjector`: Optional custom {@link EnvironmentInjector} which will
+ * provide the component's environment.
+ *
+ * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content
+ * section of the component, if it exists.
+ *
+ * * `ngComponentOutletNgModule`: Optional NgModule class reference to allow loading another
+ * module dynamically, then loading a component from that module.
+ *
+ * * `ngComponentOutletNgModuleFactory`: Deprecated config option that allows providing optional
+ * NgModule factory to allow loading another module dynamically, then loading a component from that
+ * module. Use `ngComponentOutletNgModule` instead.
+ *
+ * ### Syntax
+ *
+ * Simple
+ * ```html
+ * <ng-container *ngComponentOutlet="componentTypeExpression"></ng-container>
+ * ```
+ *
+ * With inputs
+ * ```html
+ * <ng-container *ngComponentOutlet="componentTypeExpression;
+ *                                   inputs: inputsExpression;">
+ * </ng-container>
+ * ```
+ *
+ * Customized injector/content
+ * ```html
+ * <ng-container *ngComponentOutlet="componentTypeExpression;
+ *                                   injector: injectorExpression;
+ *                                   content: contentNodesExpression;">
+ * </ng-container>
+ * ```
+ *
+ * Customized NgModule reference
+ * ```html
+ * <ng-container *ngComponentOutlet="componentTypeExpression;
+ *                                   ngModule: ngModuleClass;">
+ * </ng-container>
+ * ```
+ *
+ * ### A simple example
+ *
+ * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}
+ *
+ * A more complete example with additional options:
+ *
+ * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}
+ *
+ * @publicApi
+ * @ngModule CommonModule
+ */
+declare class NgComponentOutlet<T = any> implements OnChanges, DoCheck, OnDestroy {
+    private _viewContainerRef;
+    /** Component that should be rendered in the outlet. */
+    ngComponentOutlet: Type<any> | null;
+    ngComponentOutletInputs?: Record<string, unknown>;
+    ngComponentOutletInjector?: Injector;
+    ngComponentOutletEnvironmentInjector?: EnvironmentInjector;
+    ngComponentOutletContent?: any[][];
+    ngComponentOutletNgModule?: Type<any>;
+    /**
+     * @deprecated This input is deprecated, use `ngComponentOutletNgModule` instead.
+     */
+    ngComponentOutletNgModuleFactory?: NgModuleFactory<any>;
+    private _componentRef;
+    private _moduleRef;
+    /**
+     * A helper data structure that allows us to track inputs that were part of the
+     * ngComponentOutletInputs expression. Tracking inputs is necessary for proper removal of ones
+     * that are no longer referenced.
+     */
+    private _inputsUsed;
+    /**
+     * Gets the instance of the currently-rendered component.
+     * Will be null if no component has been rendered.
+     */
+    get componentInstance(): T | null;
+    constructor(_viewContainerRef: ViewContainerRef);
+    private _needToReCreateNgModuleInstance;
+    private _needToReCreateComponentInstance;
+    /** @docs-private */
+    ngOnChanges(changes: SimpleChanges): void;
+    /** @docs-private */
+    ngDoCheck(): void;
+    /** @docs-private */
+    ngOnDestroy(): void;
+    private _applyInputStateDiff;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgComponentOutlet<any>, never>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgComponentOutlet<any>, "[ngComponentOutlet]", ["ngComponentOutlet"], { "ngComponentOutlet": { "alias": "ngComponentOutlet"; "required": false; }; "ngComponentOutletInputs": { "alias": "ngComponentOutletInputs"; "required": false; }; "ngComponentOutletInjector": { "alias": "ngComponentOutletInjector"; "required": false; }; "ngComponentOutletEnvironmentInjector": { "alias": "ngComponentOutletEnvironmentInjector"; "required": false; }; "ngComponentOutletContent": { "alias": "ngComponentOutletContent"; "required": false; }; "ngComponentOutletNgModule": { "alias": "ngComponentOutletNgModule"; "required": false; }; "ngComponentOutletNgModuleFactory": { "alias": "ngComponentOutletNgModuleFactory"; "required": false; }; }, {}, never, never, true, never>;
+}
+
+/**
+ * @publicApi
+ *
+ * @deprecated 20.0
+ * The `ngFor` directive is deprecated. Use the `@for` block instead.
+ */
+declare class NgForOfContext<T, U extends NgIterable<T> = NgIterable<T>> {
+    /** Reference to the current item from the collection. */
+    $implicit: T;
+    /**
+     * The value of the iterable expression. Useful when the expression is
+     * more complex then a property access, for example when using the async pipe
+     * (`userStreams | async`).
+     */
+    ngForOf: U;
+    /** Returns an index of the current item in the collection. */
+    index: number;
+    /** Returns total amount of items in the collection. */
+    count: number;
+    constructor(
+    /** Reference to the current item from the collection. */
+    $implicit: T, 
+    /**
+     * The value of the iterable expression. Useful when the expression is
+     * more complex then a property access, for example when using the async pipe
+     * (`userStreams | async`).
+     */
+    ngForOf: U, 
+    /** Returns an index of the current item in the collection. */
+    index: number, 
+    /** Returns total amount of items in the collection. */
+    count: number);
+    get first(): boolean;
+    get last(): boolean;
+    get even(): boolean;
+    get odd(): boolean;
+}
+/**
+ * A [structural directive](guide/directives/structural-directives) that renders
+ * a template for each item in a collection.
+ * The directive is placed on an element, which becomes the parent
+ * of the cloned templates.
+ *
+ * The `ngForOf` directive is generally used in the
+ * [shorthand form](guide/directives/structural-directives#asterisk) `*ngFor`.
+ * In this form, the template to be rendered for each iteration is the content
+ * of an anchor element containing the directive.
+ *
+ * The following example shows the shorthand syntax with some options,
+ * contained in an `<li>` element.
+ *
+ * ```html
+ * <li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>
+ * ```
+ *
+ * The shorthand form expands into a long form that uses the `ngForOf` selector
+ * on an `<ng-template>` element.
+ * The content of the `<ng-template>` element is the `<li>` element that held the
+ * short-form directive.
+ *
+ * Here is the expanded version of the short-form example.
+ *
+ * ```html
+ * <ng-template ngFor let-item [ngForOf]="items" let-i="index" [ngForTrackBy]="trackByFn">
+ *   <li>...</li>
+ * </ng-template>
+ * ```
+ *
+ * Angular automatically expands the shorthand syntax as it compiles the template.
+ * The context for each embedded view is logically merged to the current component
+ * context according to its lexical position.
+ *
+ * When using the shorthand syntax, Angular allows only [one structural directive
+ * on an element](guide/directives/structural-directives#one-per-element).
+ * If you want to iterate conditionally, for example,
+ * put the `*ngIf` on a container element that wraps the `*ngFor` element.
+ * For further discussion, see
+ * [Structural Directives](guide/directives/structural-directives#one-per-element).
+ *
+ * @usageNotes
+ *
+ * ### Local variables
+ *
+ * `NgForOf` provides exported values that can be aliased to local variables.
+ * For example:
+ *
+ *  ```html
+ * <li *ngFor="let user of users; index as i; first as isFirst">
+ *    {{i}}/{{users.length}}. {{user}} <span *ngIf="isFirst">default</span>
+ * </li>
+ * ```
+ *
+ * The following exported values can be aliased to local variables:
+ *
+ * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).
+ * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is
+ * more complex then a property access, for example when using the async pipe (`userStreams |
+ * async`).
+ * - `index: number`: The index of the current item in the iterable.
+ * - `count: number`: The length of the iterable.
+ * - `first: boolean`: True when the item is the first item in the iterable.
+ * - `last: boolean`: True when the item is the last item in the iterable.
+ * - `even: boolean`: True when the item has an even index in the iterable.
+ * - `odd: boolean`: True when the item has an odd index in the iterable.
+ *
+ * ### Change propagation
+ *
+ * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:
+ *
+ * * When an item is added, a new instance of the template is added to the DOM.
+ * * When an item is removed, its template instance is removed from the DOM.
+ * * When items are reordered, their respective templates are reordered in the DOM.
+ *
+ * Angular uses object identity to track insertions and deletions within the iterator and reproduce
+ * those changes in the DOM. This has important implications for animations and any stateful
+ * controls that are present, such as `<input>` elements that accept user input. Inserted rows can
+ * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state
+ * such as user input.
+ * For more on animations, see [Transitions and Triggers](guide/animations/transition-and-triggers).
+ *
+ * The identities of elements in the iterator can change while the data does not.
+ * This can happen, for example, if the iterator is produced from an RPC to the server, and that
+ * RPC is re-run. Even if the data hasn't changed, the second response produces objects with
+ * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old
+ * elements were deleted and all new elements inserted).
+ *
+ * To avoid this expensive operation, you can customize the default tracking algorithm.
+ * by supplying the `trackBy` option to `NgForOf`.
+ * `trackBy` takes a function that has two arguments: `index` and `item`.
+ * If `trackBy` is given, Angular tracks changes by the return value of the function.
+ *
+ * @see [Structural Directives](guide/directives/structural-directives)
+ * @ngModule CommonModule
+ * @publicApi
+ *
+ * @deprecated 20.0
+ * Use the `@for` block instead. Intent to remove in v22
+ */
+declare class NgForOf<T, U extends NgIterable<T> = NgIterable<T>> implements DoCheck {
+    private _viewContainer;
+    private _template;
+    private _differs;
+    /**
+     * The value of the iterable expression, which can be used as a
+     * [template input variable](guide/directives/structural-directives#shorthand).
+     * @deprecated The `ngFor` directive is deprecated. Use the `@for` block instead.
+     */
+    set ngForOf(ngForOf: (U & NgIterable<T>) | undefined | null);
+    /**
+     * Specifies a custom `TrackByFunction` to compute the identity of items in an iterable.
+     *
+     * If a custom `TrackByFunction` is not provided, `NgForOf` will use the item's [object
+     * identity](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is)
+     * as the key.
+     *
+     * `NgForOf` uses the computed key to associate items in an iterable with DOM elements
+     * it produces for these items.
+     *
+     * A custom `TrackByFunction` is useful to provide good user experience in cases when items in an
+     * iterable rendered using `NgForOf` have a natural identifier (for example, custom ID or a
+     * primary key), and this iterable could be updated with new object instances that still
+     * represent the same underlying entity (for example, when data is re-fetched from the server,
+     * and the iterable is recreated and re-rendered, but most of the data is still the same).
+     *
+     * @see {@link TrackByFunction}
+     * @deprecated The `ngFor` directive is deprecated. Use the `@for` block instead.
+     */
+    set ngForTrackBy(fn: TrackByFunction<T>);
+    get ngForTrackBy(): TrackByFunction<T>;
+    private _ngForOf;
+    private _ngForOfDirty;
+    private _differ;
+    private _trackByFn;
+    constructor(_viewContainer: ViewContainerRef, _template: TemplateRef<NgForOfContext<T, U>>, _differs: IterableDiffers);
+    /**
+     * A reference to the template that is stamped out for each item in the iterable.
+     * @see [template reference variable](guide/templates/variables#template-reference-variables)
+     * @deprecated The `ngFor` directive is deprecated. Use the `@for` block instead.
+     */
+    set ngForTemplate(value: TemplateRef<NgForOfContext<T, U>>);
+    /**
+     * Applies the changes when needed.
+     * @docs-private
+     */
+    ngDoCheck(): void;
+    private _applyChanges;
+    /**
+     * Asserts the correct type of the context for the template that `NgForOf` will render.
+     *
+     * The presence of this method is a signal to the Ivy template type-check compiler that the
+     * `NgForOf` structural directive renders its template with a specific context type.
+     */
+    static ngTemplateContextGuard<T, U extends NgIterable<T>>(dir: NgForOf<T, U>, ctx: any): ctx is NgForOfContext<T, U>;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgForOf<any, any>, never>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgForOf<any, any>, "[ngFor][ngForOf]", never, { "ngForOf": { "alias": "ngForOf"; "required": false; }; "ngForTrackBy": { "alias": "ngForTrackBy"; "required": false; }; "ngForTemplate": { "alias": "ngForTemplate"; "required": false; }; }, {}, never, never, true, never>;
+}
+
+/**
+ * A structural directive that conditionally includes a template based on the value of
+ * an expression coerced to Boolean.
+ * When the expression evaluates to true, Angular renders the template
+ * provided in a `then` clause, and when  false or null,
+ * Angular renders the template provided in an optional `else` clause. The default
+ * template for the `else` clause is blank.
+ *
+ * A [shorthand form](guide/directives/structural-directives#asterisk) of the directive,
+ * `*ngIf="condition"`, is generally used, provided
+ * as an attribute of the anchor element for the inserted template.
+ * Angular expands this into a more explicit version, in which the anchor element
+ * is contained in an `<ng-template>` element.
+ *
+ * Simple form with shorthand syntax:
+ *
+ * ```html
+ * <div *ngIf="condition">Content to render when condition is true.</div>
+ * ```
+ *
+ * Simple form with expanded syntax:
+ *
+ * ```html
+ * <ng-template [ngIf]="condition"><div>Content to render when condition is
+ * true.</div></ng-template>
+ * ```
+ *
+ * Form with an "else" block:
+ *
+ * ```html
+ * <div *ngIf="condition; else elseBlock">Content to render when condition is true.</div>
+ * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
+ * ```
+ *
+ * Shorthand form with "then" and "else" blocks:
+ *
+ * ```html
+ * <div *ngIf="condition; then thenBlock else elseBlock"></div>
+ * <ng-template #thenBlock>Content to render when condition is true.</ng-template>
+ * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
+ * ```
+ *
+ * Form with storing the value locally:
+ *
+ * ```html
+ * <div *ngIf="condition as value; else elseBlock">{{value}}</div>
+ * <ng-template #elseBlock>Content to render when value is null.</ng-template>
+ * ```
+ *
+ * @usageNotes
+ *
+ * The `*ngIf` directive is most commonly used to conditionally show an inline template,
+ * as seen in the following  example.
+ * The default `else` template is blank.
+ *
+ * {@example common/ngIf/ts/module.ts region='NgIfSimple'}
+ *
+ * ### Showing an alternative template using `else`
+ *
+ * To display a template when `expression` evaluates to false, use an `else` template
+ * binding as shown in the following example.
+ * The `else` binding points to an `<ng-template>`  element labeled `#elseBlock`.
+ * The template can be defined anywhere in the component view, but is typically placed right after
+ * `ngIf` for readability.
+ *
+ * {@example common/ngIf/ts/module.ts region='NgIfElse'}
+ *
+ * ### Using an external `then` template
+ *
+ * In the previous example, the then-clause template is specified inline, as the content of the
+ * tag that contains the `ngIf` directive. You can also specify a template that is defined
+ * externally, by referencing a labeled `<ng-template>` element. When you do this, you can
+ * change which template to use at runtime, as shown in the following example.
+ *
+ * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}
+ *
+ * ### Storing a conditional result in a variable
+ *
+ * You might want to show a set of properties from the same object. If you are waiting
+ * for asynchronous data, the object can be undefined.
+ * In this case, you can use `ngIf` and store the result of the condition in a local
+ * variable as shown in the following example.
+ *
+ * {@example common/ngIf/ts/module.ts region='NgIfAs'}
+ *
+ * This code uses only one `AsyncPipe`, so only one subscription is created.
+ * The conditional statement stores the result of `userStream|async` in the local variable `user`.
+ * You can then bind the local `user` repeatedly.
+ *
+ * The conditional displays the data only if `userStream` returns a value,
+ * so you don't need to use the
+ * safe-navigation-operator (`?.`)
+ * to guard against null values when accessing properties.
+ * You can display an alternative template while waiting for the data.
+ *
+ * ### Shorthand syntax
+ *
+ * The shorthand syntax `*ngIf` expands into two separate template specifications
+ * for the "then" and "else" clauses. For example, consider the following shorthand statement,
+ * that is meant to show a loading page while waiting for data to be loaded.
+ *
+ * ```html
+ * <div class="hero-list" *ngIf="heroes else loading">
+ *  ...
+ * </div>
+ *
+ * <ng-template #loading>
+ *  <div>Loading...</div>
+ * </ng-template>
+ * ```
+ *
+ * You can see that the "else" clause references the `<ng-template>`
+ * with the `#loading` label, and the template for the "then" clause
+ * is provided as the content of the anchor element.
+ *
+ * However, when Angular expands the shorthand syntax, it creates
+ * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.
+ * The anchor element containing the template for the "then" clause becomes
+ * the content of this unlabeled `<ng-template>` tag.
+ *
+ * ```html
+ * <ng-template [ngIf]="heroes" [ngIfElse]="loading">
+ *  <div class="hero-list">
+ *   ...
+ *  </div>
+ * </ng-template>
+ *
+ * <ng-template #loading>
+ *  <div>Loading...</div>
+ * </ng-template>
+ * ```
+ *
+ * The presence of the implicit template object has implications for the nesting of
+ * structural directives. For more on this subject, see
+ * [Structural Directives](guide/directives/structural-directives#one-per-element).
+ *
+ * @ngModule CommonModule
+ * @publicApi
+ *
+ * @deprecated 20.0
+ * Use the `@if` block instead. Intent to remove in v22
+ */
+declare class NgIf<T = unknown> {
+    private _viewContainer;
+    private _context;
+    private _thenTemplateRef;
+    private _elseTemplateRef;
+    private _thenViewRef;
+    private _elseViewRef;
+    constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef<NgIfContext<T>>);
+    /**
+     * The Boolean expression to evaluate as the condition for showing a template.
+     * @deprecated Use the `@if` block instead. Intent to remove in v22
+     */
+    set ngIf(condition: T);
+    /**
+     * A template to show if the condition expression evaluates to true.
+     * @deprecated Use the `@if` block instead. Intent to remove in v22
+     */
+    set ngIfThen(templateRef: TemplateRef<NgIfContext<T>> | null);
+    /**
+     * A template to show if the condition expression evaluates to false.
+     * @deprecated Use the `@if` block instead. Intent to remove in v22
+     */
+    set ngIfElse(templateRef: TemplateRef<NgIfContext<T>> | null);
+    private _updateView;
+    /**
+     * Assert the correct type of the expression bound to the `ngIf` input within the template.
+     *
+     * The presence of this static field is a signal to the Ivy template type check compiler that
+     * when the `NgIf` structural directive renders its template, the type of the expression bound
+     * to `ngIf` should be narrowed in some way. For `NgIf`, the binding expression itself is used to
+     * narrow its type, which allows the strictNullChecks feature of TypeScript to work with `NgIf`.
+     */
+    static ngTemplateGuard_ngIf: 'binding';
+    /**
+     * Asserts the correct type of the context for the template that `NgIf` will render.
+     *
+     * The presence of this method is a signal to the Ivy template type-check compiler that the
+     * `NgIf` structural directive renders its template with a specific context type.
+     */
+    static ngTemplateContextGuard<T>(dir: NgIf<T>, ctx: any): ctx is NgIfContext<Exclude<T, false | 0 | '' | null | undefined>>;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgIf<any>, never>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgIf<any>, "[ngIf]", never, { "ngIf": { "alias": "ngIf"; "required": false; }; "ngIfThen": { "alias": "ngIfThen"; "required": false; }; "ngIfElse": { "alias": "ngIfElse"; "required": false; }; }, {}, never, never, true, never>;
+}
+/**
+ * @publicApi
+ *
+ * @deprecated 20.0
+ * The ngIf directive is deprecated in favor of the @if block instead.
+ */
+declare class NgIfContext<T = unknown> {
+    $implicit: T;
+    ngIf: T;
+}
+
+/**
+ * @ngModule CommonModule
+ *
+ * @description
+ *
+ * Inserts an embedded view from a prepared `TemplateRef`.
+ *
+ * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.
+ * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding
+ * by the local template `let` declarations.
+ *
+ * @usageNotes
+ * ```html
+ * <ng-container *ngTemplateOutlet="templateRefExp; context: contextExp"></ng-container>
+ * ```
+ *
+ * Using the key `$implicit` in the context object will set its value as default.
+ *
+ * ### Example
+ *
+ * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}
+ *
+ * @publicApi
+ */
+declare class NgTemplateOutlet<C = unknown> implements OnChanges {
+    private _viewContainerRef;
+    private _viewRef;
+    /**
+     * A context object to attach to the {@link EmbeddedViewRef}. This should be an
+     * object, the object's keys will be available for binding by the local template `let`
+     * declarations.
+     * Using the key `$implicit` in the context object will set its value as default.
+     */
+    ngTemplateOutletContext: C | null | undefined;
+    /**
+     * A string defining the template reference and optionally the context object for the template.
+     */
+    ngTemplateOutlet: TemplateRef<C> | null | undefined;
+    /** Injector to be used within the embedded view. */
+    ngTemplateOutletInjector: Injector | null | undefined;
+    constructor(_viewContainerRef: ViewContainerRef);
+    ngOnChanges(changes: SimpleChanges): void;
+    /**
+     * We need to re-create existing embedded view if either is true:
+     * - the outlet changed.
+     * - the injector changed.
+     */
+    private _shouldRecreateView;
+    /**
+     * For a given outlet instance, we create a proxy object that delegates
+     * to the user-specified context. This allows changing, or swapping out
+     * the context object completely without having to destroy/re-create the view.
+     */
+    private _createContextForwardProxy;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgTemplateOutlet<any>, never>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgTemplateOutlet<any>, "[ngTemplateOutlet]", never, { "ngTemplateOutletContext": { "alias": "ngTemplateOutletContext"; "required": false; }; "ngTemplateOutlet": { "alias": "ngTemplateOutlet"; "required": false; }; "ngTemplateOutletInjector": { "alias": "ngTemplateOutletInjector"; "required": false; }; }, {}, never, never, true, never>;
+}
+
+/**
+ * @ngModule CommonModule
+ *
+ * @usageNotes
+ *
+ * Set the width of the containing element to a pixel value returned by an expression.
+ *
+ * ```html
+ * <some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>
+ * ```
+ *
+ * Set a collection of style values using an expression that returns key-value pairs.
+ *
+ * ```html
+ * <some-element [ngStyle]="objExp">...</some-element>
+ * ```
+ *
+ * For more simple use cases you can use the [style bindings](/guide/templates/binding#css-class-and-style-property-bindings) directly.
+ * It doesn't require importing a directive.
+ *
+ * Set the font of the containing element to the result of an expression.
+ *
+ * ```html
+ * <some-element [style]="{'font-style': styleExp}">...</some-element>
+ * ```
+ *
+ * @description
+ *
+ * An attribute directive that updates styles for the containing HTML element.
+ * Sets one or more style properties, specified as colon-separated key-value pairs.
+ * The key is a style name, with an optional `.<unit>` suffix
+ * (such as 'top.px', 'font-style.em').
+ * The value is an expression to be evaluated.
+ * The resulting non-null value, expressed in the given unit,
+ * is assigned to the given style property.
+ * If the result of evaluation is null, the corresponding style is removed.
+ *
+ * @see [Style bindings](/guide/templates/binding#css-class-and-style-property-bindings)
+ *
+ * @publicApi
+ */
+declare class NgStyle implements DoCheck {
+    private _ngEl;
+    private _differs;
+    private _renderer;
+    private _ngStyle;
+    private _differ;
+    constructor(_ngEl: ElementRef, _differs: KeyValueDiffers, _renderer: Renderer2);
+    set ngStyle(values: {
+        [klass: string]: any;
+    } | null | undefined);
+    ngDoCheck(): void;
+    private _setStyle;
+    private _applyChanges;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgStyle, never>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgStyle, "[ngStyle]", never, { "ngStyle": { "alias": "ngStyle"; "required": false; }; }, {}, never, never, true, never>;
+}
+
+declare class SwitchView {
+    private _viewContainerRef;
+    private _templateRef;
+    private _created;
+    constructor(_viewContainerRef: ViewContainerRef, _templateRef: TemplateRef<Object>);
+    create(): void;
+    destroy(): void;
+    enforceState(created: boolean): void;
+}
+/**
+ * @ngModule CommonModule
+ *
+ * @description
+ * The `[ngSwitch]` directive on a container specifies an expression to match against.
+ * The expressions to match are provided by `ngSwitchCase` directives on views within the container.
+ * - Every view that matches is rendered.
+ * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.
+ * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`
+ * or `ngSwitchDefault` directive are preserved at the location.
+ *
+ * @usageNotes
+ * Define a container element for the directive, and specify the switch expression
+ * to match against as an attribute:
+ *
+ * ```html
+ * <container-element [ngSwitch]="switch_expression">
+ * ```
+ *
+ * Within the container, `*ngSwitchCase` statements specify the match expressions
+ * as attributes. Include `*ngSwitchDefault` as the final case.
+ *
+ * ```html
+ * <container-element [ngSwitch]="switch_expression">
+ *    <some-element *ngSwitchCase="match_expression_1">...</some-element>
+ * ...
+ *    <some-element *ngSwitchDefault>...</some-element>
+ * </container-element>
+ * ```
+ *
+ * ### Usage Examples
+ *
+ * The following example shows how to use more than one case to display the same view:
+ *
+ * ```html
+ * <container-element [ngSwitch]="switch_expression">
+ *   <!-- the same view can be shown in more than one case -->
+ *   <some-element *ngSwitchCase="match_expression_1">...</some-element>
+ *   <some-element *ngSwitchCase="match_expression_2">...</some-element>
+ *   <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
+ *   <!--default case when there are no matches -->
+ *   <some-element *ngSwitchDefault>...</some-element>
+ * </container-element>
+ * ```
+ *
+ * The following example shows how cases can be nested:
+ * ```html
+ * <container-element [ngSwitch]="switch_expression">
+ *       <some-element *ngSwitchCase="match_expression_1">...</some-element>
+ *       <some-element *ngSwitchCase="match_expression_2">...</some-element>
+ *       <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
+ *       <ng-container *ngSwitchCase="match_expression_3">
+ *         <!-- use a ng-container to group multiple root nodes -->
+ *         <inner-element></inner-element>
+ *         <inner-other-element></inner-other-element>
+ *       </ng-container>
+ *       <some-element *ngSwitchDefault>...</some-element>
+ *     </container-element>
+ * ```
+ *
+ * @publicApi
+ * @see {@link NgSwitchCase}
+ * @see {@link NgSwitchDefault}
+ * @see [Structural Directives](guide/directives/structural-directives)
+ *
+ * @deprecated 20.0
+ * Use the `@switch` block instead. Intent to remove in v22
+ */
+declare class NgSwitch {
+    private _defaultViews;
+    private _defaultUsed;
+    private _caseCount;
+    private _lastCaseCheckIndex;
+    private _lastCasesMatched;
+    private _ngSwitch;
+    /** @deprecated Use the `@switch` block instead. Intent to remove in v22 */
+    set ngSwitch(newValue: any);
+    private _updateDefaultCases;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgSwitch, never>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgSwitch, "[ngSwitch]", never, { "ngSwitch": { "alias": "ngSwitch"; "required": false; }; }, {}, never, never, true, never>;
+}
+/**
+ * @ngModule CommonModule
+ *
+ * @description
+ * Provides a switch case expression to match against an enclosing `ngSwitch` expression.
+ * When the expressions match, the given `NgSwitchCase` template is rendered.
+ * If multiple match expressions match the switch expression value, all of them are displayed.
+ *
+ * @usageNotes
+ *
+ * Within a switch container, `*ngSwitchCase` statements specify the match expressions
+ * as attributes. Include `*ngSwitchDefault` as the final case.
+ *
+ * ```html
+ * <container-element [ngSwitch]="switch_expression">
+ *   <some-element *ngSwitchCase="match_expression_1">...</some-element>
+ *   ...
+ *   <some-element *ngSwitchDefault>...</some-element>
+ * </container-element>
+ * ```
+ *
+ * Each switch-case statement contains an in-line HTML template or template reference
+ * that defines the subtree to be selected if the value of the match expression
+ * matches the value of the switch expression.
+ *
+ * As of Angular v17 the NgSwitch directive uses strict equality comparison (`===`) instead of
+ * loose equality (`==`) to match different cases.
+ *
+ * @publicApi
+ * @see {@link NgSwitch}
+ * @see {@link NgSwitchDefault}
+ *
+ * @deprecated 20.0
+ * Use the `@case` block within a `@switch` block instead. Intent to remove in v22
+ */
+declare class NgSwitchCase implements DoCheck {
+    private ngSwitch;
+    private _view;
+    /**
+     * Stores the HTML template to be selected on match.
+     * @deprecated Use the `@case` block within a `@switch` block instead. Intent to remove in v22
+     */
+    ngSwitchCase: any;
+    constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
+    /**
+     * Performs case matching. For internal use only.
+     * @docs-private
+     */
+    ngDoCheck(): void;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgSwitchCase, [null, null, { optional: true; host: true; }]>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgSwitchCase, "[ngSwitchCase]", never, { "ngSwitchCase": { "alias": "ngSwitchCase"; "required": false; }; }, {}, never, never, true, never>;
+}
+/**
+ * @ngModule CommonModule
+ *
+ * @description
+ *
+ * Creates a view that is rendered when no `NgSwitchCase` expressions
+ * match the `NgSwitch` expression.
+ * This statement should be the final case in an `NgSwitch`.
+ *
+ * @publicApi
+ * @see {@link NgSwitch}
+ * @see {@link NgSwitchCase}
+ *
+ * @deprecated 20.0
+ * Use the `@default` block within a `@switch` block instead. Intent to remove in v22
+ */
+declare class NgSwitchDefault {
+    constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgSwitchDefault, [null, null, { optional: true; host: true; }]>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgSwitchDefault, "[ngSwitchDefault]", never, {}, {}, never, never, true, never>;
+}
+
+/**
+ * @ngModule CommonModule
+ *
+ * @usageNotes
+ * ```html
+ * <some-element [ngPlural]="value">
+ *   <ng-template ngPluralCase="=0">there is nothing</ng-template>
+ *   <ng-template ngPluralCase="=1">there is one</ng-template>
+ *   <ng-template ngPluralCase="few">there are a few</ng-template>
+ * </some-element>
+ * ```
+ *
+ * @description
+ *
+ * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.
+ *
+ * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees
+ * that match the switch expression's pluralization category.
+ *
+ * To use this directive you must provide a container element that sets the `[ngPlural]` attribute
+ * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their
+ * expression:
+ * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value
+ *   matches the switch expression exactly,
+ * - otherwise, the view will be treated as a "category match", and will only display if exact
+ *   value matches aren't found and the value maps to its category for the defined locale.
+ *
+ * See http://cldr.unicode.org/index/cldr-spec/plural-rules
+ *
+ * @publicApi
+ */
+declare class NgPlural {
+    private _localization;
+    private _activeView?;
+    private _caseViews;
+    constructor(_localization: NgLocalization);
+    set ngPlural(value: number);
+    addCase(value: string, switchView: SwitchView): void;
+    private _updateView;
+    private _clearViews;
+    private _activateView;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgPlural, never>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgPlural, "[ngPlural]", never, { "ngPlural": { "alias": "ngPlural"; "required": false; }; }, {}, never, never, true, never>;
+}
+/**
+ * @ngModule CommonModule
+ *
+ * @description
+ *
+ * Creates a view that will be added/removed from the parent {@link NgPlural} when the
+ * given expression matches the plural expression according to CLDR rules.
+ *
+ * @usageNotes
+ * ```html
+ * <some-element [ngPlural]="value">
+ *   <ng-template ngPluralCase="=0">...</ng-template>
+ *   <ng-template ngPluralCase="other">...</ng-template>
+ * </some-element>
+ *```
+ *
+ * See {@link NgPlural} for more details and example.
+ *
+ * @publicApi
+ */
+declare class NgPluralCase {
+    value: string;
+    constructor(value: string, template: TemplateRef<Object>, viewContainer: ViewContainerRef, ngPlural: NgPlural);
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgPluralCase, [{ attribute: "ngPluralCase"; }, null, null, { host: true; }]>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgPluralCase, "[ngPluralCase]", never, {}, {}, never, never, true, never>;
+}
+
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Unwraps a value from an asynchronous primitive.
+ *
+ * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has
+ * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for
+ * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid
+ * potential memory leaks. When the reference of the expression changes, the `async` pipe
+ * automatically unsubscribes from the old `Observable` or `Promise` and subscribes to the new one.
+ *
+ * @usageNotes
+ *
+ * ### Examples
+ *
+ * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the
+ * promise.
+ *
+ * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}
+ *
+ * It's also possible to use `async` with Observables. The example below binds the `time` Observable
+ * to the view. The Observable continuously updates the view with the current time.
+ *
+ * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}
+ *
+ * @publicApi
+ */
+declare class AsyncPipe implements OnDestroy, PipeTransform {
+    private _ref;
+    private _latestValue;
+    private markForCheckOnValueUpdate;
+    private _subscription;
+    private _obj;
+    private _strategy;
+    private readonly applicationErrorHandler;
+    constructor(ref: ChangeDetectorRef);
+    ngOnDestroy(): void;
+    transform<T>(obj: Observable<T> | Subscribable<T> | PromiseLike<T>): T | null;
+    transform<T>(obj: null | undefined): null;
+    transform<T>(obj: Observable<T> | Subscribable<T> | PromiseLike<T> | null | undefined): T | null;
+    private _subscribe;
+    private _selectStrategy;
+    private _dispose;
+    private _updateLatestValue;
+    static ɵfac: i0.ɵɵFactoryDeclaration<AsyncPipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<AsyncPipe, "async", true>;
+}
+
+/**
+ * Transforms text to all lower case.
+ *
+ * @see {@link UpperCasePipe}
+ * @see {@link TitleCasePipe}
+ * @usageNotes
+ *
+ * The following example defines a view that allows the user to enter
+ * text, and then uses the pipe to convert the input text to all lower case.
+ *
+ * {@example common/pipes/ts/lowerupper_pipe.ts region='LowerUpperPipe'}
+ *
+ * @ngModule CommonModule
+ * @publicApi
+ */
+declare class LowerCasePipe implements PipeTransform {
+    /**
+     * @param value The string to transform to lower case.
+     */
+    transform(value: string): string;
+    transform(value: null | undefined): null;
+    transform(value: string | null | undefined): string | null;
+    static ɵfac: i0.ɵɵFactoryDeclaration<LowerCasePipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<LowerCasePipe, "lowercase", true>;
+}
+/**
+ * Transforms text to title case.
+ * Capitalizes the first letter of each word and transforms the
+ * rest of the word to lower case.
+ * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.
+ *
+ * @see {@link LowerCasePipe}
+ * @see {@link UpperCasePipe}
+ *
+ * @usageNotes
+ * The following example shows the result of transforming various strings into title case.
+ *
+ * {@example common/pipes/ts/titlecase_pipe.ts region='TitleCasePipe'}
+ *
+ * @ngModule CommonModule
+ * @publicApi
+ */
+declare class TitleCasePipe implements PipeTransform {
+    /**
+     * @param value The string to transform to title case.
+     */
+    transform(value: string): string;
+    transform(value: null | undefined): null;
+    transform(value: string | null | undefined): string | null;
+    static ɵfac: i0.ɵɵFactoryDeclaration<TitleCasePipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<TitleCasePipe, "titlecase", true>;
+}
+/**
+ * Transforms text to all upper case.
+ * @see {@link LowerCasePipe}
+ * @see {@link TitleCasePipe}
+ *
+ * @ngModule CommonModule
+ * @publicApi
+ */
+declare class UpperCasePipe implements PipeTransform {
+    /**
+     * @param value The string to transform to upper case.
+     */
+    transform(value: string): string;
+    transform(value: null | undefined): null;
+    transform(value: string | null | undefined): string | null;
+    static ɵfac: i0.ɵɵFactoryDeclaration<UpperCasePipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<UpperCasePipe, "uppercase", true>;
+}
+
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Converts a value into its JSON-format representation.  Useful for debugging.
+ *
+ * @usageNotes
+ *
+ * The following component uses a JSON pipe to convert an object
+ * to JSON format, and displays the string in both formats for comparison.
+ *
+ * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}
+ *
+ * @publicApi
+ */
+declare class JsonPipe implements PipeTransform {
+    /**
+     * @param value A value of any type to convert into a JSON-format string.
+     */
+    transform(value: any): string;
+    static ɵfac: i0.ɵɵFactoryDeclaration<JsonPipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<JsonPipe, "json", true>;
+}
+
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Creates a new `Array` or `String` containing a subset (slice) of the elements.
+ *
+ * @usageNotes
+ *
+ * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`
+ * and `String.prototype.slice()`.
+ *
+ * When operating on an `Array`, the returned `Array` is always a copy even when all
+ * the elements are being returned.
+ *
+ * When operating on a blank value, the pipe returns the blank value.
+ *
+ * ### List Example
+ *
+ * This `ngFor` example:
+ *
+ * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}
+ *
+ * produces the following:
+ *
+ * ```html
+ * <li>b</li>
+ * <li>c</li>
+ * ```
+ *
+ * ### String Examples
+ *
+ * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}
+ *
+ * @publicApi
+ */
+declare class SlicePipe implements PipeTransform {
+    /**
+     * @param value a list or a string to be sliced.
+     * @param start the starting index of the subset to return:
+     *   - **a positive integer**: return the item at `start` index and all items after
+     *     in the list or string expression.
+     *   - **a negative integer**: return the item at `start` index from the end and all items after
+     *     in the list or string expression.
+     *   - **if positive and greater than the size of the expression**: return an empty list or
+     * string.
+     *   - **if negative and greater than the size of the expression**: return entire list or string.
+     * @param end the ending index of the subset to return:
+     *   - **omitted**: return all items until the end.
+     *   - **if positive**: return all items before `end` index of the list or string.
+     *   - **if negative**: return all items before `end` index from the end of the list or string.
+     */
+    transform<T>(value: ReadonlyArray<T>, start: number, end?: number): Array<T>;
+    transform(value: null | undefined, start: number, end?: number): null;
+    transform<T>(value: ReadonlyArray<T> | null | undefined, start: number, end?: number): Array<T> | null;
+    transform(value: string, start: number, end?: number): string;
+    transform(value: string | null | undefined, start: number, end?: number): string | null;
+    static ɵfac: i0.ɵɵFactoryDeclaration<SlicePipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<SlicePipe, "slice", true>;
+}
+
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Formats a value according to digit options and locale rules.
+ * Locale determines group sizing and separator,
+ * decimal point character, and other locale-specific configurations.
+ *
+ * @see {@link formatNumber}
+ *
+ * @usageNotes
+ *
+ * ### digitsInfo
+ *
+ * The value's decimal representation is specified by the `digitsInfo`
+ * parameter, written in the following format:<br>
+ *
+ * ```
+ * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}
+ * ```
+ *
+ *  - `minIntegerDigits`:
+ * The minimum number of integer digits before the decimal point.
+ * Default is 1.
+ *
+ * - `minFractionDigits`:
+ * The minimum number of digits after the decimal point.
+ * Default is 0.
+ *
+ *  - `maxFractionDigits`:
+ * The maximum number of digits after the decimal point.
+ * Default is 3.
+ *
+ * If the formatted value is truncated it will be rounded using the "to-nearest" method:
+ *
+ * ```
+ * {{3.6 | number: '1.0-0'}}
+ * <!--will output '4'-->
+ *
+ * {{-3.6 | number:'1.0-0'}}
+ * <!--will output '-4'-->
+ * ```
+ *
+ * ### locale
+ *
+ * `locale` will format a value according to locale rules.
+ * Locale determines group sizing and separator,
+ * decimal point character, and other locale-specific configurations.
+ *
+ * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
+ *
+ * See [Setting your app locale](guide/i18n/locale-id).
+ *
+ * ### Example
+ *
+ * The following code shows how the pipe transforms values
+ * according to various format specifications,
+ * where the caller's default locale is `en-US`.
+ *
+ * {@example common/pipes/ts/number_pipe.ts region='NumberPipe'}
+ *
+ * @publicApi
+ */
+declare class DecimalPipe implements PipeTransform {
+    private _locale;
+    constructor(_locale: string);
+    /**
+     * @param value The value to be formatted.
+     * @param digitsInfo Sets digit and decimal representation.
+     * [See more](#digitsinfo).
+     * @param locale Specifies what locale format rules to use.
+     * [See more](#locale).
+     */
+    transform(value: number | string, digitsInfo?: string, locale?: string): string | null;
+    transform(value: null | undefined, digitsInfo?: string, locale?: string): null;
+    transform(value: number | string | null | undefined, digitsInfo?: string, locale?: string): string | null;
+    static ɵfac: i0.ɵɵFactoryDeclaration<DecimalPipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<DecimalPipe, "number", true>;
+}
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Transforms a number to a percentage
+ * string, formatted according to locale rules that determine group sizing and
+ * separator, decimal-point character, and other locale-specific
+ * configurations.
+ *
+ * @see {@link formatPercent}
+ *
+ * @usageNotes
+ * The following code shows how the pipe transforms numbers
+ * into text strings, according to various format specifications,
+ * where the caller's default locale is `en-US`.
+ *
+ * {@example common/pipes/ts/percent_pipe.ts region='PercentPipe'}
+ *
+ * @publicApi
+ */
+declare class PercentPipe implements PipeTransform {
+    private _locale;
+    constructor(_locale: string);
+    transform(value: number | string, digitsInfo?: string, locale?: string): string | null;
+    transform(value: null | undefined, digitsInfo?: string, locale?: string): null;
+    transform(value: number | string | null | undefined, digitsInfo?: string, locale?: string): string | null;
+    static ɵfac: i0.ɵɵFactoryDeclaration<PercentPipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<PercentPipe, "percent", true>;
+}
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Transforms a number to a currency string, formatted according to locale rules
+ * that determine group sizing and separator, decimal-point character,
+ * and other locale-specific configurations.
+ *
+ *
+ * @see {@link getCurrencySymbol}
+ * @see {@link formatCurrency}
+ *
+ * @usageNotes
+ * The following code shows how the pipe transforms numbers
+ * into text strings, according to various format specifications,
+ * where the caller's default locale is `en-US`.
+ *
+ * {@example common/pipes/ts/currency_pipe.ts region='CurrencyPipe'}
+ *
+ * @publicApi
+ */
+declare class CurrencyPipe implements PipeTransform {
+    private _locale;
+    private _defaultCurrencyCode;
+    constructor(_locale: string, _defaultCurrencyCode?: string);
+    /**
+     *
+     * @param value The number to be formatted as currency.
+     * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code,
+     * such as `USD` for the US dollar and `EUR` for the euro. The default currency code can be
+     * configured using the `DEFAULT_CURRENCY_CODE` injection token.
+     * @param display The format for the currency indicator. One of the following:
+     *   - `code`: Show the code (such as `USD`).
+     *   - `symbol`(default): Show the symbol (such as `$`).
+     *   - `symbol-narrow`: Use the narrow symbol for locales that have two symbols for their
+     * currency.
+     * For example, the Canadian dollar CAD has the symbol `CA$` and the symbol-narrow `$`. If the
+     * locale has no narrow symbol, uses the standard symbol for the locale.
+     *   - String: Use the given string value instead of a code or a symbol.
+     * For example, an empty string will suppress the currency & symbol.
+     *   - Boolean (marked deprecated in v5): `true` for symbol and false for `code`.
+     *
+     * @param digitsInfo Decimal representation options, specified by a string
+     * in the following format:<br>
+     * <code>{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}</code>.
+     *   - `minIntegerDigits`: The minimum number of integer digits before the decimal point.
+     * Default is `1`.
+     *   - `minFractionDigits`: The minimum number of digits after the decimal point.
+     * Default is `2`.
+     *   - `maxFractionDigits`: The maximum number of digits after the decimal point.
+     * Default is `2`.
+     * If not provided, the number will be formatted with the proper amount of digits,
+     * depending on what the [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) specifies.
+     * For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none.
+     * @param locale A locale code for the locale format rules to use.
+     * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
+     * See [Setting your app locale](guide/i18n/locale-id).
+     */
+    transform(value: number | string, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): string | null;
+    transform(value: null | undefined, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): null;
+    transform(value: number | string | null | undefined, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | string | boolean, digitsInfo?: string, locale?: string): string | null;
+    static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyPipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<CurrencyPipe, "currency", true>;
+}
+
+/**
+ * An interface that describes the date pipe configuration, which can be provided using the
+ * `DATE_PIPE_DEFAULT_OPTIONS` token.
+ *
+ * @see {@link DATE_PIPE_DEFAULT_OPTIONS}
+ *
+ * @publicApi
+ */
+interface DatePipeConfig {
+    dateFormat?: string;
+    timezone?: string;
+}
+
+/**
+ * Optionally-provided default timezone to use for all instances of `DatePipe` (such as `'+0430'`).
+ * If the value isn't provided, the `DatePipe` will use the end-user's local system timezone.
+ *
+ * @deprecated use DATE_PIPE_DEFAULT_OPTIONS token to configure DatePipe
+ */
+declare const DATE_PIPE_DEFAULT_TIMEZONE: InjectionToken<string>;
+/**
+ * DI token that allows to provide default configuration for the `DatePipe` instances in an
+ * application. The value is an object which can include the following fields:
+ * - `dateFormat`: configures the default date format. If not provided, the `DatePipe`
+ * will use the 'mediumDate' as a value.
+ * - `timezone`: configures the default timezone. If not provided, the `DatePipe` will
+ * use the end-user's local system timezone.
+ *
+ * @see {@link DatePipeConfig}
+ *
+ * @usageNotes
+ *
+ * Various date pipe default values can be overwritten by providing this token with
+ * the value that has this interface.
+ *
+ * For example:
+ *
+ * Override the default date format by providing a value using the token:
+ * ```ts
+ * providers: [
+ *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {dateFormat: 'shortDate'}}
+ * ]
+ * ```
+ *
+ * Override the default timezone by providing a value using the token:
+ * ```ts
+ * providers: [
+ *   {provide: DATE_PIPE_DEFAULT_OPTIONS, useValue: {timezone: '-1200'}}
+ * ]
+ * ```
+ */
+declare const DATE_PIPE_DEFAULT_OPTIONS: InjectionToken<DatePipeConfig>;
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Formats a date value according to locale rules.
+ *
+ * `DatePipe` is executed only when it detects a pure change to the input value.
+ * A pure change is either a change to a primitive input value
+ * (such as `String`, `Number`, `Boolean`, or `Symbol`),
+ * or a changed object reference (such as `Date`, `Array`, `Function`, or `Object`).
+ *
+ * Note that mutating a `Date` object does not cause the pipe to be rendered again.
+ * To ensure that the pipe is executed, you must create a new `Date` object.
+ *
+ * Only the `en-US` locale data comes with Angular. To localize dates
+ * in another language, you must import the corresponding locale data.
+ * See the [I18n guide](guide/i18n/format-data-locale) for more information.
+ *
+ * The time zone of the formatted value can be specified either by passing it in as the second
+ * parameter of the pipe, or by setting the default through the `DATE_PIPE_DEFAULT_OPTIONS`
+ * injection token. The value that is passed in as the second parameter takes precedence over
+ * the one defined using the injection token.
+ *
+ * @see {@link formatDate}
+ *
+ *
+ * @usageNotes
+ *
+ * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to
+ * reformat the date on every change-detection cycle, treat the date as an immutable object
+ * and change the reference when the pipe needs to run again.
+ *
+ * ### Pre-defined format options
+ *
+ * | Option        | Equivalent to                       | Examples (given in `en-US` locale)              |
+ * |---------------|-------------------------------------|-------------------------------------------------|
+ * | `'short'`     | `'M/d/yy, h:mm a'`                  | `6/15/15, 9:03 AM`                              |
+ * | `'medium'`    | `'MMM d, y, h:mm:ss a'`             | `Jun 15, 2015, 9:03:01 AM`                      |
+ * | `'long'`      | `'MMMM d, y, h:mm:ss a z'`          | `June 15, 2015 at 9:03:01 AM GMT+1`             |
+ * | `'full'`      | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |
+ * | `'shortDate'` | `'M/d/yy'`                          | `6/15/15`                                       |
+ * | `'mediumDate'`| `'MMM d, y'`                        | `Jun 15, 2015`                                  |
+ * | `'longDate'`  | `'MMMM d, y'`                       | `June 15, 2015`                                 |
+ * | `'fullDate'`  | `'EEEE, MMMM d, y'`                 | `Monday, June 15, 2015`                         |
+ * | `'shortTime'` | `'h:mm a'`                          | `9:03 AM`                                       |
+ * | `'mediumTime'`| `'h:mm:ss a'`                       | `9:03:01 AM`                                    |
+ * | `'longTime'`  | `'h:mm:ss a z'`                     | `9:03:01 AM GMT+1`                              |
+ * | `'fullTime'`  | `'h:mm:ss a zzzz'`                  | `9:03:01 AM GMT+01:00`                          |
+ *
+ * ### Custom format options
+ *
+ * You can construct a format string using symbols to specify the components
+ * of a date-time value, as described in the following table.
+ * Format details depend on the locale.
+ * Fields marked with (*) are only available in the extra data set for the given locale.
+ *
+ *  | Field type              | Format      | Description                                                   | Example Value                                              |
+ *  |-------------------------|-------------|---------------------------------------------------------------|------------------------------------------------------------|
+ *  | Era                     | G, GG & GGG | Abbreviated                                                   | AD                                                         |
+ *  |                         | GGGG        | Wide                                                          | Anno Domini                                                |
+ *  |                         | GGGGG       | Narrow                                                        | A                                                          |
+ *  | Year                    | y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |
+ *  |                         | yy          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |
+ *  |                         | yyy         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |
+ *  |                         | yyyy        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |
+ *  | ISO Week-numbering year | Y           | Numeric: minimum digits                                       | 2, 20, 201, 2017, 20173                                    |
+ *  |                         | YY          | Numeric: 2 digits + zero padded                               | 02, 20, 01, 17, 73                                         |
+ *  |                         | YYY         | Numeric: 3 digits + zero padded                               | 002, 020, 201, 2017, 20173                                 |
+ *  |                         | YYYY        | Numeric: 4 digits or more + zero padded                       | 0002, 0020, 0201, 2017, 20173                              |
+ *  | Month                   | M           | Numeric: 1 digit                                              | 9, 12                                                      |
+ *  |                         | MM          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |
+ *  |                         | MMM         | Abbreviated                                                   | Sep                                                        |
+ *  |                         | MMMM        | Wide                                                          | September                                                  |
+ *  |                         | MMMMM       | Narrow                                                        | S                                                          |
+ *  | Month standalone        | L           | Numeric: 1 digit                                              | 9, 12                                                      |
+ *  |                         | LL          | Numeric: 2 digits + zero padded                               | 09, 12                                                     |
+ *  |                         | LLL         | Abbreviated                                                   | Sep                                                        |
+ *  |                         | LLLL        | Wide                                                          | September                                                  |
+ *  |                         | LLLLL       | Narrow                                                        | S                                                          |
+ *  | ISO Week of year        | w           | Numeric: minimum digits                                       | 1... 53                                                    |
+ *  |                         | ww          | Numeric: 2 digits + zero padded                               | 01... 53                                                   |
+ *  | Week of month           | W           | Numeric: 1 digit                                              | 1... 5                                                     |
+ *  | Day of month            | d           | Numeric: minimum digits                                       | 1                                                          |
+ *  |                         | dd          | Numeric: 2 digits + zero padded                               | 01                                                         |
+ *  | Week day                | E, EE & EEE | Abbreviated                                                   | Tue                                                        |
+ *  |                         | EEEE        | Wide                                                          | Tuesday                                                    |
+ *  |                         | EEEEE       | Narrow                                                        | T                                                          |
+ *  |                         | EEEEEE      | Short                                                         | Tu                                                         |
+ *  | Week day standalone     | c, cc       | Numeric: 1 digit                                              | 2                                                          |
+ *  |                         | ccc         | Abbreviated                                                   | Tue                                                        |
+ *  |                         | cccc        | Wide                                                          | Tuesday                                                    |
+ *  |                         | ccccc       | Narrow                                                        | T                                                          |
+ *  |                         | cccccc      | Short                                                         | Tu                                                         |
+ *  | Period                  | a, aa & aaa | Abbreviated                                                   | am/pm or AM/PM                                             |
+ *  |                         | aaaa        | Wide (fallback to `a` when missing)                           | ante meridiem/post meridiem                                |
+ *  |                         | aaaaa       | Narrow                                                        | a/p                                                        |
+ *  | Period*                 | B, BB & BBB | Abbreviated                                                   | mid.                                                       |
+ *  |                         | BBBB        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |
+ *  |                         | BBBBB       | Narrow                                                        | md                                                         |
+ *  | Period standalone*      | b, bb & bbb | Abbreviated                                                   | mid.                                                       |
+ *  |                         | bbbb        | Wide                                                          | am, pm, midnight, noon, morning, afternoon, evening, night |
+ *  |                         | bbbbb       | Narrow                                                        | md                                                         |
+ *  | Hour 1-12               | h           | Numeric: minimum digits                                       | 1, 12                                                      |
+ *  |                         | hh          | Numeric: 2 digits + zero padded                               | 01, 12                                                     |
+ *  | Hour 0-23               | H           | Numeric: minimum digits                                       | 0, 23                                                      |
+ *  |                         | HH          | Numeric: 2 digits + zero padded                               | 00, 23                                                     |
+ *  | Minute                  | m           | Numeric: minimum digits                                       | 8, 59                                                      |
+ *  |                         | mm          | Numeric: 2 digits + zero padded                               | 08, 59                                                     |
+ *  | Second                  | s           | Numeric: minimum digits                                       | 0... 59                                                    |
+ *  |                         | ss          | Numeric: 2 digits + zero padded                               | 00... 59                                                   |
+ *  | Fractional seconds      | S           | Numeric: 1 digit                                              | 0... 9                                                     |
+ *  |                         | SS          | Numeric: 2 digits + zero padded                               | 00... 99                                                   |
+ *  |                         | SSS         | Numeric: 3 digits + zero padded (= milliseconds)              | 000... 999                                                 |
+ *  | Zone                    | z, zz & zzz | Short specific non location format (fallback to O)            | GMT-8                                                      |
+ *  |                         | zzzz        | Long specific non location format (fallback to OOOO)          | GMT-08:00                                                  |
+ *  |                         | Z, ZZ & ZZZ | ISO8601 basic format                                          | -0800                                                      |
+ *  |                         | ZZZZ        | Long localized GMT format                                     | GMT-8:00                                                   |
+ *  |                         | ZZZZZ       | ISO8601 extended format + Z indicator for offset 0 (= XXXXX)  | -08:00                                                     |
+ *  |                         | O, OO & OOO | Short localized GMT format                                    | GMT-8                                                      |
+ *  |                         | OOOO        | Long localized GMT format                                     | GMT-08:00                                                  |
+ *
+ *
+ * ### Format examples
+ *
+ * These examples transform a date into various formats,
+ * assuming that `dateObj` is a JavaScript `Date` object for
+ * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,
+ * given in the local time for the `en-US` locale.
+ *
+ * ```
+ * {{ dateObj | date }}               // output is 'Jun 15, 2015'
+ * {{ dateObj | date:'medium' }}      // output is 'Jun 15, 2015, 9:43:11 PM'
+ * {{ dateObj | date:'shortTime' }}   // output is '9:43 PM'
+ * {{ dateObj | date:'mm:ss' }}       // output is '43:11'
+ * {{ dateObj | date:"MMM dd, yyyy 'at' hh:mm a" }}  // output is 'Jun 15, 2015 at 09:43 PM'
+ * ```
+ *
+ * ### Usage example
+ *
+ * The following component uses a date pipe to display the current date in different formats.
+ *
+ * ```angular-ts
+ * @Component({
+ *  selector: 'date-pipe',
+ *  template: `<div>
+ *    <p>Today is {{today | date}}</p>
+ *    <p>Or if you prefer, {{today | date:'fullDate'}}</p>
+ *    <p>The time is {{today | date:'h:mm a z'}}</p>
+ *  </div>`
+ * })
+ * // Get the current date and time as a date-time value.
+ * export class DatePipeComponent {
+ *   today: number = Date.now();
+ * }
+ * ```
+ *
+ * @publicApi
+ */
+declare class DatePipe implements PipeTransform {
+    private locale;
+    private defaultTimezone?;
+    private defaultOptions?;
+    constructor(locale: string, defaultTimezone?: string | null | undefined, defaultOptions?: (DatePipeConfig | null) | undefined);
+    /**
+     * @param value The date expression: a `Date` object,  a number
+     * (milliseconds since UTC epoch), or an ISO string (https://www.w3.org/TR/NOTE-datetime).
+     * @param format The date/time components to include, using predefined options or a
+     * custom format string.  When not provided, the `DatePipe` looks for the value using the
+     * `DATE_PIPE_DEFAULT_OPTIONS` injection token (and reads the `dateFormat` property).
+     * If the token is not configured, the `mediumDate` is used as a value.
+     * @param timezone A timezone offset (such as `'+0430'`). When not provided, the `DatePipe`
+     * looks for the value using the `DATE_PIPE_DEFAULT_OPTIONS` injection token (and reads
+     * the `timezone` property). If the token is not configured, the end-user's local system
+     * timezone is used as a value.
+     * @param locale A locale code for the locale format rules to use.
+     * When not supplied, uses the value of `LOCALE_ID`, which is `en-US` by default.
+     * See [Setting your app locale](guide/i18n/locale-id).
+     *
+     * @see {@link DATE_PIPE_DEFAULT_OPTIONS}
+     *
+     * @returns A date string in the desired format.
+     */
+    transform(value: Date | string | number, format?: string, timezone?: string, locale?: string): string | null;
+    transform(value: null | undefined, format?: string, timezone?: string, locale?: string): null;
+    transform(value: Date | string | number | null | undefined, format?: string, timezone?: string, locale?: string): string | null;
+    static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, [null, { optional: true; }, { optional: true; }]>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "date", true>;
+}
+
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Maps a value to a string that pluralizes the value according to locale rules.
+ *
+ * @usageNotes
+ *
+ * ### Example
+ *
+ * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}
+ *
+ * @publicApi
+ */
+declare class I18nPluralPipe implements PipeTransform {
+    private _localization;
+    constructor(_localization: NgLocalization);
+    /**
+     * @param value the number to be formatted
+     * @param pluralMap an object that mimics the ICU format, see
+     * https://unicode-org.github.io/icu/userguide/format_parse/messages/.
+     * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by
+     * default).
+     */
+    transform(value: number | null | undefined, pluralMap: {
+        [count: string]: string;
+    }, locale?: string): string;
+    static ɵfac: i0.ɵɵFactoryDeclaration<I18nPluralPipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<I18nPluralPipe, "i18nPlural", true>;
+}
+
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Generic selector that displays the string that matches the current value.
+ *
+ * If none of the keys of the `mapping` match the `value`, then the content
+ * of the `other` key is returned when present, otherwise an empty string is returned.
+ *
+ * @usageNotes
+ *
+ * ### Example
+ *
+ * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}
+ *
+ * @publicApi
+ */
+declare class I18nSelectPipe implements PipeTransform {
+    /**
+     * @param value a string to be internationalized.
+     * @param mapping an object that indicates the text that should be displayed
+     * for different values of the provided `value`.
+     */
+    transform(value: string | null | undefined, mapping: {
+        [key: string]: string;
+    }): string;
+    static ɵfac: i0.ɵɵFactoryDeclaration<I18nSelectPipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<I18nSelectPipe, "i18nSelect", true>;
+}
+
+/**
+ * A key value pair.
+ * Usually used to represent the key value pairs from a Map or Object.
+ *
+ * @publicApi
+ */
+interface KeyValue<K, V> {
+    key: K;
+    value: V;
+}
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Transforms Object or Map into an array of key value pairs.
+ *
+ * The output array will be ordered by keys.
+ * By default the comparator will be by Unicode point value.
+ * You can optionally pass a compareFn if your keys are complex types.
+ * Passing `null` as the compareFn will use natural ordering of the input.
+ *
+ * @usageNotes
+ * ### Examples
+ *
+ * This examples show how an Object or a Map can be iterated by ngFor with the use of this
+ * keyvalue pipe.
+ *
+ * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}
+ *
+ * @publicApi
+ */
+declare class KeyValuePipe implements PipeTransform {
+    private readonly differs;
+    constructor(differs: KeyValueDiffers);
+    private differ;
+    private keyValues;
+    private compareFn;
+    transform<K, V>(input: ReadonlyMap<K, V>, compareFn?: ((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null): Array<KeyValue<K, V>>;
+    transform<K extends number, V>(input: Record<K, V>, compareFn?: ((a: KeyValue<string, V>, b: KeyValue<string, V>) => number) | null): Array<KeyValue<string, V>>;
+    transform<K extends string, V>(input: Record<K, V> | ReadonlyMap<K, V>, compareFn?: ((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null): Array<KeyValue<K, V>>;
+    transform(input: null | undefined, compareFn?: ((a: KeyValue<unknown, unknown>, b: KeyValue<unknown, unknown>) => number) | null): null;
+    transform<K, V>(input: ReadonlyMap<K, V> | null | undefined, compareFn?: ((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null): Array<KeyValue<K, V>> | null;
+    transform<K extends number, V>(input: Record<K, V> | null | undefined, compareFn?: ((a: KeyValue<string, V>, b: KeyValue<string, V>) => number) | null): Array<KeyValue<string, V>> | null;
+    transform<K extends string, V>(input: Record<K, V> | ReadonlyMap<K, V> | null | undefined, compareFn?: ((a: KeyValue<K, V>, b: KeyValue<K, V>) => number) | null): Array<KeyValue<K, V>> | null;
+    static ɵfac: i0.ɵɵFactoryDeclaration<KeyValuePipe, never>;
+    static ɵpipe: i0.ɵɵPipeDeclaration<KeyValuePipe, "keyvalue", true>;
+}
+
+/**
+ * Exports all the basic Angular directives and pipes,
+ * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
+ * Re-exported by `BrowserModule`, which is included automatically in the root
+ * `AppModule` when you create a new app with the CLI `new` command.
+ *
+ * @publicApi
+ */
+declare class CommonModule {
+    static ɵfac: i0.ɵɵFactoryDeclaration<CommonModule, never>;
+    static ɵmod: i0.ɵɵNgModuleDeclaration<CommonModule, never, [typeof NgClass, typeof NgComponentOutlet, typeof NgForOf, typeof NgIf, typeof NgTemplateOutlet, typeof NgStyle, typeof NgSwitch, typeof NgSwitchCase, typeof NgSwitchDefault, typeof NgPlural, typeof NgPluralCase, typeof AsyncPipe, typeof UpperCasePipe, typeof LowerCasePipe, typeof JsonPipe, typeof SlicePipe, typeof DecimalPipe, typeof PercentPipe, typeof TitleCasePipe, typeof CurrencyPipe, typeof DatePipe, typeof I18nPluralPipe, typeof I18nSelectPipe, typeof KeyValuePipe], [typeof NgClass, typeof NgComponentOutlet, typeof NgForOf, typeof NgIf, typeof NgTemplateOutlet, typeof NgStyle, typeof NgSwitch, typeof NgSwitchCase, typeof NgSwitchDefault, typeof NgPlural, typeof NgPluralCase, typeof AsyncPipe, typeof UpperCasePipe, typeof LowerCasePipe, typeof JsonPipe, typeof SlicePipe, typeof DecimalPipe, typeof PercentPipe, typeof TitleCasePipe, typeof CurrencyPipe, typeof DatePipe, typeof I18nPluralPipe, typeof I18nSelectPipe, typeof KeyValuePipe]>;
+    static ɵinj: i0.ɵɵInjectorDeclaration<CommonModule>;
+}
+
+export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, PathLocationStrategy, PercentPipe, SlicePipe, TitleCasePipe, UpperCasePipe };
+export type { DatePipeConfig, KeyValue, PopStateEvent };

+ 2047 - 0
node_modules/@angular/common/fesm2022/common.mjs

@@ -0,0 +1,2047 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+export { AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PercentPipe, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, WeekDay, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits } from './common_module.mjs';
+import * as i0 from '@angular/core';
+import { ɵregisterLocaleData as _registerLocaleData, Version, ɵɵdefineInjectable as __defineInjectable, inject, DOCUMENT, ɵformatRuntimeError as _formatRuntimeError, InjectionToken, ɵRuntimeError as _RuntimeError, Injectable, ɵIMAGE_CONFIG as _IMAGE_CONFIG, Renderer2, ElementRef, Injector, DestroyRef, ɵperformanceMarkFeature as _performanceMarkFeature, NgZone, ApplicationRef, numberAttribute, booleanAttribute, Directive, Input, ɵIMAGE_CONFIG_DEFAULTS as _IMAGE_CONFIG_DEFAULTS, ɵunwrapSafeValue as _unwrapSafeValue, ChangeDetectorRef } from '@angular/core';
+export { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG } from '@angular/core';
+export { XhrFactory, parseCookieValue as ɵparseCookieValue } from './xhr.mjs';
+export { APP_BASE_HREF, BrowserPlatformLocation, LOCATION_INITIALIZED, Location, LocationStrategy, PathLocationStrategy, PlatformLocation, DomAdapter as ɵDomAdapter, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, setRootDomAdapter as ɵsetRootDomAdapter } from './location.mjs';
+export { PlatformNavigation as ɵPlatformNavigation } from './platform_navigation.mjs';
+import 'rxjs';
+
+/**
+ * Register global data to be used internally by Angular. See the
+ * ["I18n guide"](guide/i18n/format-data-locale) to know how to import additional locale
+ * data.
+ *
+ * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1
+ *
+ * @publicApi
+ */
+function registerLocaleData(data, localeId, extraData) {
+    return _registerLocaleData(data, localeId, extraData);
+}
+
+const PLATFORM_BROWSER_ID = 'browser';
+const PLATFORM_SERVER_ID = 'server';
+/**
+ * Returns whether a platform id represents a browser platform.
+ * @publicApi
+ */
+function isPlatformBrowser(platformId) {
+    return platformId === PLATFORM_BROWSER_ID;
+}
+/**
+ * Returns whether a platform id represents a server platform.
+ * @publicApi
+ */
+function isPlatformServer(platformId) {
+    return platformId === PLATFORM_SERVER_ID;
+}
+
+/**
+ * @module
+ * @description
+ * Entry point for all public APIs of the common package.
+ */
+/**
+ * @publicApi
+ */
+const VERSION = new Version('20.1.0');
+
+/**
+ * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
+ *
+ * @publicApi
+ */
+class ViewportScroller {
+    // De-sugared tree-shakable injection
+    // See #23917
+    /** @nocollapse */
+    static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ __defineInjectable({
+        token: ViewportScroller,
+        providedIn: 'root',
+        factory: () => typeof ngServerMode !== 'undefined' && ngServerMode
+            ? new NullViewportScroller()
+            : new BrowserViewportScroller(inject(DOCUMENT), window),
+    });
+}
+/**
+ * Manages the scroll position for a browser window.
+ */
+class BrowserViewportScroller {
+    document;
+    window;
+    offset = () => [0, 0];
+    constructor(document, window) {
+        this.document = document;
+        this.window = window;
+    }
+    /**
+     * Configures the top offset used when scrolling to an anchor.
+     * @param offset A position in screen coordinates (a tuple with x and y values)
+     * or a function that returns the top offset position.
+     *
+     */
+    setOffset(offset) {
+        if (Array.isArray(offset)) {
+            this.offset = () => offset;
+        }
+        else {
+            this.offset = offset;
+        }
+    }
+    /**
+     * Retrieves the current scroll position.
+     * @returns The position in screen coordinates.
+     */
+    getScrollPosition() {
+        return [this.window.scrollX, this.window.scrollY];
+    }
+    /**
+     * Sets the scroll position.
+     * @param position The new position in screen coordinates.
+     */
+    scrollToPosition(position, options) {
+        this.window.scrollTo({ ...options, left: position[0], top: position[1] });
+    }
+    /**
+     * Scrolls to an element and attempts to focus the element.
+     *
+     * Note that the function name here is misleading in that the target string may be an ID for a
+     * non-anchor element.
+     *
+     * @param target The ID of an element or name of the anchor.
+     *
+     * @see https://html.spec.whatwg.org/#the-indicated-part-of-the-document
+     * @see https://html.spec.whatwg.org/#scroll-to-fragid
+     */
+    scrollToAnchor(target, options) {
+        const elSelected = findAnchorFromDocument(this.document, target);
+        if (elSelected) {
+            this.scrollToElement(elSelected, options);
+            // After scrolling to the element, the spec dictates that we follow the focus steps for the
+            // target. Rather than following the robust steps, simply attempt focus.
+            //
+            // @see https://html.spec.whatwg.org/#get-the-focusable-area
+            // @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLOrForeignElement/focus
+            // @see https://html.spec.whatwg.org/#focusable-area
+            elSelected.focus();
+        }
+    }
+    /**
+     * Disables automatic scroll restoration provided by the browser.
+     */
+    setHistoryScrollRestoration(scrollRestoration) {
+        try {
+            this.window.history.scrollRestoration = scrollRestoration;
+        }
+        catch {
+            console.warn(_formatRuntimeError(2400 /* RuntimeErrorCode.SCROLL_RESTORATION_UNSUPPORTED */, ngDevMode &&
+                'Failed to set `window.history.scrollRestoration`. ' +
+                    'This may occur when:\n' +
+                    '• The script is running inside a sandboxed iframe\n' +
+                    '• The window is partially navigated or inactive\n' +
+                    '• The script is executed in an untrusted or special context (e.g., test runners, browser extensions, or content previews)\n' +
+                    'Scroll position may not be preserved across navigation.'));
+        }
+    }
+    /**
+     * Scrolls to an element using the native offset and the specified offset set on this scroller.
+     *
+     * The offset can be used when we know that there is a floating header and scrolling naively to an
+     * element (ex: `scrollIntoView`) leaves the element hidden behind the floating header.
+     */
+    scrollToElement(el, options) {
+        const rect = el.getBoundingClientRect();
+        const left = rect.left + this.window.pageXOffset;
+        const top = rect.top + this.window.pageYOffset;
+        const offset = this.offset();
+        this.window.scrollTo({
+            ...options,
+            left: left - offset[0],
+            top: top - offset[1],
+        });
+    }
+}
+function findAnchorFromDocument(document, target) {
+    const documentResult = document.getElementById(target) || document.getElementsByName(target)[0];
+    if (documentResult) {
+        return documentResult;
+    }
+    // `getElementById` and `getElementsByName` won't pierce through the shadow DOM so we
+    // have to traverse the DOM manually and do the lookup through the shadow roots.
+    if (typeof document.createTreeWalker === 'function' &&
+        document.body &&
+        typeof document.body.attachShadow === 'function') {
+        const treeWalker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);
+        let currentNode = treeWalker.currentNode;
+        while (currentNode) {
+            const shadowRoot = currentNode.shadowRoot;
+            if (shadowRoot) {
+                // Note that `ShadowRoot` doesn't support `getElementsByName`
+                // so we have to fall back to `querySelector`.
+                const result = shadowRoot.getElementById(target) || shadowRoot.querySelector(`[name="${target}"]`);
+                if (result) {
+                    return result;
+                }
+            }
+            currentNode = treeWalker.nextNode();
+        }
+    }
+    return null;
+}
+/**
+ * Provides an empty implementation of the viewport scroller.
+ */
+class NullViewportScroller {
+    /**
+     * Empty implementation
+     */
+    setOffset(offset) { }
+    /**
+     * Empty implementation
+     */
+    getScrollPosition() {
+        return [0, 0];
+    }
+    /**
+     * Empty implementation
+     */
+    scrollToPosition(position) { }
+    /**
+     * Empty implementation
+     */
+    scrollToAnchor(anchor) { }
+    /**
+     * Empty implementation
+     */
+    setHistoryScrollRestoration(scrollRestoration) { }
+}
+
+/**
+ * Value (out of 100) of the requested quality for placeholder images.
+ */
+const PLACEHOLDER_QUALITY = '20';
+
+// Converts a string that represents a URL into a URL class instance.
+function getUrl(src, win) {
+    // Don't use a base URL is the URL is absolute.
+    return isAbsoluteUrl(src) ? new URL(src) : new URL(src, win.location.href);
+}
+// Checks whether a URL is absolute (i.e. starts with `http://` or `https://`).
+function isAbsoluteUrl(src) {
+    return /^https?:\/\//.test(src);
+}
+// Given a URL, extract the hostname part.
+// If a URL is a relative one - the URL is returned as is.
+function extractHostname(url) {
+    return isAbsoluteUrl(url) ? new URL(url).hostname : url;
+}
+function isValidPath(path) {
+    const isString = typeof path === 'string';
+    if (!isString || path.trim() === '') {
+        return false;
+    }
+    // Calling new URL() will throw if the path string is malformed
+    try {
+        const url = new URL(path);
+        return true;
+    }
+    catch {
+        return false;
+    }
+}
+function normalizePath(path) {
+    return path.endsWith('/') ? path.slice(0, -1) : path;
+}
+function normalizeSrc(src) {
+    return src.startsWith('/') ? src.slice(1) : src;
+}
+
+/**
+ * Noop image loader that does no transformation to the original src and just returns it as is.
+ * This loader is used as a default one if more specific logic is not provided in an app config.
+ *
+ * @see {@link ImageLoader}
+ * @see {@link NgOptimizedImage}
+ */
+const noopImageLoader = (config) => config.src;
+/**
+ * Injection token that configures the image loader function.
+ *
+ * @see {@link ImageLoader}
+ * @see {@link NgOptimizedImage}
+ * @publicApi
+ */
+const IMAGE_LOADER = new InjectionToken(ngDevMode ? 'ImageLoader' : '', {
+    providedIn: 'root',
+    factory: () => noopImageLoader,
+});
+/**
+ * Internal helper function that makes it easier to introduce custom image loaders for the
+ * `NgOptimizedImage` directive. It is enough to specify a URL builder function to obtain full DI
+ * configuration for a given loader: a DI token corresponding to the actual loader function, plus DI
+ * tokens managing preconnect check functionality.
+ * @param buildUrlFn a function returning a full URL based on loader's configuration
+ * @param exampleUrls example of full URLs for a given loader (used in error messages)
+ * @returns a set of DI providers corresponding to the configured image loader
+ */
+function createImageLoader(buildUrlFn, exampleUrls) {
+    return function provideImageLoader(path) {
+        if (!isValidPath(path)) {
+            throwInvalidPathError(path, exampleUrls || []);
+        }
+        // The trailing / is stripped (if provided) to make URL construction (concatenation) easier in
+        // the individual loader functions.
+        path = normalizePath(path);
+        const loaderFn = (config) => {
+            if (isAbsoluteUrl(config.src)) {
+                // Image loader functions expect an image file name (e.g. `my-image.png`)
+                // or a relative path + a file name (e.g. `/a/b/c/my-image.png`) as an input,
+                // so the final absolute URL can be constructed.
+                // When an absolute URL is provided instead - the loader can not
+                // build a final URL, thus the error is thrown to indicate that.
+                throwUnexpectedAbsoluteUrlError(path, config.src);
+            }
+            return buildUrlFn(path, { ...config, src: normalizeSrc(config.src) });
+        };
+        const providers = [{ provide: IMAGE_LOADER, useValue: loaderFn }];
+        return providers;
+    };
+}
+function throwInvalidPathError(path, exampleUrls) {
+    throw new _RuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode &&
+        `Image loader has detected an invalid path (\`${path}\`). ` +
+            `To fix this, supply a path using one of the following formats: ${exampleUrls.join(' or ')}`);
+}
+function throwUnexpectedAbsoluteUrlError(path, url) {
+    throw new _RuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode &&
+        `Image loader has detected a \`<img>\` tag with an invalid \`ngSrc\` attribute: ${url}. ` +
+            `This image loader expects \`ngSrc\` to be a relative URL - ` +
+            `however the provided value is an absolute URL. ` +
+            `To fix this, provide \`ngSrc\` as a path relative to the base URL ` +
+            `configured for this loader (\`${path}\`).`);
+}
+
+/**
+ * Function that generates an ImageLoader for [Cloudflare Image
+ * Resizing](https://developers.cloudflare.com/images/image-resizing/) and turns it into an Angular
+ * provider. Note: Cloudflare has multiple image products - this provider is specifically for
+ * Cloudflare Image Resizing; it will not work with Cloudflare Images or Cloudflare Polish.
+ *
+ * @param path Your domain name, e.g. https://mysite.com
+ * @returns Provider that provides an ImageLoader function
+ *
+ * @publicApi
+ */
+const provideCloudflareLoader = createImageLoader(createCloudflareUrl, ngDevMode ? ['https://<ZONE>/cdn-cgi/image/<OPTIONS>/<SOURCE-IMAGE>'] : undefined);
+function createCloudflareUrl(path, config) {
+    let params = `format=auto`;
+    if (config.width) {
+        params += `,width=${config.width}`;
+    }
+    // When requesting a placeholder image we ask for a low quality image to reduce the load time.
+    if (config.isPlaceholder) {
+        params += `,quality=${PLACEHOLDER_QUALITY}`;
+    }
+    // Cloudflare image URLs format:
+    // https://developers.cloudflare.com/images/image-resizing/url-format/
+    return `${path}/cdn-cgi/image/${params}/${config.src}`;
+}
+
+/**
+ * Name and URL tester for Cloudinary.
+ */
+const cloudinaryLoaderInfo = {
+    name: 'Cloudinary',
+    testUrl: isCloudinaryUrl,
+};
+const CLOUDINARY_LOADER_REGEX = /https?\:\/\/[^\/]+\.cloudinary\.com\/.+/;
+/**
+ * Tests whether a URL is from Cloudinary CDN.
+ */
+function isCloudinaryUrl(url) {
+    return CLOUDINARY_LOADER_REGEX.test(url);
+}
+/**
+ * Function that generates an ImageLoader for Cloudinary and turns it into an Angular provider.
+ *
+ * @param path Base URL of your Cloudinary images
+ * This URL should match one of the following formats:
+ * https://res.cloudinary.com/mysite
+ * https://mysite.cloudinary.com
+ * https://subdomain.mysite.com
+ * @returns Set of providers to configure the Cloudinary loader.
+ *
+ * @publicApi
+ */
+const provideCloudinaryLoader = createImageLoader(createCloudinaryUrl, ngDevMode
+    ? [
+        'https://res.cloudinary.com/mysite',
+        'https://mysite.cloudinary.com',
+        'https://subdomain.mysite.com',
+    ]
+    : undefined);
+function createCloudinaryUrl(path, config) {
+    // Cloudinary image URLformat:
+    // https://cloudinary.com/documentation/image_transformations#transformation_url_structure
+    // Example of a Cloudinary image URL:
+    // https://res.cloudinary.com/mysite/image/upload/c_scale,f_auto,q_auto,w_600/marketing/tile-topics-m.png
+    // For a placeholder image, we use the lowest image setting available to reduce the load time
+    // else we use the auto size
+    const quality = config.isPlaceholder ? 'q_auto:low' : 'q_auto';
+    let params = `f_auto,${quality}`;
+    if (config.width) {
+        params += `,w_${config.width}`;
+    }
+    if (config.loaderParams?.['rounded']) {
+        params += `,r_max`;
+    }
+    return `${path}/image/upload/${params}/${config.src}`;
+}
+
+/**
+ * Name and URL tester for ImageKit.
+ */
+const imageKitLoaderInfo = {
+    name: 'ImageKit',
+    testUrl: isImageKitUrl,
+};
+const IMAGE_KIT_LOADER_REGEX = /https?\:\/\/[^\/]+\.imagekit\.io\/.+/;
+/**
+ * Tests whether a URL is from ImageKit CDN.
+ */
+function isImageKitUrl(url) {
+    return IMAGE_KIT_LOADER_REGEX.test(url);
+}
+/**
+ * Function that generates an ImageLoader for ImageKit and turns it into an Angular provider.
+ *
+ * @param path Base URL of your ImageKit images
+ * This URL should match one of the following formats:
+ * https://ik.imagekit.io/myaccount
+ * https://subdomain.mysite.com
+ * @returns Set of providers to configure the ImageKit loader.
+ *
+ * @publicApi
+ */
+const provideImageKitLoader = createImageLoader(createImagekitUrl, ngDevMode ? ['https://ik.imagekit.io/mysite', 'https://subdomain.mysite.com'] : undefined);
+function createImagekitUrl(path, config) {
+    // Example of an ImageKit image URL:
+    // https://ik.imagekit.io/demo/tr:w-300,h-300/medium_cafe_B1iTdD0C.jpg
+    const { src, width } = config;
+    const params = [];
+    if (width) {
+        params.push(`w-${width}`);
+    }
+    // When requesting a placeholder image we ask for a low quality image to reduce the load time.
+    if (config.isPlaceholder) {
+        params.push(`q-${PLACEHOLDER_QUALITY}`);
+    }
+    const urlSegments = params.length ? [path, `tr:${params.join(',')}`, src] : [path, src];
+    const url = new URL(urlSegments.join('/'));
+    return url.href;
+}
+
+/**
+ * Name and URL tester for Imgix.
+ */
+const imgixLoaderInfo = {
+    name: 'Imgix',
+    testUrl: isImgixUrl,
+};
+const IMGIX_LOADER_REGEX = /https?\:\/\/[^\/]+\.imgix\.net\/.+/;
+/**
+ * Tests whether a URL is from Imgix CDN.
+ */
+function isImgixUrl(url) {
+    return IMGIX_LOADER_REGEX.test(url);
+}
+/**
+ * Function that generates an ImageLoader for Imgix and turns it into an Angular provider.
+ *
+ * @param path path to the desired Imgix origin,
+ * e.g. https://somepath.imgix.net or https://images.mysite.com
+ * @returns Set of providers to configure the Imgix loader.
+ *
+ * @publicApi
+ */
+const provideImgixLoader = createImageLoader(createImgixUrl, ngDevMode ? ['https://somepath.imgix.net/'] : undefined);
+function createImgixUrl(path, config) {
+    const url = new URL(`${path}/${config.src}`);
+    // This setting ensures the smallest allowable format is set.
+    url.searchParams.set('auto', 'format');
+    if (config.width) {
+        url.searchParams.set('w', config.width.toString());
+    }
+    // When requesting a placeholder image we ask a low quality image to reduce the load time.
+    if (config.isPlaceholder) {
+        url.searchParams.set('q', PLACEHOLDER_QUALITY);
+    }
+    return url.href;
+}
+
+/**
+ * Name and URL tester for Netlify.
+ */
+const netlifyLoaderInfo = {
+    name: 'Netlify',
+    testUrl: isNetlifyUrl,
+};
+const NETLIFY_LOADER_REGEX = /https?\:\/\/[^\/]+\.netlify\.app\/.+/;
+/**
+ * Tests whether a URL is from a Netlify site. This won't catch sites with a custom domain,
+ * but it's a good start for sites in development. This is only used to warn users who haven't
+ * configured an image loader.
+ */
+function isNetlifyUrl(url) {
+    return NETLIFY_LOADER_REGEX.test(url);
+}
+/**
+ * Function that generates an ImageLoader for Netlify and turns it into an Angular provider.
+ *
+ * @param path optional URL of the desired Netlify site. Defaults to the current site.
+ * @returns Set of providers to configure the Netlify loader.
+ *
+ * @publicApi
+ */
+function provideNetlifyLoader(path) {
+    if (path && !isValidPath(path)) {
+        throw new _RuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, ngDevMode &&
+            `Image loader has detected an invalid path (\`${path}\`). ` +
+                `To fix this, supply either the full URL to the Netlify site, or leave it empty to use the current site.`);
+    }
+    if (path) {
+        const url = new URL(path);
+        path = url.origin;
+    }
+    const loaderFn = (config) => {
+        return createNetlifyUrl(config, path);
+    };
+    const providers = [{ provide: IMAGE_LOADER, useValue: loaderFn }];
+    return providers;
+}
+const validParams = new Map([
+    ['height', 'h'],
+    ['fit', 'fit'],
+    ['quality', 'q'],
+    ['q', 'q'],
+    ['position', 'position'],
+]);
+function createNetlifyUrl(config, path) {
+    // Note: `path` can be undefined, in which case we use a fake one to construct a `URL` instance.
+    const url = new URL(path ?? 'https://a/');
+    url.pathname = '/.netlify/images';
+    if (!isAbsoluteUrl(config.src) && !config.src.startsWith('/')) {
+        config.src = '/' + config.src;
+    }
+    url.searchParams.set('url', config.src);
+    if (config.width) {
+        url.searchParams.set('w', config.width.toString());
+    }
+    // When requesting a placeholder image we ask for a low quality image to reduce the load time.
+    // If the quality is specified in the loader config - always use provided value.
+    const configQuality = config.loaderParams?.['quality'] ?? config.loaderParams?.['q'];
+    if (config.isPlaceholder && !configQuality) {
+        url.searchParams.set('q', PLACEHOLDER_QUALITY);
+    }
+    for (const [param, value] of Object.entries(config.loaderParams ?? {})) {
+        if (validParams.has(param)) {
+            url.searchParams.set(validParams.get(param), value.toString());
+        }
+        else {
+            if (ngDevMode) {
+                console.warn(_formatRuntimeError(2959 /* RuntimeErrorCode.INVALID_LOADER_ARGUMENTS */, `The Netlify image loader has detected an \`<img>\` tag with the unsupported attribute "\`${param}\`".`));
+            }
+        }
+    }
+    // The "a" hostname is used for relative URLs, so we can remove it from the final URL.
+    return url.hostname === 'a' ? url.href.replace(url.origin, '') : url.href;
+}
+
+// Assembles directive details string, useful for error messages.
+function imgDirectiveDetails(ngSrc, includeNgSrc = true) {
+    const ngSrcInfo = includeNgSrc
+        ? `(activated on an <img> element with the \`ngSrc="${ngSrc}"\`) `
+        : '';
+    return `The NgOptimizedImage directive ${ngSrcInfo}has detected that`;
+}
+
+/**
+ * Asserts that the application is in development mode. Throws an error if the application is in
+ * production mode. This assert can be used to make sure that there is no dev-mode code invoked in
+ * the prod mode accidentally.
+ */
+function assertDevMode(checkName) {
+    if (!ngDevMode) {
+        throw new _RuntimeError(2958 /* RuntimeErrorCode.UNEXPECTED_DEV_MODE_CHECK_IN_PROD_MODE */, `Unexpected invocation of the ${checkName} in the prod mode. ` +
+            `Please make sure that the prod mode is enabled for production builds.`);
+    }
+}
+
+/**
+ * Observer that detects whether an image with `NgOptimizedImage`
+ * is treated as a Largest Contentful Paint (LCP) element. If so,
+ * asserts that the image has the `priority` attribute.
+ *
+ * Note: this is a dev-mode only class and it does not appear in prod bundles,
+ * thus there is no `ngDevMode` use in the code.
+ *
+ * Based on https://web.dev/lcp/#measure-lcp-in-javascript.
+ */
+class LCPImageObserver {
+    // Map of full image URLs -> original `ngSrc` values.
+    images = new Map();
+    window = inject(DOCUMENT).defaultView;
+    observer = null;
+    constructor() {
+        assertDevMode('LCP checker');
+        if ((typeof ngServerMode === 'undefined' || !ngServerMode) &&
+            typeof PerformanceObserver !== 'undefined') {
+            this.observer = this.initPerformanceObserver();
+        }
+    }
+    /**
+     * Inits PerformanceObserver and subscribes to LCP events.
+     * Based on https://web.dev/lcp/#measure-lcp-in-javascript
+     */
+    initPerformanceObserver() {
+        const observer = new PerformanceObserver((entryList) => {
+            const entries = entryList.getEntries();
+            if (entries.length === 0)
+                return;
+            // We use the latest entry produced by the `PerformanceObserver` as the best
+            // signal on which element is actually an LCP one. As an example, the first image to load on
+            // a page, by virtue of being the only thing on the page so far, is often a LCP candidate
+            // and gets reported by PerformanceObserver, but isn't necessarily the LCP element.
+            const lcpElement = entries[entries.length - 1];
+            // Cast to `any` due to missing `element` on the `LargestContentfulPaint` type of entry.
+            // See https://developer.mozilla.org/en-US/docs/Web/API/LargestContentfulPaint
+            const imgSrc = lcpElement.element?.src ?? '';
+            // Exclude `data:` and `blob:` URLs, since they are not supported by the directive.
+            if (imgSrc.startsWith('data:') || imgSrc.startsWith('blob:'))
+                return;
+            const img = this.images.get(imgSrc);
+            if (!img)
+                return;
+            if (!img.priority && !img.alreadyWarnedPriority) {
+                img.alreadyWarnedPriority = true;
+                logMissingPriorityError(imgSrc);
+            }
+            if (img.modified && !img.alreadyWarnedModified) {
+                img.alreadyWarnedModified = true;
+                logModifiedWarning(imgSrc);
+            }
+        });
+        observer.observe({ type: 'largest-contentful-paint', buffered: true });
+        return observer;
+    }
+    registerImage(rewrittenSrc, originalNgSrc, isPriority) {
+        if (!this.observer)
+            return;
+        const newObservedImageState = {
+            priority: isPriority,
+            modified: false,
+            alreadyWarnedModified: false,
+            alreadyWarnedPriority: false,
+        };
+        this.images.set(getUrl(rewrittenSrc, this.window).href, newObservedImageState);
+    }
+    unregisterImage(rewrittenSrc) {
+        if (!this.observer)
+            return;
+        this.images.delete(getUrl(rewrittenSrc, this.window).href);
+    }
+    updateImage(originalSrc, newSrc) {
+        if (!this.observer)
+            return;
+        const originalUrl = getUrl(originalSrc, this.window).href;
+        const img = this.images.get(originalUrl);
+        if (img) {
+            img.modified = true;
+            this.images.set(getUrl(newSrc, this.window).href, img);
+            this.images.delete(originalUrl);
+        }
+    }
+    ngOnDestroy() {
+        if (!this.observer)
+            return;
+        this.observer.disconnect();
+        this.images.clear();
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LCPImageObserver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LCPImageObserver, providedIn: 'root' });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LCPImageObserver, decorators: [{
+            type: Injectable,
+            args: [{ providedIn: 'root' }]
+        }], ctorParameters: () => [] });
+function logMissingPriorityError(ngSrc) {
+    const directiveDetails = imgDirectiveDetails(ngSrc);
+    console.error(_formatRuntimeError(2955 /* RuntimeErrorCode.LCP_IMG_MISSING_PRIORITY */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +
+        `element but was not marked "priority". This image should be marked ` +
+        `"priority" in order to prioritize its loading. ` +
+        `To fix this, add the "priority" attribute.`));
+}
+function logModifiedWarning(ngSrc) {
+    const directiveDetails = imgDirectiveDetails(ngSrc);
+    console.warn(_formatRuntimeError(2964 /* RuntimeErrorCode.LCP_IMG_NGSRC_MODIFIED */, `${directiveDetails} this image is the Largest Contentful Paint (LCP) ` +
+        `element and has had its "ngSrc" attribute modified. This can cause ` +
+        `slower loading performance. It is recommended not to modify the "ngSrc" ` +
+        `property on any image which could be the LCP element.`));
+}
+
+// Set of origins that are always excluded from the preconnect checks.
+const INTERNAL_PRECONNECT_CHECK_BLOCKLIST = new Set(['localhost', '127.0.0.1', '0.0.0.0']);
+/**
+ * Injection token to configure which origins should be excluded
+ * from the preconnect checks. It can either be a single string or an array of strings
+ * to represent a group of origins, for example:
+ *
+ * ```ts
+ *  {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}
+ * ```
+ *
+ * or:
+ *
+ * ```ts
+ *  {provide: PRECONNECT_CHECK_BLOCKLIST,
+ *   useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']}
+ * ```
+ *
+ * @publicApi
+ */
+const PRECONNECT_CHECK_BLOCKLIST = new InjectionToken(ngDevMode ? 'PRECONNECT_CHECK_BLOCKLIST' : '');
+/**
+ * Contains the logic to detect whether an image, marked with the "priority" attribute
+ * has a corresponding `<link rel="preconnect">` tag in the `document.head`.
+ *
+ * Note: this is a dev-mode only class, which should not appear in prod bundles,
+ * thus there is no `ngDevMode` use in the code.
+ */
+class PreconnectLinkChecker {
+    document = inject(DOCUMENT);
+    /**
+     * Set of <link rel="preconnect"> tags found on this page.
+     * The `null` value indicates that there was no DOM query operation performed.
+     */
+    preconnectLinks = null;
+    /*
+     * Keep track of all already seen origin URLs to avoid repeating the same check.
+     */
+    alreadySeen = new Set();
+    window = this.document.defaultView;
+    blocklist = new Set(INTERNAL_PRECONNECT_CHECK_BLOCKLIST);
+    constructor() {
+        assertDevMode('preconnect link checker');
+        const blocklist = inject(PRECONNECT_CHECK_BLOCKLIST, { optional: true });
+        if (blocklist) {
+            this.populateBlocklist(blocklist);
+        }
+    }
+    populateBlocklist(origins) {
+        if (Array.isArray(origins)) {
+            deepForEach(origins, (origin) => {
+                this.blocklist.add(extractHostname(origin));
+            });
+        }
+        else {
+            this.blocklist.add(extractHostname(origins));
+        }
+    }
+    /**
+     * Checks that a preconnect resource hint exists in the head for the
+     * given src.
+     *
+     * @param rewrittenSrc src formatted with loader
+     * @param originalNgSrc ngSrc value
+     */
+    assertPreconnect(rewrittenSrc, originalNgSrc) {
+        if (typeof ngServerMode !== 'undefined' && ngServerMode)
+            return;
+        const imgUrl = getUrl(rewrittenSrc, this.window);
+        if (this.blocklist.has(imgUrl.hostname) || this.alreadySeen.has(imgUrl.origin))
+            return;
+        // Register this origin as seen, so we don't check it again later.
+        this.alreadySeen.add(imgUrl.origin);
+        // Note: we query for preconnect links only *once* and cache the results
+        // for the entire lifespan of an application, since it's unlikely that the
+        // list would change frequently. This allows to make sure there are no
+        // performance implications of making extra DOM lookups for each image.
+        this.preconnectLinks ??= this.queryPreconnectLinks();
+        if (!this.preconnectLinks.has(imgUrl.origin)) {
+            console.warn(_formatRuntimeError(2956 /* RuntimeErrorCode.PRIORITY_IMG_MISSING_PRECONNECT_TAG */, `${imgDirectiveDetails(originalNgSrc)} there is no preconnect tag present for this ` +
+                `image. Preconnecting to the origin(s) that serve priority images ensures that these ` +
+                `images are delivered as soon as possible. To fix this, please add the following ` +
+                `element into the <head> of the document:\n` +
+                `  <link rel="preconnect" href="${imgUrl.origin}">`));
+        }
+    }
+    queryPreconnectLinks() {
+        const preconnectUrls = new Set();
+        const links = this.document.querySelectorAll('link[rel=preconnect]');
+        for (const link of links) {
+            const url = getUrl(link.href, this.window);
+            preconnectUrls.add(url.origin);
+        }
+        return preconnectUrls;
+    }
+    ngOnDestroy() {
+        this.preconnectLinks?.clear();
+        this.alreadySeen.clear();
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreconnectLinkChecker, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreconnectLinkChecker, providedIn: 'root' });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreconnectLinkChecker, decorators: [{
+            type: Injectable,
+            args: [{ providedIn: 'root' }]
+        }], ctorParameters: () => [] });
+/**
+ * Invokes a callback for each element in the array. Also invokes a callback
+ * recursively for each nested array.
+ */
+function deepForEach(input, fn) {
+    for (let value of input) {
+        Array.isArray(value) ? deepForEach(value, fn) : fn(value);
+    }
+}
+
+/**
+ * In SSR scenarios, a preload `<link>` element is generated for priority images.
+ * Having a large number of preload tags may negatively affect the performance,
+ * so we warn developers (by throwing an error) if the number of preloaded images
+ * is above a certain threshold. This const specifies this threshold.
+ */
+const DEFAULT_PRELOADED_IMAGES_LIMIT = 5;
+/**
+ * Helps to keep track of priority images that already have a corresponding
+ * preload tag (to avoid generating multiple preload tags with the same URL).
+ *
+ * This Set tracks the original src passed into the `ngSrc` input not the src after it has been
+ * run through the specified `IMAGE_LOADER`.
+ */
+const PRELOADED_IMAGES = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'NG_OPTIMIZED_PRELOADED_IMAGES' : '', {
+    providedIn: 'root',
+    factory: () => new Set(),
+});
+
+/**
+ * @description Contains the logic needed to track and add preload link tags to the `<head>` tag. It
+ * will also track what images have already had preload link tags added so as to not duplicate link
+ * tags.
+ *
+ * In dev mode this service will validate that the number of preloaded images does not exceed the
+ * configured default preloaded images limit: {@link DEFAULT_PRELOADED_IMAGES_LIMIT}.
+ */
+class PreloadLinkCreator {
+    preloadedImages = inject(PRELOADED_IMAGES);
+    document = inject(DOCUMENT);
+    errorShown = false;
+    /**
+     * @description Add a preload `<link>` to the `<head>` of the `index.html` that is served from the
+     * server while using Angular Universal and SSR to kick off image loads for high priority images.
+     *
+     * The `sizes` (passed in from the user) and `srcset` (parsed and formatted from `ngSrcset`)
+     * properties used to set the corresponding attributes, `imagesizes` and `imagesrcset`
+     * respectively, on the preload `<link>` tag so that the correctly sized image is preloaded from
+     * the CDN.
+     *
+     * {@link https://web.dev/preload-responsive-images/#imagesrcset-and-imagesizes}
+     *
+     * @param renderer The `Renderer2` passed in from the directive
+     * @param src The original src of the image that is set on the `ngSrc` input.
+     * @param srcset The parsed and formatted srcset created from the `ngSrcset` input
+     * @param sizes The value of the `sizes` attribute passed in to the `<img>` tag
+     */
+    createPreloadLinkTag(renderer, src, srcset, sizes) {
+        if (ngDevMode &&
+            !this.errorShown &&
+            this.preloadedImages.size >= DEFAULT_PRELOADED_IMAGES_LIMIT) {
+            this.errorShown = true;
+            console.warn(_formatRuntimeError(2961 /* RuntimeErrorCode.TOO_MANY_PRELOADED_IMAGES */, `The \`NgOptimizedImage\` directive has detected that more than ` +
+                `${DEFAULT_PRELOADED_IMAGES_LIMIT} images were marked as priority. ` +
+                `This might negatively affect an overall performance of the page. ` +
+                `To fix this, remove the "priority" attribute from images with less priority.`));
+        }
+        if (this.preloadedImages.has(src)) {
+            return;
+        }
+        this.preloadedImages.add(src);
+        const preload = renderer.createElement('link');
+        renderer.setAttribute(preload, 'as', 'image');
+        renderer.setAttribute(preload, 'href', src);
+        renderer.setAttribute(preload, 'rel', 'preload');
+        renderer.setAttribute(preload, 'fetchpriority', 'high');
+        if (sizes) {
+            renderer.setAttribute(preload, 'imageSizes', sizes);
+        }
+        if (srcset) {
+            renderer.setAttribute(preload, 'imageSrcset', srcset);
+        }
+        renderer.appendChild(this.document.head, preload);
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreloadLinkCreator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreloadLinkCreator, providedIn: 'root' });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PreloadLinkCreator, decorators: [{
+            type: Injectable,
+            args: [{ providedIn: 'root' }]
+        }] });
+
+/**
+ * When a Base64-encoded image is passed as an input to the `NgOptimizedImage` directive,
+ * an error is thrown. The image content (as a string) might be very long, thus making
+ * it hard to read an error message if the entire string is included. This const defines
+ * the number of characters that should be included into the error message. The rest
+ * of the content is truncated.
+ */
+const BASE64_IMG_MAX_LENGTH_IN_ERROR = 50;
+/**
+ * RegExpr to determine whether a src in a srcset is using width descriptors.
+ * Should match something like: "100w, 200w".
+ */
+const VALID_WIDTH_DESCRIPTOR_SRCSET = /^((\s*\d+w\s*(,|$)){1,})$/;
+/**
+ * RegExpr to determine whether a src in a srcset is using density descriptors.
+ * Should match something like: "1x, 2x, 50x". Also supports decimals like "1.5x, 1.50x".
+ */
+const VALID_DENSITY_DESCRIPTOR_SRCSET = /^((\s*\d+(\.\d+)?x\s*(,|$)){1,})$/;
+/**
+ * Srcset values with a density descriptor higher than this value will actively
+ * throw an error. Such densities are not permitted as they cause image sizes
+ * to be unreasonably large and slow down LCP.
+ */
+const ABSOLUTE_SRCSET_DENSITY_CAP = 3;
+/**
+ * Used only in error message text to communicate best practices, as we will
+ * only throw based on the slightly more conservative ABSOLUTE_SRCSET_DENSITY_CAP.
+ */
+const RECOMMENDED_SRCSET_DENSITY_CAP = 2;
+/**
+ * Used in generating automatic density-based srcsets
+ */
+const DENSITY_SRCSET_MULTIPLIERS = [1, 2];
+/**
+ * Used to determine which breakpoints to use on full-width images
+ */
+const VIEWPORT_BREAKPOINT_CUTOFF = 640;
+/**
+ * Used to determine whether two aspect ratios are similar in value.
+ */
+const ASPECT_RATIO_TOLERANCE = 0.1;
+/**
+ * Used to determine whether the image has been requested at an overly
+ * large size compared to the actual rendered image size (after taking
+ * into account a typical device pixel ratio). In pixels.
+ */
+const OVERSIZED_IMAGE_TOLERANCE = 1000;
+/**
+ * Used to limit automatic srcset generation of very large sources for
+ * fixed-size images. In pixels.
+ */
+const FIXED_SRCSET_WIDTH_LIMIT = 1920;
+const FIXED_SRCSET_HEIGHT_LIMIT = 1080;
+/**
+ * Placeholder dimension (height or width) limit in pixels. Angular produces a warning
+ * when this limit is crossed.
+ */
+const PLACEHOLDER_DIMENSION_LIMIT = 1000;
+/**
+ * Used to warn or error when the user provides an overly large dataURL for the placeholder
+ * attribute.
+ * Character count of Base64 images is 1 character per byte, and base64 encoding is approximately
+ * 33% larger than base images, so 4000 characters is around 3KB on disk and 10000 characters is
+ * around 7.7KB. Experimentally, 4000 characters is about 20x20px in PNG or medium-quality JPEG
+ * format, and 10,000 is around 50x50px, but there's quite a bit of variation depending on how the
+ * image is saved.
+ */
+const DATA_URL_WARN_LIMIT = 4000;
+const DATA_URL_ERROR_LIMIT = 10000;
+/** Info about built-in loaders we can test for. */
+const BUILT_IN_LOADERS = [
+    imgixLoaderInfo,
+    imageKitLoaderInfo,
+    cloudinaryLoaderInfo,
+    netlifyLoaderInfo,
+];
+/**
+ * Threshold for the PRIORITY_TRUE_COUNT
+ */
+const PRIORITY_COUNT_THRESHOLD = 10;
+/**
+ * This count is used to log a devMode warning
+ * when the count of directive instances with priority=true
+ * exceeds the threshold PRIORITY_COUNT_THRESHOLD
+ */
+let IMGS_WITH_PRIORITY_ATTR_COUNT = 0;
+/**
+ * Directive that improves image loading performance by enforcing best practices.
+ *
+ * `NgOptimizedImage` ensures that the loading of the Largest Contentful Paint (LCP) image is
+ * prioritized by:
+ * - Automatically setting the `fetchpriority` attribute on the `<img>` tag
+ * - Lazy loading non-priority images by default
+ * - Automatically generating a preconnect link tag in the document head
+ *
+ * In addition, the directive:
+ * - Generates appropriate asset URLs if a corresponding `ImageLoader` function is provided
+ * - Automatically generates a srcset
+ * - Requires that `width` and `height` are set
+ * - Warns if `width` or `height` have been set incorrectly
+ * - Warns if the image will be visually distorted when rendered
+ *
+ * @usageNotes
+ * The `NgOptimizedImage` directive is marked as [standalone](guide/components/importing) and can
+ * be imported directly.
+ *
+ * Follow the steps below to enable and use the directive:
+ * 1. Import it into the necessary NgModule or a standalone Component.
+ * 2. Optionally provide an `ImageLoader` if you use an image hosting service.
+ * 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.
+ * Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image
+ * download.
+ *
+ * Step 1: import the `NgOptimizedImage` directive.
+ *
+ * ```ts
+ * import { NgOptimizedImage } from '@angular/common';
+ *
+ * // Include it into the necessary NgModule
+ * @NgModule({
+ *   imports: [NgOptimizedImage],
+ * })
+ * class AppModule {}
+ *
+ * // ... or a standalone Component
+ * @Component({
+ *   imports: [NgOptimizedImage],
+ * })
+ * class MyStandaloneComponent {}
+ * ```
+ *
+ * Step 2: configure a loader.
+ *
+ * To use the **default loader**: no additional code changes are necessary. The URL returned by the
+ * generic loader will always match the value of "src". In other words, this loader applies no
+ * transformations to the resource URL and the value of the `ngSrc` attribute will be used as is.
+ *
+ * To use an existing loader for a **third-party image service**: add the provider factory for your
+ * chosen service to the `providers` array. In the example below, the Imgix loader is used:
+ *
+ * ```ts
+ * import {provideImgixLoader} from '@angular/common';
+ *
+ * // Call the function and add the result to the `providers` array:
+ * providers: [
+ *   provideImgixLoader("https://my.base.url/"),
+ * ],
+ * ```
+ *
+ * The `NgOptimizedImage` directive provides the following functions:
+ * - `provideCloudflareLoader`
+ * - `provideCloudinaryLoader`
+ * - `provideImageKitLoader`
+ * - `provideImgixLoader`
+ *
+ * If you use a different image provider, you can create a custom loader function as described
+ * below.
+ *
+ * To use a **custom loader**: provide your loader function as a value for the `IMAGE_LOADER` DI
+ * token.
+ *
+ * ```ts
+ * import {IMAGE_LOADER, ImageLoaderConfig} from '@angular/common';
+ *
+ * // Configure the loader using the `IMAGE_LOADER` token.
+ * providers: [
+ *   {
+ *      provide: IMAGE_LOADER,
+ *      useValue: (config: ImageLoaderConfig) => {
+ *        return `https://example.com/${config.src}-${config.width}.jpg`;
+ *      }
+ *   },
+ * ],
+ * ```
+ *
+ * Step 3: update `<img>` tags in templates to use `ngSrc` instead of `src`.
+ *
+ * ```html
+ * <img ngSrc="logo.png" width="200" height="100">
+ * ```
+ *
+ * @publicApi
+ */
+class NgOptimizedImage {
+    imageLoader = inject(IMAGE_LOADER);
+    config = processConfig(inject(_IMAGE_CONFIG));
+    renderer = inject(Renderer2);
+    imgElement = inject(ElementRef).nativeElement;
+    injector = inject(Injector);
+    // An LCP image observer should be injected only in development mode.
+    // Do not assign it to `null` to avoid having a redundant property in the production bundle.
+    lcpObserver;
+    /**
+     * Calculate the rewritten `src` once and store it.
+     * This is needed to avoid repetitive calculations and make sure the directive cleanup in the
+     * `ngOnDestroy` does not rely on the `IMAGE_LOADER` logic (which in turn can rely on some other
+     * instance that might be already destroyed).
+     */
+    _renderedSrc = null;
+    /**
+     * Name of the source image.
+     * Image name will be processed by the image loader and the final URL will be applied as the `src`
+     * property of the image.
+     */
+    ngSrc;
+    /**
+     * A comma separated list of width or density descriptors.
+     * The image name will be taken from `ngSrc` and combined with the list of width or density
+     * descriptors to generate the final `srcset` property of the image.
+     *
+     * Example:
+     * ```html
+     * <img ngSrc="hello.jpg" ngSrcset="100w, 200w" />  =>
+     * <img src="path/hello.jpg" srcset="path/hello.jpg?w=100 100w, path/hello.jpg?w=200 200w" />
+     * ```
+     */
+    ngSrcset;
+    /**
+     * The base `sizes` attribute passed through to the `<img>` element.
+     * Providing sizes causes the image to create an automatic responsive srcset.
+     */
+    sizes;
+    /**
+     * For responsive images: the intrinsic width of the image in pixels.
+     * For fixed size images: the desired rendered width of the image in pixels.
+     */
+    width;
+    /**
+     * For responsive images: the intrinsic height of the image in pixels.
+     * For fixed size images: the desired rendered height of the image in pixels.
+     */
+    height;
+    /**
+     * The desired decoding behavior for the image. Defaults to `auto`
+     * if not explicitly set, matching native browser behavior.
+     *
+     * Use `async` to decode the image off the main thread (non-blocking),
+     * `sync` for immediate decoding (blocking), or `auto` to let the
+     * browser decide the optimal strategy.
+     *
+     * [Spec](https://html.spec.whatwg.org/multipage/images.html#image-decoding-hint)
+     */
+    decoding;
+    /**
+     * The desired loading behavior (lazy, eager, or auto). Defaults to `lazy`,
+     * which is recommended for most images.
+     *
+     * Warning: Setting images as loading="eager" or loading="auto" marks them
+     * as non-priority images and can hurt loading performance. For images which
+     * may be the LCP element, use the `priority` attribute instead of `loading`.
+     */
+    loading;
+    /**
+     * Indicates whether this image should have a high priority.
+     */
+    priority = false;
+    /**
+     * Data to pass through to custom loaders.
+     */
+    loaderParams;
+    /**
+     * Disables automatic srcset generation for this image.
+     */
+    disableOptimizedSrcset = false;
+    /**
+     * Sets the image to "fill mode", which eliminates the height/width requirement and adds
+     * styles such that the image fills its containing element.
+     */
+    fill = false;
+    /**
+     * A URL or data URL for an image to be used as a placeholder while this image loads.
+     */
+    placeholder;
+    /**
+     * Configuration object for placeholder settings. Options:
+     *   * blur: Setting this to false disables the automatic CSS blur.
+     */
+    placeholderConfig;
+    /**
+     * Value of the `src` attribute if set on the host `<img>` element.
+     * This input is exclusively read to assert that `src` is not set in conflict
+     * with `ngSrc` and that images don't start to load until a lazy loading strategy is set.
+     * @internal
+     */
+    src;
+    /**
+     * Value of the `srcset` attribute if set on the host `<img>` element.
+     * This input is exclusively read to assert that `srcset` is not set in conflict
+     * with `ngSrcset` and that images don't start to load until a lazy loading strategy is set.
+     * @internal
+     */
+    srcset;
+    constructor() {
+        if (ngDevMode) {
+            this.lcpObserver = this.injector.get(LCPImageObserver);
+            // Using `DestroyRef` to avoid having an empty `ngOnDestroy` method since this
+            // is only run in development mode.
+            const destroyRef = inject(DestroyRef);
+            destroyRef.onDestroy(() => {
+                if (!this.priority && this._renderedSrc !== null) {
+                    this.lcpObserver.unregisterImage(this._renderedSrc);
+                }
+            });
+        }
+    }
+    /** @docs-private */
+    ngOnInit() {
+        _performanceMarkFeature('NgOptimizedImage');
+        if (ngDevMode) {
+            const ngZone = this.injector.get(NgZone);
+            assertNonEmptyInput(this, 'ngSrc', this.ngSrc);
+            assertValidNgSrcset(this, this.ngSrcset);
+            assertNoConflictingSrc(this);
+            if (this.ngSrcset) {
+                assertNoConflictingSrcset(this);
+            }
+            assertNotBase64Image(this);
+            assertNotBlobUrl(this);
+            if (this.fill) {
+                assertEmptyWidthAndHeight(this);
+                // This leaves the Angular zone to avoid triggering unnecessary change detection cycles when
+                // `load` tasks are invoked on images.
+                ngZone.runOutsideAngular(() => assertNonZeroRenderedHeight(this, this.imgElement, this.renderer));
+            }
+            else {
+                assertNonEmptyWidthAndHeight(this);
+                if (this.height !== undefined) {
+                    assertGreaterThanZero(this, this.height, 'height');
+                }
+                if (this.width !== undefined) {
+                    assertGreaterThanZero(this, this.width, 'width');
+                }
+                // Only check for distorted images when not in fill mode, where
+                // images may be intentionally stretched, cropped or letterboxed.
+                ngZone.runOutsideAngular(() => assertNoImageDistortion(this, this.imgElement, this.renderer));
+            }
+            assertValidLoadingInput(this);
+            assertValidDecodingInput(this);
+            if (!this.ngSrcset) {
+                assertNoComplexSizes(this);
+            }
+            assertValidPlaceholder(this, this.imageLoader);
+            assertNotMissingBuiltInLoader(this.ngSrc, this.imageLoader);
+            assertNoNgSrcsetWithoutLoader(this, this.imageLoader);
+            assertNoLoaderParamsWithoutLoader(this, this.imageLoader);
+            ngZone.runOutsideAngular(() => {
+                this.lcpObserver.registerImage(this.getRewrittenSrc(), this.ngSrc, this.priority);
+            });
+            if (this.priority) {
+                const checker = this.injector.get(PreconnectLinkChecker);
+                checker.assertPreconnect(this.getRewrittenSrc(), this.ngSrc);
+                if (typeof ngServerMode !== 'undefined' && !ngServerMode) {
+                    const applicationRef = this.injector.get(ApplicationRef);
+                    assetPriorityCountBelowThreshold(applicationRef);
+                }
+            }
+        }
+        if (this.placeholder) {
+            this.removePlaceholderOnLoad(this.imgElement);
+        }
+        this.setHostAttributes();
+    }
+    setHostAttributes() {
+        // Must set width/height explicitly in case they are bound (in which case they will
+        // only be reflected and not found by the browser)
+        if (this.fill) {
+            this.sizes ||= '100vw';
+        }
+        else {
+            this.setHostAttribute('width', this.width.toString());
+            this.setHostAttribute('height', this.height.toString());
+        }
+        this.setHostAttribute('loading', this.getLoadingBehavior());
+        this.setHostAttribute('fetchpriority', this.getFetchPriority());
+        this.setHostAttribute('decoding', this.getDecoding());
+        // The `data-ng-img` attribute flags an image as using the directive, to allow
+        // for analysis of the directive's performance.
+        this.setHostAttribute('ng-img', 'true');
+        // The `src` and `srcset` attributes should be set last since other attributes
+        // could affect the image's loading behavior.
+        const rewrittenSrcset = this.updateSrcAndSrcset();
+        if (this.sizes) {
+            if (this.getLoadingBehavior() === 'lazy') {
+                this.setHostAttribute('sizes', 'auto, ' + this.sizes);
+            }
+            else {
+                this.setHostAttribute('sizes', this.sizes);
+            }
+        }
+        else {
+            if (this.ngSrcset &&
+                VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset) &&
+                this.getLoadingBehavior() === 'lazy') {
+                this.setHostAttribute('sizes', 'auto, 100vw');
+            }
+        }
+        if (typeof ngServerMode !== 'undefined' && ngServerMode && this.priority) {
+            const preloadLinkCreator = this.injector.get(PreloadLinkCreator);
+            preloadLinkCreator.createPreloadLinkTag(this.renderer, this.getRewrittenSrc(), rewrittenSrcset, this.sizes);
+        }
+    }
+    /** @docs-private */
+    ngOnChanges(changes) {
+        if (ngDevMode) {
+            assertNoPostInitInputChange(this, changes, [
+                'ngSrcset',
+                'width',
+                'height',
+                'priority',
+                'fill',
+                'loading',
+                'sizes',
+                'loaderParams',
+                'disableOptimizedSrcset',
+            ]);
+        }
+        if (changes['ngSrc'] && !changes['ngSrc'].isFirstChange()) {
+            const oldSrc = this._renderedSrc;
+            this.updateSrcAndSrcset(true);
+            if (ngDevMode) {
+                const newSrc = this._renderedSrc;
+                if (oldSrc && newSrc && oldSrc !== newSrc) {
+                    const ngZone = this.injector.get(NgZone);
+                    ngZone.runOutsideAngular(() => {
+                        this.lcpObserver.updateImage(oldSrc, newSrc);
+                    });
+                }
+            }
+        }
+        if (ngDevMode &&
+            changes['placeholder']?.currentValue &&
+            typeof ngServerMode !== 'undefined' &&
+            !ngServerMode) {
+            assertPlaceholderDimensions(this, this.imgElement);
+        }
+    }
+    callImageLoader(configWithoutCustomParams) {
+        let augmentedConfig = configWithoutCustomParams;
+        if (this.loaderParams) {
+            augmentedConfig.loaderParams = this.loaderParams;
+        }
+        return this.imageLoader(augmentedConfig);
+    }
+    getLoadingBehavior() {
+        if (!this.priority && this.loading !== undefined) {
+            return this.loading;
+        }
+        return this.priority ? 'eager' : 'lazy';
+    }
+    getFetchPriority() {
+        return this.priority ? 'high' : 'auto';
+    }
+    getDecoding() {
+        if (this.priority) {
+            // `sync` means the image is decoded immediately when it's loaded,
+            // reducing the risk of content shifting later (important for LCP).
+            // If we're marking an image as priority, we want it decoded and
+            // painted as early as possible.
+            return 'sync';
+        }
+        // Returns the value of the `decoding` attribute, defaulting to `auto`
+        // if not explicitly provided. This mimics native browser behavior and
+        // avoids breaking changes when no decoding strategy is specified.
+        return this.decoding ?? 'auto';
+    }
+    getRewrittenSrc() {
+        // ImageLoaderConfig supports setting a width property. However, we're not setting width here
+        // because if the developer uses rendered width instead of intrinsic width in the HTML width
+        // attribute, the image requested may be too small for 2x+ screens.
+        if (!this._renderedSrc) {
+            const imgConfig = { src: this.ngSrc };
+            // Cache calculated image src to reuse it later in the code.
+            this._renderedSrc = this.callImageLoader(imgConfig);
+        }
+        return this._renderedSrc;
+    }
+    getRewrittenSrcset() {
+        const widthSrcSet = VALID_WIDTH_DESCRIPTOR_SRCSET.test(this.ngSrcset);
+        const finalSrcs = this.ngSrcset
+            .split(',')
+            .filter((src) => src !== '')
+            .map((srcStr) => {
+            srcStr = srcStr.trim();
+            const width = widthSrcSet ? parseFloat(srcStr) : parseFloat(srcStr) * this.width;
+            return `${this.callImageLoader({ src: this.ngSrc, width })} ${srcStr}`;
+        });
+        return finalSrcs.join(', ');
+    }
+    getAutomaticSrcset() {
+        if (this.sizes) {
+            return this.getResponsiveSrcset();
+        }
+        else {
+            return this.getFixedSrcset();
+        }
+    }
+    getResponsiveSrcset() {
+        const { breakpoints } = this.config;
+        let filteredBreakpoints = breakpoints;
+        if (this.sizes?.trim() === '100vw') {
+            // Since this is a full-screen-width image, our srcset only needs to include
+            // breakpoints with full viewport widths.
+            filteredBreakpoints = breakpoints.filter((bp) => bp >= VIEWPORT_BREAKPOINT_CUTOFF);
+        }
+        const finalSrcs = filteredBreakpoints.map((bp) => `${this.callImageLoader({ src: this.ngSrc, width: bp })} ${bp}w`);
+        return finalSrcs.join(', ');
+    }
+    updateSrcAndSrcset(forceSrcRecalc = false) {
+        if (forceSrcRecalc) {
+            // Reset cached value, so that the followup `getRewrittenSrc()` call
+            // will recalculate it and update the cache.
+            this._renderedSrc = null;
+        }
+        const rewrittenSrc = this.getRewrittenSrc();
+        this.setHostAttribute('src', rewrittenSrc);
+        let rewrittenSrcset = undefined;
+        if (this.ngSrcset) {
+            rewrittenSrcset = this.getRewrittenSrcset();
+        }
+        else if (this.shouldGenerateAutomaticSrcset()) {
+            rewrittenSrcset = this.getAutomaticSrcset();
+        }
+        if (rewrittenSrcset) {
+            this.setHostAttribute('srcset', rewrittenSrcset);
+        }
+        return rewrittenSrcset;
+    }
+    getFixedSrcset() {
+        const finalSrcs = DENSITY_SRCSET_MULTIPLIERS.map((multiplier) => `${this.callImageLoader({
+            src: this.ngSrc,
+            width: this.width * multiplier,
+        })} ${multiplier}x`);
+        return finalSrcs.join(', ');
+    }
+    shouldGenerateAutomaticSrcset() {
+        let oversizedImage = false;
+        if (!this.sizes) {
+            oversizedImage =
+                this.width > FIXED_SRCSET_WIDTH_LIMIT || this.height > FIXED_SRCSET_HEIGHT_LIMIT;
+        }
+        return (!this.disableOptimizedSrcset &&
+            !this.srcset &&
+            this.imageLoader !== noopImageLoader &&
+            !oversizedImage);
+    }
+    /**
+     * Returns an image url formatted for use with the CSS background-image property. Expects one of:
+     * * A base64 encoded image, which is wrapped and passed through.
+     * * A boolean. If true, calls the image loader to generate a small placeholder url.
+     */
+    generatePlaceholder(placeholderInput) {
+        const { placeholderResolution } = this.config;
+        if (placeholderInput === true) {
+            return `url(${this.callImageLoader({
+                src: this.ngSrc,
+                width: placeholderResolution,
+                isPlaceholder: true,
+            })})`;
+        }
+        else if (typeof placeholderInput === 'string') {
+            return `url(${placeholderInput})`;
+        }
+        return null;
+    }
+    /**
+     * Determines if blur should be applied, based on an optional boolean
+     * property `blur` within the optional configuration object `placeholderConfig`.
+     */
+    shouldBlurPlaceholder(placeholderConfig) {
+        if (!placeholderConfig || !placeholderConfig.hasOwnProperty('blur')) {
+            return true;
+        }
+        return Boolean(placeholderConfig.blur);
+    }
+    removePlaceholderOnLoad(img) {
+        const callback = () => {
+            const changeDetectorRef = this.injector.get(ChangeDetectorRef);
+            removeLoadListenerFn();
+            removeErrorListenerFn();
+            this.placeholder = false;
+            changeDetectorRef.markForCheck();
+        };
+        const removeLoadListenerFn = this.renderer.listen(img, 'load', callback);
+        const removeErrorListenerFn = this.renderer.listen(img, 'error', callback);
+        callOnLoadIfImageIsLoaded(img, callback);
+    }
+    setHostAttribute(name, value) {
+        this.renderer.setAttribute(this.imgElement, name, value);
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgOptimizedImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
+    static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "20.1.0", type: NgOptimizedImage, isStandalone: true, selector: "img[ngSrc]", inputs: { ngSrc: ["ngSrc", "ngSrc", unwrapSafeUrl], ngSrcset: "ngSrcset", sizes: "sizes", width: ["width", "width", numberAttribute], height: ["height", "height", numberAttribute], decoding: "decoding", loading: "loading", priority: ["priority", "priority", booleanAttribute], loaderParams: "loaderParams", disableOptimizedSrcset: ["disableOptimizedSrcset", "disableOptimizedSrcset", booleanAttribute], fill: ["fill", "fill", booleanAttribute], placeholder: ["placeholder", "placeholder", booleanOrUrlAttribute], placeholderConfig: "placeholderConfig", src: "src", srcset: "srcset" }, host: { properties: { "style.position": "fill ? \"absolute\" : null", "style.width": "fill ? \"100%\" : null", "style.height": "fill ? \"100%\" : null", "style.inset": "fill ? \"0\" : null", "style.background-size": "placeholder ? \"cover\" : null", "style.background-position": "placeholder ? \"50% 50%\" : null", "style.background-repeat": "placeholder ? \"no-repeat\" : null", "style.background-image": "placeholder ? generatePlaceholder(placeholder) : null", "style.filter": "placeholder && shouldBlurPlaceholder(placeholderConfig) ? \"blur(15px)\" : null" } }, usesOnChanges: true, ngImport: i0 });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: NgOptimizedImage, decorators: [{
+            type: Directive,
+            args: [{
+                    selector: 'img[ngSrc]',
+                    host: {
+                        '[style.position]': 'fill ? "absolute" : null',
+                        '[style.width]': 'fill ? "100%" : null',
+                        '[style.height]': 'fill ? "100%" : null',
+                        '[style.inset]': 'fill ? "0" : null',
+                        '[style.background-size]': 'placeholder ? "cover" : null',
+                        '[style.background-position]': 'placeholder ? "50% 50%" : null',
+                        '[style.background-repeat]': 'placeholder ? "no-repeat" : null',
+                        '[style.background-image]': 'placeholder ? generatePlaceholder(placeholder) : null',
+                        '[style.filter]': 'placeholder && shouldBlurPlaceholder(placeholderConfig) ? "blur(15px)" : null',
+                    },
+                }]
+        }], ctorParameters: () => [], propDecorators: { ngSrc: [{
+                type: Input,
+                args: [{ required: true, transform: unwrapSafeUrl }]
+            }], ngSrcset: [{
+                type: Input
+            }], sizes: [{
+                type: Input
+            }], width: [{
+                type: Input,
+                args: [{ transform: numberAttribute }]
+            }], height: [{
+                type: Input,
+                args: [{ transform: numberAttribute }]
+            }], decoding: [{
+                type: Input
+            }], loading: [{
+                type: Input
+            }], priority: [{
+                type: Input,
+                args: [{ transform: booleanAttribute }]
+            }], loaderParams: [{
+                type: Input
+            }], disableOptimizedSrcset: [{
+                type: Input,
+                args: [{ transform: booleanAttribute }]
+            }], fill: [{
+                type: Input,
+                args: [{ transform: booleanAttribute }]
+            }], placeholder: [{
+                type: Input,
+                args: [{ transform: booleanOrUrlAttribute }]
+            }], placeholderConfig: [{
+                type: Input
+            }], src: [{
+                type: Input
+            }], srcset: [{
+                type: Input
+            }] } });
+/***** Helpers *****/
+/**
+ * Sorts provided config breakpoints and uses defaults.
+ */
+function processConfig(config) {
+    let sortedBreakpoints = {};
+    if (config.breakpoints) {
+        sortedBreakpoints.breakpoints = config.breakpoints.sort((a, b) => a - b);
+    }
+    return Object.assign({}, _IMAGE_CONFIG_DEFAULTS, config, sortedBreakpoints);
+}
+/***** Assert functions *****/
+/**
+ * Verifies that there is no `src` set on a host element.
+ */
+function assertNoConflictingSrc(dir) {
+    if (dir.src) {
+        throw new _RuntimeError(2950 /* RuntimeErrorCode.UNEXPECTED_SRC_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \`src\` and \`ngSrc\` have been set. ` +
+            `Supplying both of these attributes breaks lazy loading. ` +
+            `The NgOptimizedImage directive sets \`src\` itself based on the value of \`ngSrc\`. ` +
+            `To fix this, please remove the \`src\` attribute.`);
+    }
+}
+/**
+ * Verifies that there is no `srcset` set on a host element.
+ */
+function assertNoConflictingSrcset(dir) {
+    if (dir.srcset) {
+        throw new _RuntimeError(2951 /* RuntimeErrorCode.UNEXPECTED_SRCSET_ATTR */, `${imgDirectiveDetails(dir.ngSrc)} both \`srcset\` and \`ngSrcset\` have been set. ` +
+            `Supplying both of these attributes breaks lazy loading. ` +
+            `The NgOptimizedImage directive sets \`srcset\` itself based on the value of ` +
+            `\`ngSrcset\`. To fix this, please remove the \`srcset\` attribute.`);
+    }
+}
+/**
+ * Verifies that the `ngSrc` is not a Base64-encoded image.
+ */
+function assertNotBase64Image(dir) {
+    let ngSrc = dir.ngSrc.trim();
+    if (ngSrc.startsWith('data:')) {
+        if (ngSrc.length > BASE64_IMG_MAX_LENGTH_IN_ERROR) {
+            ngSrc = ngSrc.substring(0, BASE64_IMG_MAX_LENGTH_IN_ERROR) + '...';
+        }
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \`ngSrc\` is a Base64-encoded string ` +
+            `(${ngSrc}). NgOptimizedImage does not support Base64-encoded strings. ` +
+            `To fix this, disable the NgOptimizedImage directive for this element ` +
+            `by removing \`ngSrc\` and using a standard \`src\` attribute instead.`);
+    }
+}
+/**
+ * Verifies that the 'sizes' only includes responsive values.
+ */
+function assertNoComplexSizes(dir) {
+    let sizes = dir.sizes;
+    if (sizes?.match(/((\)|,)\s|^)\d+px/)) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \`sizes\` was set to a string including ` +
+            `pixel values. For automatic \`srcset\` generation, \`sizes\` must only include responsive ` +
+            `values, such as \`sizes="50vw"\` or \`sizes="(min-width: 768px) 50vw, 100vw"\`. ` +
+            `To fix this, modify the \`sizes\` attribute, or provide your own \`ngSrcset\` value directly.`);
+    }
+}
+function assertValidPlaceholder(dir, imageLoader) {
+    assertNoPlaceholderConfigWithoutPlaceholder(dir);
+    assertNoRelativePlaceholderWithoutLoader(dir, imageLoader);
+    assertNoOversizedDataUrl(dir);
+}
+/**
+ * Verifies that placeholderConfig isn't being used without placeholder
+ */
+function assertNoPlaceholderConfigWithoutPlaceholder(dir) {
+    if (dir.placeholderConfig && !dir.placeholder) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc, false)} \`placeholderConfig\` options were provided for an ` +
+            `image that does not use the \`placeholder\` attribute, and will have no effect.`);
+    }
+}
+/**
+ * Warns if a relative URL placeholder is specified, but no loader is present to provide the small
+ * image.
+ */
+function assertNoRelativePlaceholderWithoutLoader(dir, imageLoader) {
+    if (dir.placeholder === true && imageLoader === noopImageLoader) {
+        throw new _RuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \`placeholder\` attribute is set to true but ` +
+            `no image loader is configured (i.e. the default one is being used), ` +
+            `which would result in the same image being used for the primary image and its placeholder. ` +
+            `To fix this, provide a loader or remove the \`placeholder\` attribute from the image.`);
+    }
+}
+/**
+ * Warns or throws an error if an oversized dataURL placeholder is provided.
+ */
+function assertNoOversizedDataUrl(dir) {
+    if (dir.placeholder &&
+        typeof dir.placeholder === 'string' &&
+        dir.placeholder.startsWith('data:')) {
+        if (dir.placeholder.length > DATA_URL_ERROR_LIMIT) {
+            throw new _RuntimeError(2965 /* RuntimeErrorCode.OVERSIZED_PLACEHOLDER */, `${imgDirectiveDetails(dir.ngSrc)} the \`placeholder\` attribute is set to a data URL which is longer ` +
+                `than ${DATA_URL_ERROR_LIMIT} characters. This is strongly discouraged, as large inline placeholders ` +
+                `directly increase the bundle size of Angular and hurt page load performance. To fix this, generate ` +
+                `a smaller data URL placeholder.`);
+        }
+        if (dir.placeholder.length > DATA_URL_WARN_LIMIT) {
+            console.warn(_formatRuntimeError(2965 /* RuntimeErrorCode.OVERSIZED_PLACEHOLDER */, `${imgDirectiveDetails(dir.ngSrc)} the \`placeholder\` attribute is set to a data URL which is longer ` +
+                `than ${DATA_URL_WARN_LIMIT} characters. This is discouraged, as large inline placeholders ` +
+                `directly increase the bundle size of Angular and hurt page load performance. For better loading performance, ` +
+                `generate a smaller data URL placeholder.`));
+        }
+    }
+}
+/**
+ * Verifies that the `ngSrc` is not a Blob URL.
+ */
+function assertNotBlobUrl(dir) {
+    const ngSrc = dir.ngSrc.trim();
+    if (ngSrc.startsWith('blob:')) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`ngSrc\` was set to a blob URL (${ngSrc}). ` +
+            `Blob URLs are not supported by the NgOptimizedImage directive. ` +
+            `To fix this, disable the NgOptimizedImage directive for this element ` +
+            `by removing \`ngSrc\` and using a regular \`src\` attribute instead.`);
+    }
+}
+/**
+ * Verifies that the input is set to a non-empty string.
+ */
+function assertNonEmptyInput(dir, name, value) {
+    const isString = typeof value === 'string';
+    const isEmptyString = isString && value.trim() === '';
+    if (!isString || isEmptyString) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`${name}\` has an invalid value ` +
+            `(\`${value}\`). To fix this, change the value to a non-empty string.`);
+    }
+}
+/**
+ * Verifies that the `ngSrcset` is in a valid format, e.g. "100w, 200w" or "1x, 2x".
+ */
+function assertValidNgSrcset(dir, value) {
+    if (value == null)
+        return;
+    assertNonEmptyInput(dir, 'ngSrcset', value);
+    const stringVal = value;
+    const isValidWidthDescriptor = VALID_WIDTH_DESCRIPTOR_SRCSET.test(stringVal);
+    const isValidDensityDescriptor = VALID_DENSITY_DESCRIPTOR_SRCSET.test(stringVal);
+    if (isValidDensityDescriptor) {
+        assertUnderDensityCap(dir, stringVal);
+    }
+    const isValidSrcset = isValidWidthDescriptor || isValidDensityDescriptor;
+    if (!isValidSrcset) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`ngSrcset\` has an invalid value (\`${value}\`). ` +
+            `To fix this, supply \`ngSrcset\` using a comma-separated list of one or more width ` +
+            `descriptors (e.g. "100w, 200w") or density descriptors (e.g. "1x, 2x").`);
+    }
+}
+function assertUnderDensityCap(dir, value) {
+    const underDensityCap = value
+        .split(',')
+        .every((num) => num === '' || parseFloat(num) <= ABSOLUTE_SRCSET_DENSITY_CAP);
+    if (!underDensityCap) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \`ngSrcset\` contains an unsupported image density:` +
+            `\`${value}\`. NgOptimizedImage generally recommends a max image density of ` +
+            `${RECOMMENDED_SRCSET_DENSITY_CAP}x but supports image densities up to ` +
+            `${ABSOLUTE_SRCSET_DENSITY_CAP}x. The human eye cannot distinguish between image densities ` +
+            `greater than ${RECOMMENDED_SRCSET_DENSITY_CAP}x - which makes them unnecessary for ` +
+            `most use cases. Images that will be pinch-zoomed are typically the primary use case for ` +
+            `${ABSOLUTE_SRCSET_DENSITY_CAP}x images. Please remove the high density descriptor and try again.`);
+    }
+}
+/**
+ * Creates a `RuntimeError` instance to represent a situation when an input is set after
+ * the directive has initialized.
+ */
+function postInitInputChangeError(dir, inputName) {
+    let reason;
+    if (inputName === 'width' || inputName === 'height') {
+        reason =
+            `Changing \`${inputName}\` may result in different attribute value ` +
+                `applied to the underlying image element and cause layout shifts on a page.`;
+    }
+    else {
+        reason =
+            `Changing the \`${inputName}\` would have no effect on the underlying ` +
+                `image element, because the resource loading has already occurred.`;
+    }
+    return new _RuntimeError(2953 /* RuntimeErrorCode.UNEXPECTED_INPUT_CHANGE */, `${imgDirectiveDetails(dir.ngSrc)} \`${inputName}\` was updated after initialization. ` +
+        `The NgOptimizedImage directive will not react to this input change. ${reason} ` +
+        `To fix this, either switch \`${inputName}\` to a static value ` +
+        `or wrap the image element in an @if that is gated on the necessary value.`);
+}
+/**
+ * Verify that none of the listed inputs has changed.
+ */
+function assertNoPostInitInputChange(dir, changes, inputs) {
+    inputs.forEach((input) => {
+        const isUpdated = changes.hasOwnProperty(input);
+        if (isUpdated && !changes[input].isFirstChange()) {
+            if (input === 'ngSrc') {
+                // When the `ngSrc` input changes, we detect that only in the
+                // `ngOnChanges` hook, thus the `ngSrc` is already set. We use
+                // `ngSrc` in the error message, so we use a previous value, but
+                // not the updated one in it.
+                dir = { ngSrc: changes[input].previousValue };
+            }
+            throw postInitInputChangeError(dir, input);
+        }
+    });
+}
+/**
+ * Verifies that a specified input is a number greater than 0.
+ */
+function assertGreaterThanZero(dir, inputValue, inputName) {
+    const validNumber = typeof inputValue === 'number' && inputValue > 0;
+    const validString = typeof inputValue === 'string' && /^\d+$/.test(inputValue.trim()) && parseInt(inputValue) > 0;
+    if (!validNumber && !validString) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} \`${inputName}\` has an invalid value. ` +
+            `To fix this, provide \`${inputName}\` as a number greater than 0.`);
+    }
+}
+/**
+ * Verifies that the rendered image is not visually distorted. Effectively this is checking:
+ * - Whether the "width" and "height" attributes reflect the actual dimensions of the image.
+ * - Whether image styling is "correct" (see below for a longer explanation).
+ */
+function assertNoImageDistortion(dir, img, renderer) {
+    const callback = () => {
+        removeLoadListenerFn();
+        removeErrorListenerFn();
+        const computedStyle = window.getComputedStyle(img);
+        let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));
+        let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));
+        const boxSizing = computedStyle.getPropertyValue('box-sizing');
+        if (boxSizing === 'border-box') {
+            const paddingTop = computedStyle.getPropertyValue('padding-top');
+            const paddingRight = computedStyle.getPropertyValue('padding-right');
+            const paddingBottom = computedStyle.getPropertyValue('padding-bottom');
+            const paddingLeft = computedStyle.getPropertyValue('padding-left');
+            renderedWidth -= parseFloat(paddingRight) + parseFloat(paddingLeft);
+            renderedHeight -= parseFloat(paddingTop) + parseFloat(paddingBottom);
+        }
+        const renderedAspectRatio = renderedWidth / renderedHeight;
+        const nonZeroRenderedDimensions = renderedWidth !== 0 && renderedHeight !== 0;
+        const intrinsicWidth = img.naturalWidth;
+        const intrinsicHeight = img.naturalHeight;
+        const intrinsicAspectRatio = intrinsicWidth / intrinsicHeight;
+        const suppliedWidth = dir.width;
+        const suppliedHeight = dir.height;
+        const suppliedAspectRatio = suppliedWidth / suppliedHeight;
+        // Tolerance is used to account for the impact of subpixel rendering.
+        // Due to subpixel rendering, the rendered, intrinsic, and supplied
+        // aspect ratios of a correctly configured image may not exactly match.
+        // For example, a `width=4030 height=3020` image might have a rendered
+        // size of "1062w, 796.48h". (An aspect ratio of 1.334... vs. 1.333...)
+        const inaccurateDimensions = Math.abs(suppliedAspectRatio - intrinsicAspectRatio) > ASPECT_RATIO_TOLERANCE;
+        const stylingDistortion = nonZeroRenderedDimensions &&
+            Math.abs(intrinsicAspectRatio - renderedAspectRatio) > ASPECT_RATIO_TOLERANCE;
+        if (inaccurateDimensions) {
+            console.warn(_formatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the image does not match ` +
+                `the aspect ratio indicated by the width and height attributes. ` +
+                `\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +
+                `(aspect-ratio: ${round(intrinsicAspectRatio)}). \nSupplied width and height attributes: ` +
+                `${suppliedWidth}w x ${suppliedHeight}h (aspect-ratio: ${round(suppliedAspectRatio)}). ` +
+                `\nTo fix this, update the width and height attributes.`));
+        }
+        else if (stylingDistortion) {
+            console.warn(_formatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the aspect ratio of the rendered image ` +
+                `does not match the image's intrinsic aspect ratio. ` +
+                `\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h ` +
+                `(aspect-ratio: ${round(intrinsicAspectRatio)}). \nRendered image size: ` +
+                `${renderedWidth}w x ${renderedHeight}h (aspect-ratio: ` +
+                `${round(renderedAspectRatio)}). \nThis issue can occur if "width" and "height" ` +
+                `attributes are added to an image without updating the corresponding ` +
+                `image styling. To fix this, adjust image styling. In most cases, ` +
+                `adding "height: auto" or "width: auto" to the image styling will fix ` +
+                `this issue.`));
+        }
+        else if (!dir.ngSrcset && nonZeroRenderedDimensions) {
+            // If `ngSrcset` hasn't been set, sanity check the intrinsic size.
+            const recommendedWidth = RECOMMENDED_SRCSET_DENSITY_CAP * renderedWidth;
+            const recommendedHeight = RECOMMENDED_SRCSET_DENSITY_CAP * renderedHeight;
+            const oversizedWidth = intrinsicWidth - recommendedWidth >= OVERSIZED_IMAGE_TOLERANCE;
+            const oversizedHeight = intrinsicHeight - recommendedHeight >= OVERSIZED_IMAGE_TOLERANCE;
+            if (oversizedWidth || oversizedHeight) {
+                console.warn(_formatRuntimeError(2960 /* RuntimeErrorCode.OVERSIZED_IMAGE */, `${imgDirectiveDetails(dir.ngSrc)} the intrinsic image is significantly ` +
+                    `larger than necessary. ` +
+                    `\nRendered image size: ${renderedWidth}w x ${renderedHeight}h. ` +
+                    `\nIntrinsic image size: ${intrinsicWidth}w x ${intrinsicHeight}h. ` +
+                    `\nRecommended intrinsic image size: ${recommendedWidth}w x ${recommendedHeight}h. ` +
+                    `\nNote: Recommended intrinsic image size is calculated assuming a maximum DPR of ` +
+                    `${RECOMMENDED_SRCSET_DENSITY_CAP}. To improve loading time, resize the image ` +
+                    `or consider using the "ngSrcset" and "sizes" attributes.`));
+            }
+        }
+    };
+    const removeLoadListenerFn = renderer.listen(img, 'load', callback);
+    // We only listen to the `error` event to remove the `load` event listener because it will not be
+    // fired if the image fails to load. This is done to prevent memory leaks in development mode
+    // because image elements aren't garbage-collected properly. It happens because zone.js stores the
+    // event listener directly on the element and closures capture `dir`.
+    const removeErrorListenerFn = renderer.listen(img, 'error', () => {
+        removeLoadListenerFn();
+        removeErrorListenerFn();
+    });
+    callOnLoadIfImageIsLoaded(img, callback);
+}
+/**
+ * Verifies that a specified input is set.
+ */
+function assertNonEmptyWidthAndHeight(dir) {
+    let missingAttributes = [];
+    if (dir.width === undefined)
+        missingAttributes.push('width');
+    if (dir.height === undefined)
+        missingAttributes.push('height');
+    if (missingAttributes.length > 0) {
+        throw new _RuntimeError(2954 /* RuntimeErrorCode.REQUIRED_INPUT_MISSING */, `${imgDirectiveDetails(dir.ngSrc)} these required attributes ` +
+            `are missing: ${missingAttributes.map((attr) => `"${attr}"`).join(', ')}. ` +
+            `Including "width" and "height" attributes will prevent image-related layout shifts. ` +
+            `To fix this, include "width" and "height" attributes on the image tag or turn on ` +
+            `"fill" mode with the \`fill\` attribute.`);
+    }
+}
+/**
+ * Verifies that width and height are not set. Used in fill mode, where those attributes don't make
+ * sense.
+ */
+function assertEmptyWidthAndHeight(dir) {
+    if (dir.width || dir.height) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the attributes \`height\` and/or \`width\` are present ` +
+            `along with the \`fill\` attribute. Because \`fill\` mode causes an image to fill its containing ` +
+            `element, the size attributes have no effect and should be removed.`);
+    }
+}
+/**
+ * Verifies that the rendered image has a nonzero height. If the image is in fill mode, provides
+ * guidance that this can be caused by the containing element's CSS position property.
+ */
+function assertNonZeroRenderedHeight(dir, img, renderer) {
+    const callback = () => {
+        removeLoadListenerFn();
+        removeErrorListenerFn();
+        const renderedHeight = img.clientHeight;
+        if (dir.fill && renderedHeight === 0) {
+            console.warn(_formatRuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the height of the fill-mode image is zero. ` +
+                `This is likely because the containing element does not have the CSS 'position' ` +
+                `property set to one of the following: "relative", "fixed", or "absolute". ` +
+                `To fix this problem, make sure the container element has the CSS 'position' ` +
+                `property defined and the height of the element is not zero.`));
+        }
+    };
+    const removeLoadListenerFn = renderer.listen(img, 'load', callback);
+    // See comments in the `assertNoImageDistortion`.
+    const removeErrorListenerFn = renderer.listen(img, 'error', () => {
+        removeLoadListenerFn();
+        removeErrorListenerFn();
+    });
+    callOnLoadIfImageIsLoaded(img, callback);
+}
+/**
+ * Verifies that the `loading` attribute is set to a valid input &
+ * is not used on priority images.
+ */
+function assertValidLoadingInput(dir) {
+    if (dir.loading && dir.priority) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \`loading\` attribute ` +
+            `was used on an image that was marked "priority". ` +
+            `Setting \`loading\` on priority images is not allowed ` +
+            `because these images will always be eagerly loaded. ` +
+            `To fix this, remove the “loading” attribute from the priority image.`);
+    }
+    const validInputs = ['auto', 'eager', 'lazy'];
+    if (typeof dir.loading === 'string' && !validInputs.includes(dir.loading)) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \`loading\` attribute ` +
+            `has an invalid value (\`${dir.loading}\`). ` +
+            `To fix this, provide a valid value ("lazy", "eager", or "auto").`);
+    }
+}
+/**
+ * Verifies that the `decoding` attribute is set to a valid input.
+ */
+function assertValidDecodingInput(dir) {
+    const validInputs = ['sync', 'async', 'auto'];
+    if (typeof dir.decoding === 'string' && !validInputs.includes(dir.decoding)) {
+        throw new _RuntimeError(2952 /* RuntimeErrorCode.INVALID_INPUT */, `${imgDirectiveDetails(dir.ngSrc)} the \`decoding\` attribute ` +
+            `has an invalid value (\`${dir.decoding}\`). ` +
+            `To fix this, provide a valid value ("sync", "async", or "auto").`);
+    }
+}
+/**
+ * Warns if NOT using a loader (falling back to the generic loader) and
+ * the image appears to be hosted on one of the image CDNs for which
+ * we do have a built-in image loader. Suggests switching to the
+ * built-in loader.
+ *
+ * @param ngSrc Value of the ngSrc attribute
+ * @param imageLoader ImageLoader provided
+ */
+function assertNotMissingBuiltInLoader(ngSrc, imageLoader) {
+    if (imageLoader === noopImageLoader) {
+        let builtInLoaderName = '';
+        for (const loader of BUILT_IN_LOADERS) {
+            if (loader.testUrl(ngSrc)) {
+                builtInLoaderName = loader.name;
+                break;
+            }
+        }
+        if (builtInLoaderName) {
+            console.warn(_formatRuntimeError(2962 /* RuntimeErrorCode.MISSING_BUILTIN_LOADER */, `NgOptimizedImage: It looks like your images may be hosted on the ` +
+                `${builtInLoaderName} CDN, but your app is not using Angular's ` +
+                `built-in loader for that CDN. We recommend switching to use ` +
+                `the built-in by calling \`provide${builtInLoaderName}Loader()\` ` +
+                `in your \`providers\` and passing it your instance's base URL. ` +
+                `If you don't want to use the built-in loader, define a custom ` +
+                `loader function using IMAGE_LOADER to silence this warning.`));
+        }
+    }
+}
+/**
+ * Warns if ngSrcset is present and no loader is configured (i.e. the default one is being used).
+ */
+function assertNoNgSrcsetWithoutLoader(dir, imageLoader) {
+    if (dir.ngSrcset && imageLoader === noopImageLoader) {
+        console.warn(_formatRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \`ngSrcset\` attribute is present but ` +
+            `no image loader is configured (i.e. the default one is being used), ` +
+            `which would result in the same image being used for all configured sizes. ` +
+            `To fix this, provide a loader or remove the \`ngSrcset\` attribute from the image.`));
+    }
+}
+/**
+ * Warns if loaderParams is present and no loader is configured (i.e. the default one is being
+ * used).
+ */
+function assertNoLoaderParamsWithoutLoader(dir, imageLoader) {
+    if (dir.loaderParams && imageLoader === noopImageLoader) {
+        console.warn(_formatRuntimeError(2963 /* RuntimeErrorCode.MISSING_NECESSARY_LOADER */, `${imgDirectiveDetails(dir.ngSrc)} the \`loaderParams\` attribute is present but ` +
+            `no image loader is configured (i.e. the default one is being used), ` +
+            `which means that the loaderParams data will not be consumed and will not affect the URL. ` +
+            `To fix this, provide a custom loader or remove the \`loaderParams\` attribute from the image.`));
+    }
+}
+/**
+ * Warns if the priority attribute is used too often on page load
+ */
+async function assetPriorityCountBelowThreshold(appRef) {
+    if (IMGS_WITH_PRIORITY_ATTR_COUNT === 0) {
+        IMGS_WITH_PRIORITY_ATTR_COUNT++;
+        await appRef.whenStable();
+        if (IMGS_WITH_PRIORITY_ATTR_COUNT > PRIORITY_COUNT_THRESHOLD) {
+            console.warn(_formatRuntimeError(2966 /* RuntimeErrorCode.TOO_MANY_PRIORITY_ATTRIBUTES */, `NgOptimizedImage: The "priority" attribute is set to true more than ${PRIORITY_COUNT_THRESHOLD} times (${IMGS_WITH_PRIORITY_ATTR_COUNT} times). ` +
+                `Marking too many images as "high" priority can hurt your application's LCP (https://web.dev/lcp). ` +
+                `"Priority" should only be set on the image expected to be the page's LCP element.`));
+        }
+    }
+    else {
+        IMGS_WITH_PRIORITY_ATTR_COUNT++;
+    }
+}
+/**
+ * Warns if placeholder's dimension are over a threshold.
+ *
+ * This assert function is meant to only run on the browser.
+ */
+function assertPlaceholderDimensions(dir, imgElement) {
+    const computedStyle = window.getComputedStyle(imgElement);
+    let renderedWidth = parseFloat(computedStyle.getPropertyValue('width'));
+    let renderedHeight = parseFloat(computedStyle.getPropertyValue('height'));
+    if (renderedWidth > PLACEHOLDER_DIMENSION_LIMIT || renderedHeight > PLACEHOLDER_DIMENSION_LIMIT) {
+        console.warn(_formatRuntimeError(2967 /* RuntimeErrorCode.PLACEHOLDER_DIMENSION_LIMIT_EXCEEDED */, `${imgDirectiveDetails(dir.ngSrc)} it uses a placeholder image, but at least one ` +
+            `of the dimensions attribute (height or width) exceeds the limit of ${PLACEHOLDER_DIMENSION_LIMIT}px. ` +
+            `To fix this, use a smaller image as a placeholder.`));
+    }
+}
+function callOnLoadIfImageIsLoaded(img, callback) {
+    // https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-complete
+    // The spec defines that `complete` is truthy once its request state is fully available.
+    // The image may already be available if it’s loaded from the browser cache.
+    // In that case, the `load` event will not fire at all, meaning that all setup
+    // callbacks listening for the `load` event will not be invoked.
+    // In Safari, there is a known behavior where the `complete` property of an
+    // `HTMLImageElement` may sometimes return `true` even when the image is not fully loaded.
+    // Checking both `img.complete` and `img.naturalWidth` is the most reliable way to
+    // determine if an image has been fully loaded, especially in browsers where the
+    // `complete` property may return `true` prematurely.
+    if (img.complete && img.naturalWidth) {
+        callback();
+    }
+}
+function round(input) {
+    return Number.isInteger(input) ? input : input.toFixed(2);
+}
+// Transform function to handle SafeValue input for ngSrc. This doesn't do any sanitization,
+// as that is not needed for img.src and img.srcset. This transform is purely for compatibility.
+function unwrapSafeUrl(value) {
+    if (typeof value === 'string') {
+        return value;
+    }
+    return _unwrapSafeValue(value);
+}
+// Transform function to handle inputs which may be booleans, strings, or string representations
+// of boolean values. Used for the placeholder attribute.
+function booleanOrUrlAttribute(value) {
+    if (typeof value === 'string' && value !== 'true' && value !== 'false' && value !== '') {
+        return value;
+    }
+    return booleanAttribute(value);
+}
+
+export { IMAGE_LOADER, NgOptimizedImage, PRECONNECT_CHECK_BLOCKLIST, VERSION, ViewportScroller, isPlatformBrowser, isPlatformServer, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, provideNetlifyLoader, registerLocaleData, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID };
+//# sourceMappingURL=common.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/fesm2022/common.mjs.map


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 96 - 0
node_modules/@angular/common/fesm2022/common_module.mjs


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/fesm2022/common_module.mjs.map


+ 416 - 0
node_modules/@angular/common/fesm2022/http.mjs

@@ -0,0 +1,416 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import { HttpHeaders, HttpParams, HttpRequest, HttpEventType, HttpErrorResponse, HttpClient, HTTP_ROOT_INTERCEPTOR_FNS, HttpResponse } from './module.mjs';
+export { FetchBackend, HTTP_INTERCEPTORS, HttpBackend, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpFeatureKind, HttpHandler, HttpHeaderResponse, HttpResponseBase, HttpStatusCode, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration, HttpInterceptorHandler as ɵHttpInterceptingHandler, HttpInterceptorHandler as ɵHttpInterceptorHandler, REQUESTS_CONTRIBUTE_TO_STABILITY as ɵREQUESTS_CONTRIBUTE_TO_STABILITY } from './module.mjs';
+import { assertInInjectionContext, inject, Injector, ɵResourceImpl as _ResourceImpl, linkedSignal, computed, signal, ɵencapsulateResourceError as _encapsulateResourceError, ɵRuntimeError as _RuntimeError, InjectionToken, ɵperformanceMarkFeature as _performanceMarkFeature, APP_BOOTSTRAP_LISTENER, ApplicationRef, TransferState, makeStateKey, ɵtruncateMiddle as _truncateMiddle, ɵformatRuntimeError as _formatRuntimeError } from '@angular/core';
+import { of } from 'rxjs';
+import { tap } from 'rxjs/operators';
+import './xhr.mjs';
+
+/**
+ * `httpResource` makes a reactive HTTP request and exposes the request status and response value as
+ * a `WritableResource`. By default, it assumes that the backend will return JSON data. To make a
+ * request that expects a different kind of data, you can use a sub-constructor of `httpResource`,
+ * such as `httpResource.text`.
+ *
+ * @experimental 19.2
+ * @initializerApiFunction
+ */
+const httpResource = (() => {
+    const jsonFn = makeHttpResourceFn('json');
+    jsonFn.arrayBuffer = makeHttpResourceFn('arraybuffer');
+    jsonFn.blob = makeHttpResourceFn('blob');
+    jsonFn.text = makeHttpResourceFn('text');
+    return jsonFn;
+})();
+function makeHttpResourceFn(responseType) {
+    return function httpResource(request, options) {
+        if (ngDevMode && !options?.injector) {
+            assertInInjectionContext(httpResource);
+        }
+        const injector = options?.injector ?? inject(Injector);
+        return new HttpResourceImpl(injector, () => normalizeRequest(request, responseType), options?.defaultValue, options?.parse, options?.equal);
+    };
+}
+function normalizeRequest(request, responseType) {
+    let unwrappedRequest = typeof request === 'function' ? request() : request;
+    if (unwrappedRequest === undefined) {
+        return undefined;
+    }
+    else if (typeof unwrappedRequest === 'string') {
+        unwrappedRequest = { url: unwrappedRequest };
+    }
+    const headers = unwrappedRequest.headers instanceof HttpHeaders
+        ? unwrappedRequest.headers
+        : new HttpHeaders(unwrappedRequest.headers);
+    const params = unwrappedRequest.params instanceof HttpParams
+        ? unwrappedRequest.params
+        : new HttpParams({ fromObject: unwrappedRequest.params });
+    return new HttpRequest(unwrappedRequest.method ?? 'GET', unwrappedRequest.url, unwrappedRequest.body ?? null, {
+        headers,
+        params,
+        reportProgress: unwrappedRequest.reportProgress,
+        withCredentials: unwrappedRequest.withCredentials,
+        keepalive: unwrappedRequest.keepalive,
+        cache: unwrappedRequest.cache,
+        priority: unwrappedRequest.priority,
+        mode: unwrappedRequest.mode,
+        redirect: unwrappedRequest.redirect,
+        responseType,
+        context: unwrappedRequest.context,
+        transferCache: unwrappedRequest.transferCache,
+        credentials: unwrappedRequest.credentials,
+        timeout: unwrappedRequest.timeout,
+    });
+}
+class HttpResourceImpl extends _ResourceImpl {
+    client;
+    _headers = linkedSignal({
+        source: this.extRequest,
+        computation: () => undefined,
+    });
+    _progress = linkedSignal({
+        source: this.extRequest,
+        computation: () => undefined,
+    });
+    _statusCode = linkedSignal({
+        source: this.extRequest,
+        computation: () => undefined,
+    });
+    headers = computed(() => this.status() === 'resolved' || this.status() === 'error' ? this._headers() : undefined, ...(ngDevMode ? [{ debugName: "headers" }] : []));
+    progress = this._progress.asReadonly();
+    statusCode = this._statusCode.asReadonly();
+    constructor(injector, request, defaultValue, parse, equal) {
+        super(request, ({ params: request, abortSignal }) => {
+            let sub;
+            // Track the abort listener so it can be removed if the Observable completes (as a memory
+            // optimization).
+            const onAbort = () => sub.unsubscribe();
+            abortSignal.addEventListener('abort', onAbort);
+            // Start off stream as undefined.
+            const stream = signal({ value: undefined }, ...(ngDevMode ? [{ debugName: "stream" }] : []));
+            let resolve;
+            const promise = new Promise((r) => (resolve = r));
+            const send = (value) => {
+                stream.set(value);
+                resolve?.(stream);
+                resolve = undefined;
+            };
+            sub = this.client.request(request).subscribe({
+                next: (event) => {
+                    switch (event.type) {
+                        case HttpEventType.Response:
+                            this._headers.set(event.headers);
+                            this._statusCode.set(event.status);
+                            try {
+                                send({ value: parse ? parse(event.body) : event.body });
+                            }
+                            catch (error) {
+                                send({ error: _encapsulateResourceError(error) });
+                            }
+                            break;
+                        case HttpEventType.DownloadProgress:
+                            this._progress.set(event);
+                            break;
+                    }
+                },
+                error: (error) => {
+                    if (error instanceof HttpErrorResponse) {
+                        this._headers.set(error.headers);
+                        this._statusCode.set(error.status);
+                    }
+                    send({ error });
+                    abortSignal.removeEventListener('abort', onAbort);
+                },
+                complete: () => {
+                    if (resolve) {
+                        send({
+                            error: new _RuntimeError(991 /* ɵRuntimeErrorCode.RESOURCE_COMPLETED_BEFORE_PRODUCING_VALUE */, ngDevMode && 'Resource completed before producing a value'),
+                        });
+                    }
+                    abortSignal.removeEventListener('abort', onAbort);
+                },
+            });
+            return promise;
+        }, defaultValue, equal, injector);
+        this.client = injector.get(HttpClient);
+    }
+}
+
+/**
+ * If your application uses different HTTP origins to make API calls (via `HttpClient`) on the server and
+ * on the client, the `HTTP_TRANSFER_CACHE_ORIGIN_MAP` token allows you to establish a mapping
+ * between those origins, so that `HttpTransferCache` feature can recognize those requests as the same
+ * ones and reuse the data cached on the server during hydration on the client.
+ *
+ * **Important note**: the `HTTP_TRANSFER_CACHE_ORIGIN_MAP` token should *only* be provided in
+ * the *server* code of your application (typically in the `app.server.config.ts` script). Angular throws an
+ * error if it detects that the token is defined while running on the client.
+ *
+ * @usageNotes
+ *
+ * When the same API endpoint is accessed via `http://internal-domain.com:8080` on the server and
+ * via `https://external-domain.com` on the client, you can use the following configuration:
+ * ```ts
+ * // in app.server.config.ts
+ * {
+ *     provide: HTTP_TRANSFER_CACHE_ORIGIN_MAP,
+ *     useValue: {
+ *         'http://internal-domain.com:8080': 'https://external-domain.com'
+ *     }
+ * }
+ * ```
+ *
+ * @publicApi
+ */
+const HTTP_TRANSFER_CACHE_ORIGIN_MAP = new InjectionToken(ngDevMode ? 'HTTP_TRANSFER_CACHE_ORIGIN_MAP' : '');
+/**
+ * Keys within cached response data structure.
+ */
+const BODY = 'b';
+const HEADERS = 'h';
+const STATUS = 's';
+const STATUS_TEXT = 'st';
+const REQ_URL = 'u';
+const RESPONSE_TYPE = 'rt';
+const CACHE_OPTIONS = new InjectionToken(ngDevMode ? 'HTTP_TRANSFER_STATE_CACHE_OPTIONS' : '');
+/**
+ * A list of allowed HTTP methods to cache.
+ */
+const ALLOWED_METHODS = ['GET', 'HEAD'];
+function transferCacheInterceptorFn(req, next) {
+    const { isCacheActive, ...globalOptions } = inject(CACHE_OPTIONS);
+    const { transferCache: requestOptions, method: requestMethod } = req;
+    // In the following situations we do not want to cache the request
+    if (!isCacheActive ||
+        requestOptions === false ||
+        // POST requests are allowed either globally or at request level
+        (requestMethod === 'POST' && !globalOptions.includePostRequests && !requestOptions) ||
+        (requestMethod !== 'POST' && !ALLOWED_METHODS.includes(requestMethod)) ||
+        // Do not cache request that require authorization when includeRequestsWithAuthHeaders is falsey
+        (!globalOptions.includeRequestsWithAuthHeaders && hasAuthHeaders(req)) ||
+        globalOptions.filter?.(req) === false) {
+        return next(req);
+    }
+    const transferState = inject(TransferState);
+    const originMap = inject(HTTP_TRANSFER_CACHE_ORIGIN_MAP, {
+        optional: true,
+    });
+    if (typeof ngServerMode !== 'undefined' && !ngServerMode && originMap) {
+        throw new _RuntimeError(2803 /* RuntimeErrorCode.HTTP_ORIGIN_MAP_USED_IN_CLIENT */, ngDevMode &&
+            'Angular detected that the `HTTP_TRANSFER_CACHE_ORIGIN_MAP` token is configured and ' +
+                'present in the client side code. Please ensure that this token is only provided in the ' +
+                'server code of the application.');
+    }
+    const requestUrl = typeof ngServerMode !== 'undefined' && ngServerMode && originMap
+        ? mapRequestOriginUrl(req.url, originMap)
+        : req.url;
+    const storeKey = makeCacheKey(req, requestUrl);
+    const response = transferState.get(storeKey, null);
+    let headersToInclude = globalOptions.includeHeaders;
+    if (typeof requestOptions === 'object' && requestOptions.includeHeaders) {
+        // Request-specific config takes precedence over the global config.
+        headersToInclude = requestOptions.includeHeaders;
+    }
+    if (response) {
+        const { [BODY]: undecodedBody, [RESPONSE_TYPE]: responseType, [HEADERS]: httpHeaders, [STATUS]: status, [STATUS_TEXT]: statusText, [REQ_URL]: url, } = response;
+        // Request found in cache. Respond using it.
+        let body = undecodedBody;
+        switch (responseType) {
+            case 'arraybuffer':
+                body = new TextEncoder().encode(undecodedBody).buffer;
+                break;
+            case 'blob':
+                body = new Blob([undecodedBody]);
+                break;
+        }
+        // We want to warn users accessing a header provided from the cache
+        // That HttpTransferCache alters the headers
+        // The warning will be logged a single time by HttpHeaders instance
+        let headers = new HttpHeaders(httpHeaders);
+        if (typeof ngDevMode === 'undefined' || ngDevMode) {
+            // Append extra logic in dev mode to produce a warning when a header
+            // that was not transferred to the client is accessed in the code via `get`
+            // and `has` calls.
+            headers = appendMissingHeadersDetection(req.url, headers, headersToInclude ?? []);
+        }
+        return of(new HttpResponse({
+            body,
+            headers,
+            status,
+            statusText,
+            url,
+        }));
+    }
+    const event$ = next(req);
+    if (typeof ngServerMode !== 'undefined' && ngServerMode) {
+        // Request not found in cache. Make the request and cache it if on the server.
+        return event$.pipe(tap((event) => {
+            // Only cache successful HTTP responses.
+            if (event instanceof HttpResponse) {
+                transferState.set(storeKey, {
+                    [BODY]: event.body,
+                    [HEADERS]: getFilteredHeaders(event.headers, headersToInclude),
+                    [STATUS]: event.status,
+                    [STATUS_TEXT]: event.statusText,
+                    [REQ_URL]: requestUrl,
+                    [RESPONSE_TYPE]: req.responseType,
+                });
+            }
+        }));
+    }
+    return event$;
+}
+/** @returns true when the requests contains autorization related headers. */
+function hasAuthHeaders(req) {
+    return req.headers.has('authorization') || req.headers.has('proxy-authorization');
+}
+function getFilteredHeaders(headers, includeHeaders) {
+    if (!includeHeaders) {
+        return {};
+    }
+    const headersMap = {};
+    for (const key of includeHeaders) {
+        const values = headers.getAll(key);
+        if (values !== null) {
+            headersMap[key] = values;
+        }
+    }
+    return headersMap;
+}
+function sortAndConcatParams(params) {
+    return [...params.keys()]
+        .sort()
+        .map((k) => `${k}=${params.getAll(k)}`)
+        .join('&');
+}
+function makeCacheKey(request, mappedRequestUrl) {
+    // make the params encoded same as a url so it's easy to identify
+    const { params, method, responseType } = request;
+    const encodedParams = sortAndConcatParams(params);
+    let serializedBody = request.serializeBody();
+    if (serializedBody instanceof URLSearchParams) {
+        serializedBody = sortAndConcatParams(serializedBody);
+    }
+    else if (typeof serializedBody !== 'string') {
+        serializedBody = '';
+    }
+    const key = [method, responseType, mappedRequestUrl, serializedBody, encodedParams].join('|');
+    const hash = generateHash(key);
+    return makeStateKey(hash);
+}
+/**
+ * A method that returns a hash representation of a string using a variant of DJB2 hash
+ * algorithm.
+ *
+ * This is the same hashing logic that is used to generate component ids.
+ */
+function generateHash(value) {
+    let hash = 0;
+    for (const char of value) {
+        hash = (Math.imul(31, hash) + char.charCodeAt(0)) << 0;
+    }
+    // Force positive number hash.
+    // 2147483647 = equivalent of Integer.MAX_VALUE.
+    hash += 2147483647 + 1;
+    return hash.toString();
+}
+/**
+ * Returns the DI providers needed to enable HTTP transfer cache.
+ *
+ * By default, when using server rendering, requests are performed twice: once on the server and
+ * other one on the browser.
+ *
+ * When these providers are added, requests performed on the server are cached and reused during the
+ * bootstrapping of the application in the browser thus avoiding duplicate requests and reducing
+ * load time.
+ *
+ */
+function withHttpTransferCache(cacheOptions) {
+    return [
+        {
+            provide: CACHE_OPTIONS,
+            useFactory: () => {
+                _performanceMarkFeature('NgHttpTransferCache');
+                return { isCacheActive: true, ...cacheOptions };
+            },
+        },
+        {
+            provide: HTTP_ROOT_INTERCEPTOR_FNS,
+            useValue: transferCacheInterceptorFn,
+            multi: true,
+        },
+        {
+            provide: APP_BOOTSTRAP_LISTENER,
+            multi: true,
+            useFactory: () => {
+                const appRef = inject(ApplicationRef);
+                const cacheState = inject(CACHE_OPTIONS);
+                return () => {
+                    appRef.whenStable().then(() => {
+                        cacheState.isCacheActive = false;
+                    });
+                };
+            },
+        },
+    ];
+}
+/**
+ * This function will add a proxy to an HttpHeader to intercept calls to get/has
+ * and log a warning if the header entry requested has been removed
+ */
+function appendMissingHeadersDetection(url, headers, headersToInclude) {
+    const warningProduced = new Set();
+    return new Proxy(headers, {
+        get(target, prop) {
+            const value = Reflect.get(target, prop);
+            const methods = new Set(['get', 'has', 'getAll']);
+            if (typeof value !== 'function' || !methods.has(prop)) {
+                return value;
+            }
+            return (headerName) => {
+                // We log when the key has been removed and a warning hasn't been produced for the header
+                const key = (prop + ':' + headerName).toLowerCase(); // e.g. `get:cache-control`
+                if (!headersToInclude.includes(headerName) && !warningProduced.has(key)) {
+                    warningProduced.add(key);
+                    const truncatedUrl = _truncateMiddle(url);
+                    // TODO: create Error guide for this warning
+                    console.warn(_formatRuntimeError(2802 /* RuntimeErrorCode.HEADERS_ALTERED_BY_TRANSFER_CACHE */, `Angular detected that the \`${headerName}\` header is accessed, but the value of the header ` +
+                        `was not transferred from the server to the client by the HttpTransferCache. ` +
+                        `To include the value of the \`${headerName}\` header for the \`${truncatedUrl}\` request, ` +
+                        `use the \`includeHeaders\` list. The \`includeHeaders\` can be defined either ` +
+                        `on a request level by adding the \`transferCache\` parameter, or on an application ` +
+                        `level by adding the \`httpCacheTransfer.includeHeaders\` argument to the ` +
+                        `\`provideClientHydration()\` call. `));
+                }
+                // invoking the original method
+                return value.apply(target, [headerName]);
+            };
+        },
+    });
+}
+function mapRequestOriginUrl(url, originMap) {
+    const origin = new URL(url, 'resolve://').origin;
+    const mappedOrigin = originMap[origin];
+    if (!mappedOrigin) {
+        return url;
+    }
+    if (typeof ngDevMode === 'undefined' || ngDevMode) {
+        verifyMappedOrigin(mappedOrigin);
+    }
+    return url.replace(origin, mappedOrigin);
+}
+function verifyMappedOrigin(url) {
+    if (new URL(url, 'resolve://').pathname !== '/') {
+        throw new _RuntimeError(2804 /* RuntimeErrorCode.HTTP_ORIGIN_MAP_CONTAINS_PATH */, 'Angular detected a URL with a path segment in the value provided for the ' +
+            `\`HTTP_TRANSFER_CACHE_ORIGIN_MAP\` token: ${url}. The map should only contain origins ` +
+            'without any other segments.');
+    }
+}
+
+export { HTTP_TRANSFER_CACHE_ORIGIN_MAP, HttpClient, HttpErrorResponse, HttpEventType, HttpHeaders, HttpParams, HttpRequest, HttpResponse, httpResource, HTTP_ROOT_INTERCEPTOR_FNS as ɵHTTP_ROOT_INTERCEPTOR_FNS, withHttpTransferCache as ɵwithHttpTransferCache };
+//# sourceMappingURL=http.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/fesm2022/http.mjs.map


+ 361 - 0
node_modules/@angular/common/fesm2022/http/testing.mjs

@@ -0,0 +1,361 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { Injectable, NgModule } from '@angular/core';
+import { Observable } from 'rxjs';
+import { HttpHeaders, HttpResponse, HttpErrorResponse, HttpStatusCode, HttpEventType, HttpBackend, REQUESTS_CONTRIBUTE_TO_STABILITY, HttpClientModule } from '../module.mjs';
+import 'rxjs/operators';
+import '../xhr.mjs';
+
+/**
+ * Controller to be injected into tests, that allows for mocking and flushing
+ * of requests.
+ *
+ * @publicApi
+ */
+class HttpTestingController {
+}
+
+/**
+ * A mock requests that was received and is ready to be answered.
+ *
+ * This interface allows access to the underlying `HttpRequest`, and allows
+ * responding with `HttpEvent`s or `HttpErrorResponse`s.
+ *
+ * @publicApi
+ */
+class TestRequest {
+    request;
+    observer;
+    /**
+     * Whether the request was cancelled after it was sent.
+     */
+    get cancelled() {
+        return this._cancelled;
+    }
+    /**
+     * @internal set by `HttpClientTestingBackend`
+     */
+    _cancelled = false;
+    constructor(request, observer) {
+        this.request = request;
+        this.observer = observer;
+    }
+    /**
+     * Resolve the request by returning a body plus additional HTTP information (such as response
+     * headers) if provided.
+     * If the request specifies an expected body type, the body is converted into the requested type.
+     * Otherwise, the body is converted to `JSON` by default.
+     *
+     * Both successful and unsuccessful responses can be delivered via `flush()`.
+     */
+    flush(body, opts = {}) {
+        if (this.cancelled) {
+            throw new Error(`Cannot flush a cancelled request.`);
+        }
+        const url = this.request.urlWithParams;
+        const headers = opts.headers instanceof HttpHeaders ? opts.headers : new HttpHeaders(opts.headers);
+        body = _maybeConvertBody(this.request.responseType, body);
+        let statusText = opts.statusText;
+        let status = opts.status !== undefined ? opts.status : HttpStatusCode.Ok;
+        if (opts.status === undefined) {
+            if (body === null) {
+                status = HttpStatusCode.NoContent;
+                statusText ||= 'No Content';
+            }
+            else {
+                statusText ||= 'OK';
+            }
+        }
+        if (statusText === undefined) {
+            throw new Error('statusText is required when setting a custom status.');
+        }
+        if (status >= 200 && status < 300) {
+            this.observer.next(new HttpResponse({ body, headers, status, statusText, url }));
+            this.observer.complete();
+        }
+        else {
+            this.observer.error(new HttpErrorResponse({ error: body, headers, status, statusText, url }));
+        }
+    }
+    error(error, opts = {}) {
+        if (this.cancelled) {
+            throw new Error(`Cannot return an error for a cancelled request.`);
+        }
+        const headers = opts.headers instanceof HttpHeaders ? opts.headers : new HttpHeaders(opts.headers);
+        this.observer.error(new HttpErrorResponse({
+            error,
+            headers,
+            status: opts.status || 0,
+            statusText: opts.statusText || '',
+            url: this.request.urlWithParams,
+        }));
+    }
+    /**
+     * Deliver an arbitrary `HttpEvent` (such as a progress event) on the response stream for this
+     * request.
+     */
+    event(event) {
+        if (this.cancelled) {
+            throw new Error(`Cannot send events to a cancelled request.`);
+        }
+        this.observer.next(event);
+    }
+}
+/**
+ * Helper function to convert a response body to an ArrayBuffer.
+ */
+function _toArrayBufferBody(body) {
+    if (typeof ArrayBuffer === 'undefined') {
+        throw new Error('ArrayBuffer responses are not supported on this platform.');
+    }
+    if (body instanceof ArrayBuffer) {
+        return body;
+    }
+    throw new Error('Automatic conversion to ArrayBuffer is not supported for response type.');
+}
+/**
+ * Helper function to convert a response body to a Blob.
+ */
+function _toBlob(body) {
+    if (typeof Blob === 'undefined') {
+        throw new Error('Blob responses are not supported on this platform.');
+    }
+    if (body instanceof Blob) {
+        return body;
+    }
+    if (ArrayBuffer && body instanceof ArrayBuffer) {
+        return new Blob([body]);
+    }
+    throw new Error('Automatic conversion to Blob is not supported for response type.');
+}
+/**
+ * Helper function to convert a response body to JSON data.
+ */
+function _toJsonBody(body, format = 'JSON') {
+    if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {
+        throw new Error(`Automatic conversion to ${format} is not supported for ArrayBuffers.`);
+    }
+    if (typeof Blob !== 'undefined' && body instanceof Blob) {
+        throw new Error(`Automatic conversion to ${format} is not supported for Blobs.`);
+    }
+    if (typeof body === 'string' ||
+        typeof body === 'number' ||
+        typeof body === 'object' ||
+        typeof body === 'boolean' ||
+        Array.isArray(body)) {
+        return body;
+    }
+    throw new Error(`Automatic conversion to ${format} is not supported for response type.`);
+}
+/**
+ * Helper function to convert a response body to a string.
+ */
+function _toTextBody(body) {
+    if (typeof body === 'string') {
+        return body;
+    }
+    if (typeof ArrayBuffer !== 'undefined' && body instanceof ArrayBuffer) {
+        throw new Error('Automatic conversion to text is not supported for ArrayBuffers.');
+    }
+    if (typeof Blob !== 'undefined' && body instanceof Blob) {
+        throw new Error('Automatic conversion to text is not supported for Blobs.');
+    }
+    return JSON.stringify(_toJsonBody(body, 'text'));
+}
+/**
+ * Convert a response body to the requested type.
+ */
+function _maybeConvertBody(responseType, body) {
+    if (body === null) {
+        return null;
+    }
+    switch (responseType) {
+        case 'arraybuffer':
+            return _toArrayBufferBody(body);
+        case 'blob':
+            return _toBlob(body);
+        case 'json':
+            return _toJsonBody(body);
+        case 'text':
+            return _toTextBody(body);
+        default:
+            throw new Error(`Unsupported responseType: ${responseType}`);
+    }
+}
+
+/**
+ * A testing backend for `HttpClient` which both acts as an `HttpBackend`
+ * and as the `HttpTestingController`.
+ *
+ * `HttpClientTestingBackend` works by keeping a list of all open requests.
+ * As requests come in, they're added to the list. Users can assert that specific
+ * requests were made and then flush them. In the end, a verify() method asserts
+ * that no unexpected requests were made.
+ *
+ *
+ */
+class HttpClientTestingBackend {
+    /**
+     * List of pending requests which have not yet been expected.
+     */
+    open = [];
+    /**
+     * Used when checking if we need to throw the NOT_USING_FETCH_BACKEND_IN_SSR error
+     */
+    isTestingBackend = true;
+    /**
+     * Handle an incoming request by queueing it in the list of open requests.
+     */
+    handle(req) {
+        return new Observable((observer) => {
+            const testReq = new TestRequest(req, observer);
+            this.open.push(testReq);
+            observer.next({ type: HttpEventType.Sent });
+            return () => {
+                testReq._cancelled = true;
+            };
+        });
+    }
+    /**
+     * Helper function to search for requests in the list of open requests.
+     */
+    _match(match) {
+        if (typeof match === 'string') {
+            return this.open.filter((testReq) => testReq.request.urlWithParams === match);
+        }
+        else if (typeof match === 'function') {
+            return this.open.filter((testReq) => match(testReq.request));
+        }
+        else {
+            return this.open.filter((testReq) => (!match.method || testReq.request.method === match.method.toUpperCase()) &&
+                (!match.url || testReq.request.urlWithParams === match.url));
+        }
+    }
+    /**
+     * Search for requests in the list of open requests, and return all that match
+     * without asserting anything about the number of matches.
+     */
+    match(match) {
+        const results = this._match(match);
+        results.forEach((result) => {
+            const index = this.open.indexOf(result);
+            if (index !== -1) {
+                this.open.splice(index, 1);
+            }
+        });
+        return results;
+    }
+    /**
+     * Expect that a single outstanding request matches the given matcher, and return
+     * it.
+     *
+     * Requests returned through this API will no longer be in the list of open requests,
+     * and thus will not match twice.
+     */
+    expectOne(match, description) {
+        description ||= this.descriptionFromMatcher(match);
+        const matches = this.match(match);
+        if (matches.length > 1) {
+            throw new Error(`Expected one matching request for criteria "${description}", found ${matches.length} requests.`);
+        }
+        if (matches.length === 0) {
+            let message = `Expected one matching request for criteria "${description}", found none.`;
+            if (this.open.length > 0) {
+                // Show the methods and URLs of open requests in the error, for convenience.
+                const requests = this.open.map(describeRequest).join(', ');
+                message += ` Requests received are: ${requests}.`;
+            }
+            throw new Error(message);
+        }
+        return matches[0];
+    }
+    /**
+     * Expect that no outstanding requests match the given matcher, and throw an error
+     * if any do.
+     */
+    expectNone(match, description) {
+        description ||= this.descriptionFromMatcher(match);
+        const matches = this.match(match);
+        if (matches.length > 0) {
+            throw new Error(`Expected zero matching requests for criteria "${description}", found ${matches.length}.`);
+        }
+    }
+    /**
+     * Validate that there are no outstanding requests.
+     */
+    verify(opts = {}) {
+        let open = this.open;
+        // It's possible that some requests may be cancelled, and this is expected.
+        // The user can ask to ignore open requests which have been cancelled.
+        if (opts.ignoreCancelled) {
+            open = open.filter((testReq) => !testReq.cancelled);
+        }
+        if (open.length > 0) {
+            // Show the methods and URLs of open requests in the error, for convenience.
+            const requests = open.map(describeRequest).join(', ');
+            throw new Error(`Expected no open requests, found ${open.length}: ${requests}`);
+        }
+    }
+    descriptionFromMatcher(matcher) {
+        if (typeof matcher === 'string') {
+            return `Match URL: ${matcher}`;
+        }
+        else if (typeof matcher === 'object') {
+            const method = matcher.method || '(any)';
+            const url = matcher.url || '(any)';
+            return `Match method: ${method}, URL: ${url}`;
+        }
+        else {
+            return `Match by function: ${matcher.name}`;
+        }
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientTestingBackend });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
+            type: Injectable
+        }] });
+function describeRequest(testRequest) {
+    const url = testRequest.request.urlWithParams;
+    const method = testRequest.request.method;
+    return `${method} ${url}`;
+}
+
+function provideHttpClientTesting() {
+    return [
+        HttpClientTestingBackend,
+        { provide: HttpBackend, useExisting: HttpClientTestingBackend },
+        { provide: HttpTestingController, useExisting: HttpClientTestingBackend },
+        { provide: REQUESTS_CONTRIBUTE_TO_STABILITY, useValue: false },
+    ];
+}
+
+/**
+ * Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.
+ *
+ * Inject `HttpTestingController` to expect and flush requests in your tests.
+ *
+ * @publicApi
+ *
+ * @deprecated Add `provideHttpClientTesting()` to your providers instead.
+ */
+class HttpClientTestingModule {
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
+    static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] });
+    static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientTestingModule, providers: [provideHttpClientTesting()], imports: [HttpClientModule] });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientTestingModule, decorators: [{
+            type: NgModule,
+            args: [{
+                    imports: [HttpClientModule],
+                    providers: [provideHttpClientTesting()],
+                }]
+        }] });
+
+export { HttpClientTestingModule, HttpTestingController, TestRequest, provideHttpClientTesting };
+//# sourceMappingURL=testing.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/fesm2022/http/testing.mjs.map


+ 637 - 0
node_modules/@angular/common/fesm2022/location.mjs

@@ -0,0 +1,637 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { inject, Injectable, InjectionToken, DOCUMENT, Optional, Inject, ɵɵinject as __inject } from '@angular/core';
+import { Subject } from 'rxjs';
+
+let _DOM = null;
+function getDOM() {
+    return _DOM;
+}
+function setRootDomAdapter(adapter) {
+    _DOM ??= adapter;
+}
+/**
+ * Provides DOM operations in an environment-agnostic way.
+ *
+ * @security Tread carefully! Interacting with the DOM directly is dangerous and
+ * can introduce XSS risks.
+ */
+class DomAdapter {
+}
+
+/**
+ * This class should not be used directly by an application developer. Instead, use
+ * {@link Location}.
+ *
+ * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be
+ * platform-agnostic.
+ * This means that we can have different implementation of `PlatformLocation` for the different
+ * platforms that Angular supports. For example, `@angular/platform-browser` provides an
+ * implementation specific to the browser environment, while `@angular/platform-server` provides
+ * one suitable for use with server-side rendering.
+ *
+ * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}
+ * when they need to interact with the DOM APIs like pushState, popState, etc.
+ *
+ * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly
+ * by the {@link /api/router/Router Router} in order to navigate between routes. Since all interactions between
+ * {@link /api/router/Router Router} /
+ * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`
+ * class, they are all platform-agnostic.
+ *
+ * @publicApi
+ */
+class PlatformLocation {
+    historyGo(relativePosition) {
+        throw new Error(ngDevMode ? 'Not implemented' : '');
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PlatformLocation, decorators: [{
+            type: Injectable,
+            args: [{ providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }]
+        }] });
+/**
+ * @description
+ * Indicates when a location is initialized.
+ *
+ * @publicApi
+ */
+const LOCATION_INITIALIZED = new InjectionToken(ngDevMode ? 'Location Initialized' : '');
+/**
+ * `PlatformLocation` encapsulates all of the direct calls to platform APIs.
+ * This class should not be used directly by an application developer. Instead, use
+ * {@link Location}.
+ *
+ * @publicApi
+ */
+class BrowserPlatformLocation extends PlatformLocation {
+    _location;
+    _history;
+    _doc = inject(DOCUMENT);
+    constructor() {
+        super();
+        this._location = window.location;
+        this._history = window.history;
+    }
+    getBaseHrefFromDOM() {
+        return getDOM().getBaseHref(this._doc);
+    }
+    onPopState(fn) {
+        const window = getDOM().getGlobalEventTarget(this._doc, 'window');
+        window.addEventListener('popstate', fn, false);
+        return () => window.removeEventListener('popstate', fn);
+    }
+    onHashChange(fn) {
+        const window = getDOM().getGlobalEventTarget(this._doc, 'window');
+        window.addEventListener('hashchange', fn, false);
+        return () => window.removeEventListener('hashchange', fn);
+    }
+    get href() {
+        return this._location.href;
+    }
+    get protocol() {
+        return this._location.protocol;
+    }
+    get hostname() {
+        return this._location.hostname;
+    }
+    get port() {
+        return this._location.port;
+    }
+    get pathname() {
+        return this._location.pathname;
+    }
+    get search() {
+        return this._location.search;
+    }
+    get hash() {
+        return this._location.hash;
+    }
+    set pathname(newPath) {
+        this._location.pathname = newPath;
+    }
+    pushState(state, title, url) {
+        this._history.pushState(state, title, url);
+    }
+    replaceState(state, title, url) {
+        this._history.replaceState(state, title, url);
+    }
+    forward() {
+        this._history.forward();
+    }
+    back() {
+        this._history.back();
+    }
+    historyGo(relativePosition = 0) {
+        this._history.go(relativePosition);
+    }
+    getState() {
+        return this._history.state;
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: BrowserPlatformLocation, decorators: [{
+            type: Injectable,
+            args: [{
+                    providedIn: 'platform',
+                    useFactory: () => new BrowserPlatformLocation(),
+                }]
+        }], ctorParameters: () => [] });
+
+/**
+ * Joins two parts of a URL with a slash if needed.
+ *
+ * @param start  URL string
+ * @param end    URL string
+ *
+ *
+ * @returns The joined URL string.
+ */
+function joinWithSlash(start, end) {
+    // If `start` is an empty string, return `end` as the result.
+    if (!start)
+        return end;
+    // If `end` is an empty string, return `start` as the result.
+    if (!end)
+        return start;
+    // If `start` ends with a slash, remove the leading slash from `end`.
+    if (start.endsWith('/')) {
+        return end.startsWith('/') ? start + end.slice(1) : start + end;
+    }
+    // If `start` doesn't end with a slash, add one if `end` doesn't start with a slash.
+    return end.startsWith('/') ? start + end : `${start}/${end}`;
+}
+/**
+ * Removes a trailing slash from a URL string if needed.
+ * Looks for the first occurrence of either `#`, `?`, or the end of the
+ * line as `/` characters and removes the trailing slash if one exists.
+ *
+ * @param url URL string.
+ *
+ * @returns The URL string, modified if needed.
+ */
+function stripTrailingSlash(url) {
+    // Find the index of the first occurrence of `#`, `?`, or the end of the string.
+    // This marks the start of the query string, fragment, or the end of the URL path.
+    const pathEndIdx = url.search(/#|\?|$/);
+    // Check if the character before `pathEndIdx` is a trailing slash.
+    // If it is, remove the trailing slash and return the modified URL.
+    // Otherwise, return the URL as is.
+    return url[pathEndIdx - 1] === '/' ? url.slice(0, pathEndIdx - 1) + url.slice(pathEndIdx) : url;
+}
+/**
+ * Normalizes URL parameters by prepending with `?` if needed.
+ *
+ * @param  params String of URL parameters.
+ *
+ * @returns The normalized URL parameters string.
+ */
+function normalizeQueryParams(params) {
+    return params && params[0] !== '?' ? `?${params}` : params;
+}
+
+/**
+ * Enables the `Location` service to read route state from the browser's URL.
+ * Angular provides two strategies:
+ * `HashLocationStrategy` and `PathLocationStrategy`.
+ *
+ * Applications should use the `Router` or `Location` services to
+ * interact with application route state.
+ *
+ * For instance, `HashLocationStrategy` produces URLs like
+ * <code class="no-auto-link">http://example.com/#/foo</code>,
+ * and `PathLocationStrategy` produces
+ * <code class="no-auto-link">http://example.com/foo</code> as an equivalent URL.
+ *
+ * See these two classes for more.
+ *
+ * @publicApi
+ */
+class LocationStrategy {
+    historyGo(relativePosition) {
+        throw new Error(ngDevMode ? 'Not implemented' : '');
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LocationStrategy, decorators: [{
+            type: Injectable,
+            args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]
+        }] });
+/**
+ * A predefined DI token for the base href
+ * to be used with the `PathLocationStrategy`.
+ * The base href is the URL prefix that should be preserved when generating
+ * and recognizing URLs.
+ *
+ * @usageNotes
+ *
+ * The following example shows how to use this token to configure the root app injector
+ * with a base href value, so that the DI framework can supply the dependency anywhere in the app.
+ *
+ * ```ts
+ * import {NgModule} from '@angular/core';
+ * import {APP_BASE_HREF} from '@angular/common';
+ *
+ * @NgModule({
+ *   providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]
+ * })
+ * class AppModule {}
+ * ```
+ *
+ * @publicApi
+ */
+const APP_BASE_HREF = new InjectionToken(ngDevMode ? 'appBaseHref' : '');
+/**
+ * @description
+ * A {@link LocationStrategy} used to configure the {@link Location} service to
+ * represent its state in the
+ * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the
+ * browser's URL.
+ *
+ * If you're using `PathLocationStrategy`, you may provide a {@link APP_BASE_HREF}
+ * or add a `<base href>` element to the document to override the default.
+ *
+ * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call
+ * `location.go('/foo')`, the browser's URL will become
+ * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,
+ * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.
+ *
+ * Similarly, if you add `<base href='/my/app/'/>` to the document and call
+ * `location.go('/foo')`, the browser's URL will become
+ * `example.com/my/app/foo`.
+ *
+ * Note that when using `PathLocationStrategy`, neither the query nor
+ * the fragment in the `<base href>` will be preserved, as outlined
+ * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).
+ *
+ * @usageNotes
+ *
+ * ### Example
+ *
+ * {@example common/location/ts/path_location_component.ts region='LocationComponent'}
+ *
+ * @publicApi
+ */
+class PathLocationStrategy extends LocationStrategy {
+    _platformLocation;
+    _baseHref;
+    _removeListenerFns = [];
+    constructor(_platformLocation, href) {
+        super();
+        this._platformLocation = _platformLocation;
+        this._baseHref =
+            href ??
+                this._platformLocation.getBaseHrefFromDOM() ??
+                inject(DOCUMENT).location?.origin ??
+                '';
+    }
+    /** @docs-private */
+    ngOnDestroy() {
+        while (this._removeListenerFns.length) {
+            this._removeListenerFns.pop()();
+        }
+    }
+    onPopState(fn) {
+        this._removeListenerFns.push(this._platformLocation.onPopState(fn), this._platformLocation.onHashChange(fn));
+    }
+    getBaseHref() {
+        return this._baseHref;
+    }
+    prepareExternalUrl(internal) {
+        return joinWithSlash(this._baseHref, internal);
+    }
+    path(includeHash = false) {
+        const pathname = this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);
+        const hash = this._platformLocation.hash;
+        return hash && includeHash ? `${pathname}${hash}` : pathname;
+    }
+    pushState(state, title, url, queryParams) {
+        const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));
+        this._platformLocation.pushState(state, title, externalUrl);
+    }
+    replaceState(state, title, url, queryParams) {
+        const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));
+        this._platformLocation.replaceState(state, title, externalUrl);
+    }
+    forward() {
+        this._platformLocation.forward();
+    }
+    back() {
+        this._platformLocation.back();
+    }
+    getState() {
+        return this._platformLocation.getState();
+    }
+    historyGo(relativePosition = 0) {
+        this._platformLocation.historyGo?.(relativePosition);
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PathLocationStrategy, decorators: [{
+            type: Injectable,
+            args: [{ providedIn: 'root' }]
+        }], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
+                    type: Optional
+                }, {
+                    type: Inject,
+                    args: [APP_BASE_HREF]
+                }] }] });
+
+/**
+ * @description
+ *
+ * A service that applications can use to interact with a browser's URL.
+ *
+ * Depending on the `LocationStrategy` used, `Location` persists
+ * to the URL's path or the URL's hash segment.
+ *
+ * @usageNotes
+ *
+ * It's better to use the `Router.navigate()` service to trigger route changes. Use
+ * `Location` only if you need to interact with or create normalized URLs outside of
+ * routing.
+ *
+ * `Location` is responsible for normalizing the URL against the application's base href.
+ * A normalized URL is absolute from the URL host, includes the application's base href, and has no
+ * trailing slash:
+ * - `/my/app/user/123` is normalized
+ * - `my/app/user/123` **is not** normalized
+ * - `/my/app/user/123/` **is not** normalized
+ *
+ * ### Example
+ *
+ * {@example common/location/ts/path_location_component.ts region='LocationComponent'}
+ *
+ * @publicApi
+ */
+class Location {
+    /** @internal */
+    _subject = new Subject();
+    /** @internal */
+    _basePath;
+    /** @internal */
+    _locationStrategy;
+    /** @internal */
+    _urlChangeListeners = [];
+    /** @internal */
+    _urlChangeSubscription = null;
+    constructor(locationStrategy) {
+        this._locationStrategy = locationStrategy;
+        const baseHref = this._locationStrategy.getBaseHref();
+        // Note: This class's interaction with base HREF does not fully follow the rules
+        // outlined in the spec https://www.freesoft.org/CIE/RFC/1808/18.htm.
+        // Instead of trying to fix individual bugs with more and more code, we should
+        // investigate using the URL constructor and providing the base as a second
+        // argument.
+        // https://developer.mozilla.org/en-US/docs/Web/API/URL/URL#parameters
+        this._basePath = _stripOrigin(stripTrailingSlash(_stripIndexHtml(baseHref)));
+        this._locationStrategy.onPopState((ev) => {
+            this._subject.next({
+                'url': this.path(true),
+                'pop': true,
+                'state': ev.state,
+                'type': ev.type,
+            });
+        });
+    }
+    /** @docs-private */
+    ngOnDestroy() {
+        this._urlChangeSubscription?.unsubscribe();
+        this._urlChangeListeners = [];
+    }
+    /**
+     * Normalizes the URL path for this location.
+     *
+     * @param includeHash True to include an anchor fragment in the path.
+     *
+     * @returns The normalized URL path.
+     */
+    // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is
+    // removed.
+    path(includeHash = false) {
+        return this.normalize(this._locationStrategy.path(includeHash));
+    }
+    /**
+     * Reports the current state of the location history.
+     * @returns The current value of the `history.state` object.
+     */
+    getState() {
+        return this._locationStrategy.getState();
+    }
+    /**
+     * Normalizes the given path and compares to the current normalized path.
+     *
+     * @param path The given URL path.
+     * @param query Query parameters.
+     *
+     * @returns True if the given URL path is equal to the current normalized path, false
+     * otherwise.
+     */
+    isCurrentPathEqualTo(path, query = '') {
+        return this.path() == this.normalize(path + normalizeQueryParams(query));
+    }
+    /**
+     * Normalizes a URL path by stripping any trailing slashes.
+     *
+     * @param url String representing a URL.
+     *
+     * @returns The normalized URL string.
+     */
+    normalize(url) {
+        return Location.stripTrailingSlash(_stripBasePath(this._basePath, _stripIndexHtml(url)));
+    }
+    /**
+     * Normalizes an external URL path.
+     * If the given URL doesn't begin with a leading slash (`'/'`), adds one
+     * before normalizing. Adds a hash if `HashLocationStrategy` is
+     * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.
+     *
+     * @param url String representing a URL.
+     *
+     * @returns  A normalized platform-specific URL.
+     */
+    prepareExternalUrl(url) {
+        if (url && url[0] !== '/') {
+            url = '/' + url;
+        }
+        return this._locationStrategy.prepareExternalUrl(url);
+    }
+    // TODO: rename this method to pushState
+    /**
+     * Changes the browser's URL to a normalized version of a given URL, and pushes a
+     * new item onto the platform's history.
+     *
+     * @param path  URL path to normalize.
+     * @param query Query parameters.
+     * @param state Location history state.
+     *
+     */
+    go(path, query = '', state = null) {
+        this._locationStrategy.pushState(state, '', path, query);
+        this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
+    }
+    /**
+     * Changes the browser's URL to a normalized version of the given URL, and replaces
+     * the top item on the platform's history stack.
+     *
+     * @param path  URL path to normalize.
+     * @param query Query parameters.
+     * @param state Location history state.
+     */
+    replaceState(path, query = '', state = null) {
+        this._locationStrategy.replaceState(state, '', path, query);
+        this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
+    }
+    /**
+     * Navigates forward in the platform's history.
+     */
+    forward() {
+        this._locationStrategy.forward();
+    }
+    /**
+     * Navigates back in the platform's history.
+     */
+    back() {
+        this._locationStrategy.back();
+    }
+    /**
+     * Navigate to a specific page from session history, identified by its relative position to the
+     * current page.
+     *
+     * @param relativePosition  Position of the target page in the history relative to the current
+     *     page.
+     * A negative value moves backwards, a positive value moves forwards, e.g. `location.historyGo(2)`
+     * moves forward two pages and `location.historyGo(-2)` moves back two pages. When we try to go
+     * beyond what's stored in the history session, we stay in the current page. Same behaviour occurs
+     * when `relativePosition` equals 0.
+     * @see https://developer.mozilla.org/en-US/docs/Web/API/History_API#Moving_to_a_specific_point_in_history
+     */
+    historyGo(relativePosition = 0) {
+        this._locationStrategy.historyGo?.(relativePosition);
+    }
+    /**
+     * Registers a URL change listener. Use to catch updates performed by the Angular
+     * framework that are not detectible through "popstate" or "hashchange" events.
+     *
+     * @param fn The change handler function, which take a URL and a location history state.
+     * @returns A function that, when executed, unregisters a URL change listener.
+     */
+    onUrlChange(fn) {
+        this._urlChangeListeners.push(fn);
+        this._urlChangeSubscription ??= this.subscribe((v) => {
+            this._notifyUrlChangeListeners(v.url, v.state);
+        });
+        return () => {
+            const fnIndex = this._urlChangeListeners.indexOf(fn);
+            this._urlChangeListeners.splice(fnIndex, 1);
+            if (this._urlChangeListeners.length === 0) {
+                this._urlChangeSubscription?.unsubscribe();
+                this._urlChangeSubscription = null;
+            }
+        };
+    }
+    /** @internal */
+    _notifyUrlChangeListeners(url = '', state) {
+        this._urlChangeListeners.forEach((fn) => fn(url, state));
+    }
+    /**
+     * Subscribes to the platform's `popState` events.
+     *
+     * Note: `Location.go()` does not trigger the `popState` event in the browser. Use
+     * `Location.onUrlChange()` to subscribe to URL changes instead.
+     *
+     * @param value Event that is triggered when the state history changes.
+     * @param exception The exception to throw.
+     *
+     * @see [onpopstate](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate)
+     *
+     * @returns Subscribed events.
+     */
+    subscribe(onNext, onThrow, onReturn) {
+        return this._subject.subscribe({
+            next: onNext,
+            error: onThrow ?? undefined,
+            complete: onReturn ?? undefined,
+        });
+    }
+    /**
+     * Normalizes URL parameters by prepending with `?` if needed.
+     *
+     * @param  params String of URL parameters.
+     *
+     * @returns The normalized URL parameters string.
+     */
+    static normalizeQueryParams = normalizeQueryParams;
+    /**
+     * Joins two parts of a URL with a slash if needed.
+     *
+     * @param start  URL string
+     * @param end    URL string
+     *
+     *
+     * @returns The joined URL string.
+     */
+    static joinWithSlash = joinWithSlash;
+    /**
+     * Removes a trailing slash from a URL string if needed.
+     * Looks for the first occurrence of either `#`, `?`, or the end of the
+     * line as `/` characters and removes the trailing slash if one exists.
+     *
+     * @param url URL string.
+     *
+     * @returns The URL string, modified if needed.
+     */
+    static stripTrailingSlash = stripTrailingSlash;
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: Location, decorators: [{
+            type: Injectable,
+            args: [{
+                    providedIn: 'root',
+                    // See #23917
+                    useFactory: createLocation,
+                }]
+        }], ctorParameters: () => [{ type: LocationStrategy }] });
+function createLocation() {
+    return new Location(__inject(LocationStrategy));
+}
+function _stripBasePath(basePath, url) {
+    if (!basePath || !url.startsWith(basePath)) {
+        return url;
+    }
+    const strippedUrl = url.substring(basePath.length);
+    if (strippedUrl === '' || ['/', ';', '?', '#'].includes(strippedUrl[0])) {
+        return strippedUrl;
+    }
+    return url;
+}
+function _stripIndexHtml(url) {
+    return url.replace(/\/index.html$/, '');
+}
+function _stripOrigin(baseHref) {
+    // DO NOT REFACTOR! Previously, this check looked like this:
+    // `/^(https?:)?\/\//.test(baseHref)`, but that resulted in
+    // syntactically incorrect code after Closure Compiler minification.
+    // This was likely caused by a bug in Closure Compiler, but
+    // for now, the check is rewritten to use `new RegExp` instead.
+    const isAbsoluteUrl = new RegExp('^(https?:)?//').test(baseHref);
+    if (isAbsoluteUrl) {
+        const [, pathname] = baseHref.split(/\/\/[^\/]+/);
+        return pathname;
+    }
+    return baseHref;
+}
+
+export { APP_BASE_HREF, BrowserPlatformLocation, DomAdapter, LOCATION_INITIALIZED, Location, LocationStrategy, PathLocationStrategy, PlatformLocation, getDOM, joinWithSlash, normalizeQueryParams, setRootDomAdapter };
+//# sourceMappingURL=location.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/fesm2022/location.mjs.map


+ 3106 - 0
node_modules/@angular/common/fesm2022/module.mjs

@@ -0,0 +1,3106 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { ɵRuntimeError as _RuntimeError, Injectable, InjectionToken, inject, NgZone, DestroyRef, ɵformatRuntimeError as _formatRuntimeError, PendingTasks, ɵConsole as _Console, runInInjectionContext, DOCUMENT, Inject, makeEnvironmentProviders, NgModule } from '@angular/core';
+import { concatMap, filter, map, finalize, switchMap } from 'rxjs/operators';
+import { of, Observable, from } from 'rxjs';
+import { XhrFactory, parseCookieValue } from './xhr.mjs';
+
+/**
+ * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
+ * `HttpResponse`.
+ *
+ * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the
+ * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
+ * `HttpBackend`.
+ *
+ * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.
+ *
+ * @publicApi
+ */
+class HttpHandler {
+}
+/**
+ * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
+ *
+ * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.
+ *
+ * When injected, `HttpBackend` dispatches requests directly to the backend, without going
+ * through the interceptor chain.
+ *
+ * @publicApi
+ */
+class HttpBackend {
+}
+
+/**
+ * Represents the header configuration options for an HTTP request.
+ * Instances are immutable. Modifying methods return a cloned
+ * instance with the change. The original object is never changed.
+ *
+ * @publicApi
+ */
+class HttpHeaders {
+    /**
+     * Internal map of lowercase header names to values.
+     */
+    headers;
+    /**
+     * Internal map of lowercased header names to the normalized
+     * form of the name (the form seen first).
+     */
+    normalizedNames = new Map();
+    /**
+     * Complete the lazy initialization of this object (needed before reading).
+     */
+    lazyInit;
+    /**
+     * Queued updates to be materialized the next initialization.
+     */
+    lazyUpdate = null;
+    /**  Constructs a new HTTP header object with the given values.*/
+    constructor(headers) {
+        if (!headers) {
+            this.headers = new Map();
+        }
+        else if (typeof headers === 'string') {
+            this.lazyInit = () => {
+                this.headers = new Map();
+                headers.split('\n').forEach((line) => {
+                    const index = line.indexOf(':');
+                    if (index > 0) {
+                        const name = line.slice(0, index);
+                        const value = line.slice(index + 1).trim();
+                        this.addHeaderEntry(name, value);
+                    }
+                });
+            };
+        }
+        else if (typeof Headers !== 'undefined' && headers instanceof Headers) {
+            this.headers = new Map();
+            headers.forEach((value, name) => {
+                this.addHeaderEntry(name, value);
+            });
+        }
+        else {
+            this.lazyInit = () => {
+                if (typeof ngDevMode === 'undefined' || ngDevMode) {
+                    assertValidHeaders(headers);
+                }
+                this.headers = new Map();
+                Object.entries(headers).forEach(([name, values]) => {
+                    this.setHeaderEntries(name, values);
+                });
+            };
+        }
+    }
+    /**
+     * Checks for existence of a given header.
+     *
+     * @param name The header name to check for existence.
+     *
+     * @returns True if the header exists, false otherwise.
+     */
+    has(name) {
+        this.init();
+        return this.headers.has(name.toLowerCase());
+    }
+    /**
+     * Retrieves the first value of a given header.
+     *
+     * @param name The header name.
+     *
+     * @returns The value string if the header exists, null otherwise
+     */
+    get(name) {
+        this.init();
+        const values = this.headers.get(name.toLowerCase());
+        return values && values.length > 0 ? values[0] : null;
+    }
+    /**
+     * Retrieves the names of the headers.
+     *
+     * @returns A list of header names.
+     */
+    keys() {
+        this.init();
+        return Array.from(this.normalizedNames.values());
+    }
+    /**
+     * Retrieves a list of values for a given header.
+     *
+     * @param name The header name from which to retrieve values.
+     *
+     * @returns A string of values if the header exists, null otherwise.
+     */
+    getAll(name) {
+        this.init();
+        return this.headers.get(name.toLowerCase()) || null;
+    }
+    /**
+     * Appends a new value to the existing set of values for a header
+     * and returns them in a clone of the original instance.
+     *
+     * @param name The header name for which to append the values.
+     * @param value The value to append.
+     *
+     * @returns A clone of the HTTP headers object with the value appended to the given header.
+     */
+    append(name, value) {
+        return this.clone({ name, value, op: 'a' });
+    }
+    /**
+     * Sets or modifies a value for a given header in a clone of the original instance.
+     * If the header already exists, its value is replaced with the given value
+     * in the returned object.
+     *
+     * @param name The header name.
+     * @param value The value or values to set or override for the given header.
+     *
+     * @returns A clone of the HTTP headers object with the newly set header value.
+     */
+    set(name, value) {
+        return this.clone({ name, value, op: 's' });
+    }
+    /**
+     * Deletes values for a given header in a clone of the original instance.
+     *
+     * @param name The header name.
+     * @param value The value or values to delete for the given header.
+     *
+     * @returns A clone of the HTTP headers object with the given value deleted.
+     */
+    delete(name, value) {
+        return this.clone({ name, value, op: 'd' });
+    }
+    maybeSetNormalizedName(name, lcName) {
+        if (!this.normalizedNames.has(lcName)) {
+            this.normalizedNames.set(lcName, name);
+        }
+    }
+    init() {
+        if (!!this.lazyInit) {
+            if (this.lazyInit instanceof HttpHeaders) {
+                this.copyFrom(this.lazyInit);
+            }
+            else {
+                this.lazyInit();
+            }
+            this.lazyInit = null;
+            if (!!this.lazyUpdate) {
+                this.lazyUpdate.forEach((update) => this.applyUpdate(update));
+                this.lazyUpdate = null;
+            }
+        }
+    }
+    copyFrom(other) {
+        other.init();
+        Array.from(other.headers.keys()).forEach((key) => {
+            this.headers.set(key, other.headers.get(key));
+            this.normalizedNames.set(key, other.normalizedNames.get(key));
+        });
+    }
+    clone(update) {
+        const clone = new HttpHeaders();
+        clone.lazyInit = !!this.lazyInit && this.lazyInit instanceof HttpHeaders ? this.lazyInit : this;
+        clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);
+        return clone;
+    }
+    applyUpdate(update) {
+        const key = update.name.toLowerCase();
+        switch (update.op) {
+            case 'a':
+            case 's':
+                let value = update.value;
+                if (typeof value === 'string') {
+                    value = [value];
+                }
+                if (value.length === 0) {
+                    return;
+                }
+                this.maybeSetNormalizedName(update.name, key);
+                const base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];
+                base.push(...value);
+                this.headers.set(key, base);
+                break;
+            case 'd':
+                const toDelete = update.value;
+                if (!toDelete) {
+                    this.headers.delete(key);
+                    this.normalizedNames.delete(key);
+                }
+                else {
+                    let existing = this.headers.get(key);
+                    if (!existing) {
+                        return;
+                    }
+                    existing = existing.filter((value) => toDelete.indexOf(value) === -1);
+                    if (existing.length === 0) {
+                        this.headers.delete(key);
+                        this.normalizedNames.delete(key);
+                    }
+                    else {
+                        this.headers.set(key, existing);
+                    }
+                }
+                break;
+        }
+    }
+    addHeaderEntry(name, value) {
+        const key = name.toLowerCase();
+        this.maybeSetNormalizedName(name, key);
+        if (this.headers.has(key)) {
+            this.headers.get(key).push(value);
+        }
+        else {
+            this.headers.set(key, [value]);
+        }
+    }
+    setHeaderEntries(name, values) {
+        const headerValues = (Array.isArray(values) ? values : [values]).map((value) => value.toString());
+        const key = name.toLowerCase();
+        this.headers.set(key, headerValues);
+        this.maybeSetNormalizedName(name, key);
+    }
+    /**
+     * @internal
+     */
+    forEach(fn) {
+        this.init();
+        Array.from(this.normalizedNames.keys()).forEach((key) => fn(this.normalizedNames.get(key), this.headers.get(key)));
+    }
+}
+/**
+ * Verifies that the headers object has the right shape: the values
+ * must be either strings, numbers or arrays. Throws an error if an invalid
+ * header value is present.
+ */
+function assertValidHeaders(headers) {
+    for (const [key, value] of Object.entries(headers)) {
+        if (!(typeof value === 'string' || typeof value === 'number') && !Array.isArray(value)) {
+            throw new Error(`Unexpected value of the \`${key}\` header provided. ` +
+                `Expecting either a string, a number or an array, but got: \`${value}\`.`);
+        }
+    }
+}
+
+/**
+ * Provides encoding and decoding of URL parameter and query-string values.
+ *
+ * Serializes and parses URL parameter keys and values to encode and decode them.
+ * If you pass URL query parameters without encoding,
+ * the query parameters can be misinterpreted at the receiving end.
+ *
+ *
+ * @publicApi
+ */
+class HttpUrlEncodingCodec {
+    /**
+     * Encodes a key name for a URL parameter or query-string.
+     * @param key The key name.
+     * @returns The encoded key name.
+     */
+    encodeKey(key) {
+        return standardEncoding(key);
+    }
+    /**
+     * Encodes the value of a URL parameter or query-string.
+     * @param value The value.
+     * @returns The encoded value.
+     */
+    encodeValue(value) {
+        return standardEncoding(value);
+    }
+    /**
+     * Decodes an encoded URL parameter or query-string key.
+     * @param key The encoded key name.
+     * @returns The decoded key name.
+     */
+    decodeKey(key) {
+        return decodeURIComponent(key);
+    }
+    /**
+     * Decodes an encoded URL parameter or query-string value.
+     * @param value The encoded value.
+     * @returns The decoded value.
+     */
+    decodeValue(value) {
+        return decodeURIComponent(value);
+    }
+}
+function paramParser(rawParams, codec) {
+    const map = new Map();
+    if (rawParams.length > 0) {
+        // The `window.location.search` can be used while creating an instance of the `HttpParams` class
+        // (e.g. `new HttpParams({ fromString: window.location.search })`). The `window.location.search`
+        // may start with the `?` char, so we strip it if it's present.
+        const params = rawParams.replace(/^\?/, '').split('&');
+        params.forEach((param) => {
+            const eqIdx = param.indexOf('=');
+            const [key, val] = eqIdx == -1
+                ? [codec.decodeKey(param), '']
+                : [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))];
+            const list = map.get(key) || [];
+            list.push(val);
+            map.set(key, list);
+        });
+    }
+    return map;
+}
+/**
+ * Encode input string with standard encodeURIComponent and then un-encode specific characters.
+ */
+const STANDARD_ENCODING_REGEX = /%(\d[a-f0-9])/gi;
+const STANDARD_ENCODING_REPLACEMENTS = {
+    '40': '@',
+    '3A': ':',
+    '24': '$',
+    '2C': ',',
+    '3B': ';',
+    '3D': '=',
+    '3F': '?',
+    '2F': '/',
+};
+function standardEncoding(v) {
+    return encodeURIComponent(v).replace(STANDARD_ENCODING_REGEX, (s, t) => STANDARD_ENCODING_REPLACEMENTS[t] ?? s);
+}
+function valueToString(value) {
+    return `${value}`;
+}
+/**
+ * An HTTP request/response body that represents serialized parameters,
+ * per the MIME type `application/x-www-form-urlencoded`.
+ *
+ * This class is immutable; all mutation operations return a new instance.
+ *
+ * @publicApi
+ */
+class HttpParams {
+    map;
+    encoder;
+    updates = null;
+    cloneFrom = null;
+    constructor(options = {}) {
+        this.encoder = options.encoder || new HttpUrlEncodingCodec();
+        if (options.fromString) {
+            if (options.fromObject) {
+                throw new _RuntimeError(2805 /* RuntimeErrorCode.CANNOT_SPECIFY_BOTH_FROM_STRING_AND_FROM_OBJECT */, ngDevMode && 'Cannot specify both fromString and fromObject.');
+            }
+            this.map = paramParser(options.fromString, this.encoder);
+        }
+        else if (!!options.fromObject) {
+            this.map = new Map();
+            Object.keys(options.fromObject).forEach((key) => {
+                const value = options.fromObject[key];
+                // convert the values to strings
+                const values = Array.isArray(value) ? value.map(valueToString) : [valueToString(value)];
+                this.map.set(key, values);
+            });
+        }
+        else {
+            this.map = null;
+        }
+    }
+    /**
+     * Reports whether the body includes one or more values for a given parameter.
+     * @param param The parameter name.
+     * @returns True if the parameter has one or more values,
+     * false if it has no value or is not present.
+     */
+    has(param) {
+        this.init();
+        return this.map.has(param);
+    }
+    /**
+     * Retrieves the first value for a parameter.
+     * @param param The parameter name.
+     * @returns The first value of the given parameter,
+     * or `null` if the parameter is not present.
+     */
+    get(param) {
+        this.init();
+        const res = this.map.get(param);
+        return !!res ? res[0] : null;
+    }
+    /**
+     * Retrieves all values for a  parameter.
+     * @param param The parameter name.
+     * @returns All values in a string array,
+     * or `null` if the parameter not present.
+     */
+    getAll(param) {
+        this.init();
+        return this.map.get(param) || null;
+    }
+    /**
+     * Retrieves all the parameters for this body.
+     * @returns The parameter names in a string array.
+     */
+    keys() {
+        this.init();
+        return Array.from(this.map.keys());
+    }
+    /**
+     * Appends a new value to existing values for a parameter.
+     * @param param The parameter name.
+     * @param value The new value to add.
+     * @return A new body with the appended value.
+     */
+    append(param, value) {
+        return this.clone({ param, value, op: 'a' });
+    }
+    /**
+     * Constructs a new body with appended values for the given parameter name.
+     * @param params parameters and values
+     * @return A new body with the new value.
+     */
+    appendAll(params) {
+        const updates = [];
+        Object.keys(params).forEach((param) => {
+            const value = params[param];
+            if (Array.isArray(value)) {
+                value.forEach((_value) => {
+                    updates.push({ param, value: _value, op: 'a' });
+                });
+            }
+            else {
+                updates.push({ param, value: value, op: 'a' });
+            }
+        });
+        return this.clone(updates);
+    }
+    /**
+     * Replaces the value for a parameter.
+     * @param param The parameter name.
+     * @param value The new value.
+     * @return A new body with the new value.
+     */
+    set(param, value) {
+        return this.clone({ param, value, op: 's' });
+    }
+    /**
+     * Removes a given value or all values from a parameter.
+     * @param param The parameter name.
+     * @param value The value to remove, if provided.
+     * @return A new body with the given value removed, or with all values
+     * removed if no value is specified.
+     */
+    delete(param, value) {
+        return this.clone({ param, value, op: 'd' });
+    }
+    /**
+     * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are
+     * separated by `&`s.
+     */
+    toString() {
+        this.init();
+        return (this.keys()
+            .map((key) => {
+            const eKey = this.encoder.encodeKey(key);
+            // `a: ['1']` produces `'a=1'`
+            // `b: []` produces `''`
+            // `c: ['1', '2']` produces `'c=1&c=2'`
+            return this.map.get(key)
+                .map((value) => eKey + '=' + this.encoder.encodeValue(value))
+                .join('&');
+        })
+            // filter out empty values because `b: []` produces `''`
+            // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't
+            .filter((param) => param !== '')
+            .join('&'));
+    }
+    clone(update) {
+        const clone = new HttpParams({ encoder: this.encoder });
+        clone.cloneFrom = this.cloneFrom || this;
+        clone.updates = (this.updates || []).concat(update);
+        return clone;
+    }
+    init() {
+        if (this.map === null) {
+            this.map = new Map();
+        }
+        if (this.cloneFrom !== null) {
+            this.cloneFrom.init();
+            this.cloneFrom.keys().forEach((key) => this.map.set(key, this.cloneFrom.map.get(key)));
+            this.updates.forEach((update) => {
+                switch (update.op) {
+                    case 'a':
+                    case 's':
+                        const base = (update.op === 'a' ? this.map.get(update.param) : undefined) || [];
+                        base.push(valueToString(update.value));
+                        this.map.set(update.param, base);
+                        break;
+                    case 'd':
+                        if (update.value !== undefined) {
+                            let base = this.map.get(update.param) || [];
+                            const idx = base.indexOf(valueToString(update.value));
+                            if (idx !== -1) {
+                                base.splice(idx, 1);
+                            }
+                            if (base.length > 0) {
+                                this.map.set(update.param, base);
+                            }
+                            else {
+                                this.map.delete(update.param);
+                            }
+                        }
+                        else {
+                            this.map.delete(update.param);
+                            break;
+                        }
+                }
+            });
+            this.cloneFrom = this.updates = null;
+        }
+    }
+}
+
+/**
+ * A token used to manipulate and access values stored in `HttpContext`.
+ *
+ * @publicApi
+ */
+class HttpContextToken {
+    defaultValue;
+    constructor(defaultValue) {
+        this.defaultValue = defaultValue;
+    }
+}
+/**
+ * Http context stores arbitrary user defined values and ensures type safety without
+ * actually knowing the types. It is backed by a `Map` and guarantees that keys do not clash.
+ *
+ * This context is mutable and is shared between cloned requests unless explicitly specified.
+ *
+ * @usageNotes
+ *
+ * ### Usage Example
+ *
+ * ```ts
+ * // inside cache.interceptors.ts
+ * export const IS_CACHE_ENABLED = new HttpContextToken<boolean>(() => false);
+ *
+ * export class CacheInterceptor implements HttpInterceptor {
+ *
+ *   intercept(req: HttpRequest<any>, delegate: HttpHandler): Observable<HttpEvent<any>> {
+ *     if (req.context.get(IS_CACHE_ENABLED) === true) {
+ *       return ...;
+ *     }
+ *     return delegate.handle(req);
+ *   }
+ * }
+ *
+ * // inside a service
+ *
+ * this.httpClient.get('/api/weather', {
+ *   context: new HttpContext().set(IS_CACHE_ENABLED, true)
+ * }).subscribe(...);
+ * ```
+ *
+ * @publicApi
+ */
+class HttpContext {
+    map = new Map();
+    /**
+     * Store a value in the context. If a value is already present it will be overwritten.
+     *
+     * @param token The reference to an instance of `HttpContextToken`.
+     * @param value The value to store.
+     *
+     * @returns A reference to itself for easy chaining.
+     */
+    set(token, value) {
+        this.map.set(token, value);
+        return this;
+    }
+    /**
+     * Retrieve the value associated with the given token.
+     *
+     * @param token The reference to an instance of `HttpContextToken`.
+     *
+     * @returns The stored value or default if one is defined.
+     */
+    get(token) {
+        if (!this.map.has(token)) {
+            this.map.set(token, token.defaultValue());
+        }
+        return this.map.get(token);
+    }
+    /**
+     * Delete the value associated with the given token.
+     *
+     * @param token The reference to an instance of `HttpContextToken`.
+     *
+     * @returns A reference to itself for easy chaining.
+     */
+    delete(token) {
+        this.map.delete(token);
+        return this;
+    }
+    /**
+     * Checks for existence of a given token.
+     *
+     * @param token The reference to an instance of `HttpContextToken`.
+     *
+     * @returns True if the token exists, false otherwise.
+     */
+    has(token) {
+        return this.map.has(token);
+    }
+    /**
+     * @returns a list of tokens currently stored in the context.
+     */
+    keys() {
+        return this.map.keys();
+    }
+}
+
+/**
+ * Determine whether the given HTTP method may include a body.
+ */
+function mightHaveBody(method) {
+    switch (method) {
+        case 'DELETE':
+        case 'GET':
+        case 'HEAD':
+        case 'OPTIONS':
+        case 'JSONP':
+            return false;
+        default:
+            return true;
+    }
+}
+/**
+ * Safely assert whether the given value is an ArrayBuffer.
+ *
+ * In some execution environments ArrayBuffer is not defined.
+ */
+function isArrayBuffer(value) {
+    return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer;
+}
+/**
+ * Safely assert whether the given value is a Blob.
+ *
+ * In some execution environments Blob is not defined.
+ */
+function isBlob(value) {
+    return typeof Blob !== 'undefined' && value instanceof Blob;
+}
+/**
+ * Safely assert whether the given value is a FormData instance.
+ *
+ * In some execution environments FormData is not defined.
+ */
+function isFormData(value) {
+    return typeof FormData !== 'undefined' && value instanceof FormData;
+}
+/**
+ * Safely assert whether the given value is a URLSearchParams instance.
+ *
+ * In some execution environments URLSearchParams is not defined.
+ */
+function isUrlSearchParams(value) {
+    return typeof URLSearchParams !== 'undefined' && value instanceof URLSearchParams;
+}
+/**
+ * `Content-Type` is an HTTP header used to indicate the media type
+ * (also known as MIME type) of the resource being sent to the client
+ * or received from the server.
+ */
+const CONTENT_TYPE_HEADER = 'Content-Type';
+/**
+ * The `Accept` header is an HTTP request header that indicates the media types
+ * (or content types) the client is willing to receive from the server.
+ */
+const ACCEPT_HEADER = 'Accept';
+/**
+ * `X-Request-URL` is a custom HTTP header used in older browser versions,
+ * including Firefox (< 32), Chrome (< 37), Safari (< 8), and Internet Explorer,
+ * to include the full URL of the request in cross-origin requests.
+ */
+const X_REQUEST_URL_HEADER = 'X-Request-URL';
+/**
+ * `text/plain` is a content type used to indicate that the content being
+ * sent is plain text with no special formatting or structured data
+ * like HTML, XML, or JSON.
+ */
+const TEXT_CONTENT_TYPE = 'text/plain';
+/**
+ * `application/json` is a content type used to indicate that the content
+ * being sent is in the JSON format.
+ */
+const JSON_CONTENT_TYPE = 'application/json';
+/**
+ * `application/json, text/plain, *\/*` is a content negotiation string often seen in the
+ * Accept header of HTTP requests. It indicates the types of content the client is willing
+ * to accept from the server, with a preference for `application/json` and `text/plain`,
+ * but also accepting any other type (*\/*).
+ */
+const ACCEPT_HEADER_VALUE = `${JSON_CONTENT_TYPE}, ${TEXT_CONTENT_TYPE}, */*`;
+/**
+ * An outgoing HTTP request with an optional typed body.
+ *
+ * `HttpRequest` represents an outgoing request, including URL, method,
+ * headers, body, and other request configuration options. Instances should be
+ * assumed to be immutable. To modify a `HttpRequest`, the `clone`
+ * method should be used.
+ *
+ * @publicApi
+ */
+class HttpRequest {
+    url;
+    /**
+     * The request body, or `null` if one isn't set.
+     *
+     * Bodies are not enforced to be immutable, as they can include a reference to any
+     * user-defined data type. However, interceptors should take care to preserve
+     * idempotence by treating them as such.
+     */
+    body = null;
+    /**
+     * Outgoing headers for this request.
+     */
+    headers;
+    /**
+     * Shared and mutable context that can be used by interceptors
+     */
+    context;
+    /**
+     * Whether this request should be made in a way that exposes progress events.
+     *
+     * Progress events are expensive (change detection runs on each event) and so
+     * they should only be requested if the consumer intends to monitor them.
+     *
+     * Note: The `FetchBackend` doesn't support progress report on uploads.
+     */
+    reportProgress = false;
+    /**
+     * Whether this request should be sent with outgoing credentials (cookies).
+     */
+    withCredentials = false;
+    /**
+     *  The credentials mode of the request, which determines how cookies and HTTP authentication are handled.
+     *  This can affect whether cookies are sent with the request, and how authentication is handled.
+     */
+    credentials;
+    /**
+     * When using the fetch implementation and set to `true`, the browser will not abort the associated request if the page that initiated it is unloaded before the request is complete.
+     */
+    keepalive = false;
+    /**
+     * Controls how the request will interact with the browser's HTTP cache.
+     * This affects whether a response is retrieved from the cache, how it is stored, or if it bypasses the cache altogether.
+     */
+    cache;
+    /**
+     * Indicates the relative priority of the request. This may be used by the browser to decide the order in which requests are dispatched and resources fetched.
+     */
+    priority;
+    /**
+     * The mode of the request, which determines how the request will interact with the browser's security model.
+     * This can affect things like CORS (Cross-Origin Resource Sharing) and same-origin policies.
+     */
+    mode;
+    /**
+     * The redirect mode of the request, which determines how redirects are handled.
+     * This can affect whether the request follows redirects automatically, or if it fails when a redirect occurs.
+     */
+    redirect;
+    /**
+     * The expected response type of the server.
+     *
+     * This is used to parse the response appropriately before returning it to
+     * the requestee.
+     */
+    responseType = 'json';
+    /**
+     * The outgoing HTTP request method.
+     */
+    method;
+    /**
+     * Outgoing URL parameters.
+     *
+     * To pass a string representation of HTTP parameters in the URL-query-string format,
+     * the `HttpParamsOptions`' `fromString` may be used. For example:
+     *
+     * ```ts
+     * new HttpParams({fromString: 'angular=awesome'})
+     * ```
+     */
+    params;
+    /**
+     * The outgoing URL with all URL parameters set.
+     */
+    urlWithParams;
+    /**
+     * The HttpTransferCache option for the request
+     */
+    transferCache;
+    /**
+     * The timeout for the backend HTTP request in ms.
+     */
+    timeout;
+    constructor(method, url, third, fourth) {
+        this.url = url;
+        this.method = method.toUpperCase();
+        // Next, need to figure out which argument holds the HttpRequestInit
+        // options, if any.
+        let options;
+        // Check whether a body argument is expected. The only valid way to omit
+        // the body argument is to use a known no-body method like GET.
+        if (mightHaveBody(this.method) || !!fourth) {
+            // Body is the third argument, options are the fourth.
+            this.body = third !== undefined ? third : null;
+            options = fourth;
+        }
+        else {
+            // No body required, options are the third argument. The body stays null.
+            options = third;
+        }
+        // If options have been passed, interpret them.
+        if (options) {
+            // Normalize reportProgress and withCredentials.
+            this.reportProgress = !!options.reportProgress;
+            this.withCredentials = !!options.withCredentials;
+            this.keepalive = !!options.keepalive;
+            // Override default response type of 'json' if one is provided.
+            if (!!options.responseType) {
+                this.responseType = options.responseType;
+            }
+            // Override headers if they're provided.
+            if (options.headers) {
+                this.headers = options.headers;
+            }
+            if (options.context) {
+                this.context = options.context;
+            }
+            if (options.params) {
+                this.params = options.params;
+            }
+            if (options.priority) {
+                this.priority = options.priority;
+            }
+            if (options.cache) {
+                this.cache = options.cache;
+            }
+            if (options.credentials) {
+                this.credentials = options.credentials;
+            }
+            if (typeof options.timeout === 'number') {
+                // XHR will ignore any value below 1. AbortSignals only accept unsigned integers.
+                if (options.timeout < 1 || !Number.isInteger(options.timeout)) {
+                    // TODO: create a runtime error
+                    throw new Error(ngDevMode ? '`timeout` must be a positive integer value' : '');
+                }
+                this.timeout = options.timeout;
+            }
+            if (options.mode) {
+                this.mode = options.mode;
+            }
+            if (options.redirect) {
+                this.redirect = options.redirect;
+            }
+            // We do want to assign transferCache even if it's falsy (false is valid value)
+            this.transferCache = options.transferCache;
+        }
+        // If no headers have been passed in, construct a new HttpHeaders instance.
+        this.headers ??= new HttpHeaders();
+        // If no context have been passed in, construct a new HttpContext instance.
+        this.context ??= new HttpContext();
+        // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.
+        if (!this.params) {
+            this.params = new HttpParams();
+            this.urlWithParams = url;
+        }
+        else {
+            // Encode the parameters to a string in preparation for inclusion in the URL.
+            const params = this.params.toString();
+            if (params.length === 0) {
+                // No parameters, the visible URL is just the URL given at creation time.
+                this.urlWithParams = url;
+            }
+            else {
+                // Does the URL already have query parameters? Look for '?'.
+                const qIdx = url.indexOf('?');
+                // There are 3 cases to handle:
+                // 1) No existing parameters -> append '?' followed by params.
+                // 2) '?' exists and is followed by existing query string ->
+                //    append '&' followed by params.
+                // 3) '?' exists at the end of the url -> append params directly.
+                // This basically amounts to determining the character, if any, with
+                // which to join the URL and parameters.
+                const sep = qIdx === -1 ? '?' : qIdx < url.length - 1 ? '&' : '';
+                this.urlWithParams = url + sep + params;
+            }
+        }
+    }
+    /**
+     * Transform the free-form body into a serialized format suitable for
+     * transmission to the server.
+     */
+    serializeBody() {
+        // If no body is present, no need to serialize it.
+        if (this.body === null) {
+            return null;
+        }
+        // Check whether the body is already in a serialized form. If so,
+        // it can just be returned directly.
+        if (typeof this.body === 'string' ||
+            isArrayBuffer(this.body) ||
+            isBlob(this.body) ||
+            isFormData(this.body) ||
+            isUrlSearchParams(this.body)) {
+            return this.body;
+        }
+        // Check whether the body is an instance of HttpUrlEncodedParams.
+        if (this.body instanceof HttpParams) {
+            return this.body.toString();
+        }
+        // Check whether the body is an object or array, and serialize with JSON if so.
+        if (typeof this.body === 'object' ||
+            typeof this.body === 'boolean' ||
+            Array.isArray(this.body)) {
+            return JSON.stringify(this.body);
+        }
+        // Fall back on toString() for everything else.
+        return this.body.toString();
+    }
+    /**
+     * Examine the body and attempt to infer an appropriate MIME type
+     * for it.
+     *
+     * If no such type can be inferred, this method will return `null`.
+     */
+    detectContentTypeHeader() {
+        // An empty body has no content type.
+        if (this.body === null) {
+            return null;
+        }
+        // FormData bodies rely on the browser's content type assignment.
+        if (isFormData(this.body)) {
+            return null;
+        }
+        // Blobs usually have their own content type. If it doesn't, then
+        // no type can be inferred.
+        if (isBlob(this.body)) {
+            return this.body.type || null;
+        }
+        // Array buffers have unknown contents and thus no type can be inferred.
+        if (isArrayBuffer(this.body)) {
+            return null;
+        }
+        // Technically, strings could be a form of JSON data, but it's safe enough
+        // to assume they're plain strings.
+        if (typeof this.body === 'string') {
+            return TEXT_CONTENT_TYPE;
+        }
+        // `HttpUrlEncodedParams` has its own content-type.
+        if (this.body instanceof HttpParams) {
+            return 'application/x-www-form-urlencoded;charset=UTF-8';
+        }
+        // Arrays, objects, boolean and numbers will be encoded as JSON.
+        if (typeof this.body === 'object' ||
+            typeof this.body === 'number' ||
+            typeof this.body === 'boolean') {
+            return JSON_CONTENT_TYPE;
+        }
+        // No type could be inferred.
+        return null;
+    }
+    clone(update = {}) {
+        // For method, url, and responseType, take the current value unless
+        // it is overridden in the update hash.
+        const method = update.method || this.method;
+        const url = update.url || this.url;
+        const responseType = update.responseType || this.responseType;
+        const keepalive = update.keepalive ?? this.keepalive;
+        const priority = update.priority || this.priority;
+        const cache = update.cache || this.cache;
+        const mode = update.mode || this.mode;
+        const redirect = update.redirect || this.redirect;
+        const credentials = update.credentials || this.credentials;
+        // Carefully handle the transferCache to differentiate between
+        // `false` and `undefined` in the update args.
+        const transferCache = update.transferCache ?? this.transferCache;
+        const timeout = update.timeout ?? this.timeout;
+        // The body is somewhat special - a `null` value in update.body means
+        // whatever current body is present is being overridden with an empty
+        // body, whereas an `undefined` value in update.body implies no
+        // override.
+        const body = update.body !== undefined ? update.body : this.body;
+        // Carefully handle the boolean options to differentiate between
+        // `false` and `undefined` in the update args.
+        const withCredentials = update.withCredentials ?? this.withCredentials;
+        const reportProgress = update.reportProgress ?? this.reportProgress;
+        // Headers and params may be appended to if `setHeaders` or
+        // `setParams` are used.
+        let headers = update.headers || this.headers;
+        let params = update.params || this.params;
+        // Pass on context if needed
+        const context = update.context ?? this.context;
+        // Check whether the caller has asked to add headers.
+        if (update.setHeaders !== undefined) {
+            // Set every requested header.
+            headers = Object.keys(update.setHeaders).reduce((headers, name) => headers.set(name, update.setHeaders[name]), headers);
+        }
+        // Check whether the caller has asked to set params.
+        if (update.setParams) {
+            // Set every requested param.
+            params = Object.keys(update.setParams).reduce((params, param) => params.set(param, update.setParams[param]), params);
+        }
+        // Finally, construct the new HttpRequest using the pieces from above.
+        return new HttpRequest(method, url, body, {
+            params,
+            headers,
+            context,
+            reportProgress,
+            responseType,
+            withCredentials,
+            transferCache,
+            keepalive,
+            cache,
+            priority,
+            timeout,
+            mode,
+            redirect,
+            credentials,
+        });
+    }
+}
+
+/**
+ * Type enumeration for the different kinds of `HttpEvent`.
+ *
+ * @publicApi
+ */
+var HttpEventType;
+(function (HttpEventType) {
+    /**
+     * The request was sent out over the wire.
+     */
+    HttpEventType[HttpEventType["Sent"] = 0] = "Sent";
+    /**
+     * An upload progress event was received.
+     *
+     * Note: The `FetchBackend` doesn't support progress report on uploads.
+     */
+    HttpEventType[HttpEventType["UploadProgress"] = 1] = "UploadProgress";
+    /**
+     * The response status code and headers were received.
+     */
+    HttpEventType[HttpEventType["ResponseHeader"] = 2] = "ResponseHeader";
+    /**
+     * A download progress event was received.
+     */
+    HttpEventType[HttpEventType["DownloadProgress"] = 3] = "DownloadProgress";
+    /**
+     * The full response including the body was received.
+     */
+    HttpEventType[HttpEventType["Response"] = 4] = "Response";
+    /**
+     * A custom event from an interceptor or a backend.
+     */
+    HttpEventType[HttpEventType["User"] = 5] = "User";
+})(HttpEventType || (HttpEventType = {}));
+/**
+ * Base class for both `HttpResponse` and `HttpHeaderResponse`.
+ *
+ * @publicApi
+ */
+class HttpResponseBase {
+    /**
+     * All response headers.
+     */
+    headers;
+    /**
+     * Response status code.
+     */
+    status;
+    /**
+     * Textual description of response status code, defaults to OK.
+     *
+     * Do not depend on this.
+     */
+    statusText;
+    /**
+     * URL of the resource retrieved, or null if not available.
+     */
+    url;
+    /**
+     * Whether the status code falls in the 2xx range.
+     */
+    ok;
+    /**
+     * Type of the response, narrowed to either the full response or the header.
+     */
+    type;
+    /**
+     * Super-constructor for all responses.
+     *
+     * The single parameter accepted is an initialization hash. Any properties
+     * of the response passed there will override the default values.
+     */
+    constructor(init, defaultStatus = 200, defaultStatusText = 'OK') {
+        // If the hash has values passed, use them to initialize the response.
+        // Otherwise use the default values.
+        this.headers = init.headers || new HttpHeaders();
+        this.status = init.status !== undefined ? init.status : defaultStatus;
+        this.statusText = init.statusText || defaultStatusText;
+        this.url = init.url || null;
+        // Cache the ok value to avoid defining a getter.
+        this.ok = this.status >= 200 && this.status < 300;
+    }
+}
+/**
+ * A partial HTTP response which only includes the status and header data,
+ * but no response body.
+ *
+ * `HttpHeaderResponse` is a `HttpEvent` available on the response
+ * event stream, only when progress events are requested.
+ *
+ * @publicApi
+ */
+class HttpHeaderResponse extends HttpResponseBase {
+    /**
+     * Create a new `HttpHeaderResponse` with the given parameters.
+     */
+    constructor(init = {}) {
+        super(init);
+    }
+    type = HttpEventType.ResponseHeader;
+    /**
+     * Copy this `HttpHeaderResponse`, overriding its contents with the
+     * given parameter hash.
+     */
+    clone(update = {}) {
+        // Perform a straightforward initialization of the new HttpHeaderResponse,
+        // overriding the current parameters with new ones if given.
+        return new HttpHeaderResponse({
+            headers: update.headers || this.headers,
+            status: update.status !== undefined ? update.status : this.status,
+            statusText: update.statusText || this.statusText,
+            url: update.url || this.url || undefined,
+        });
+    }
+}
+/**
+ * A full HTTP response, including a typed response body (which may be `null`
+ * if one was not returned).
+ *
+ * `HttpResponse` is a `HttpEvent` available on the response event
+ * stream.
+ *
+ * @publicApi
+ */
+class HttpResponse extends HttpResponseBase {
+    /**
+     * The response body, or `null` if one was not returned.
+     */
+    body;
+    /**
+     * Construct a new `HttpResponse`.
+     */
+    constructor(init = {}) {
+        super(init);
+        this.body = init.body !== undefined ? init.body : null;
+    }
+    type = HttpEventType.Response;
+    clone(update = {}) {
+        return new HttpResponse({
+            body: update.body !== undefined ? update.body : this.body,
+            headers: update.headers || this.headers,
+            status: update.status !== undefined ? update.status : this.status,
+            statusText: update.statusText || this.statusText,
+            url: update.url || this.url || undefined,
+        });
+    }
+}
+/**
+ * A response that represents an error or failure, either from a
+ * non-successful HTTP status, an error while executing the request,
+ * or some other failure which occurred during the parsing of the response.
+ *
+ * Any error returned on the `Observable` response stream will be
+ * wrapped in an `HttpErrorResponse` to provide additional context about
+ * the state of the HTTP layer when the error occurred. The error property
+ * will contain either a wrapped Error object or the error response returned
+ * from the server.
+ *
+ * @publicApi
+ */
+class HttpErrorResponse extends HttpResponseBase {
+    name = 'HttpErrorResponse';
+    message;
+    error;
+    /**
+     * Errors are never okay, even when the status code is in the 2xx success range.
+     */
+    ok = false;
+    constructor(init) {
+        // Initialize with a default status of 0 / Unknown Error.
+        super(init, 0, 'Unknown Error');
+        // If the response was successful, then this was a parse error. Otherwise, it was
+        // a protocol-level failure of some sort. Either the request failed in transit
+        // or the server returned an unsuccessful status code.
+        if (this.status >= 200 && this.status < 300) {
+            this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;
+        }
+        else {
+            this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${init.statusText}`;
+        }
+        this.error = init.error || null;
+    }
+}
+/**
+ * We use these constant to prevent pulling the whole HttpStatusCode enum
+ * Those are the only ones referenced directly by the framework
+ */
+const HTTP_STATUS_CODE_OK = 200;
+const HTTP_STATUS_CODE_NO_CONTENT = 204;
+/**
+ * Http status codes.
+ * As per https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
+ * @publicApi
+ */
+var HttpStatusCode;
+(function (HttpStatusCode) {
+    HttpStatusCode[HttpStatusCode["Continue"] = 100] = "Continue";
+    HttpStatusCode[HttpStatusCode["SwitchingProtocols"] = 101] = "SwitchingProtocols";
+    HttpStatusCode[HttpStatusCode["Processing"] = 102] = "Processing";
+    HttpStatusCode[HttpStatusCode["EarlyHints"] = 103] = "EarlyHints";
+    HttpStatusCode[HttpStatusCode["Ok"] = 200] = "Ok";
+    HttpStatusCode[HttpStatusCode["Created"] = 201] = "Created";
+    HttpStatusCode[HttpStatusCode["Accepted"] = 202] = "Accepted";
+    HttpStatusCode[HttpStatusCode["NonAuthoritativeInformation"] = 203] = "NonAuthoritativeInformation";
+    HttpStatusCode[HttpStatusCode["NoContent"] = 204] = "NoContent";
+    HttpStatusCode[HttpStatusCode["ResetContent"] = 205] = "ResetContent";
+    HttpStatusCode[HttpStatusCode["PartialContent"] = 206] = "PartialContent";
+    HttpStatusCode[HttpStatusCode["MultiStatus"] = 207] = "MultiStatus";
+    HttpStatusCode[HttpStatusCode["AlreadyReported"] = 208] = "AlreadyReported";
+    HttpStatusCode[HttpStatusCode["ImUsed"] = 226] = "ImUsed";
+    HttpStatusCode[HttpStatusCode["MultipleChoices"] = 300] = "MultipleChoices";
+    HttpStatusCode[HttpStatusCode["MovedPermanently"] = 301] = "MovedPermanently";
+    HttpStatusCode[HttpStatusCode["Found"] = 302] = "Found";
+    HttpStatusCode[HttpStatusCode["SeeOther"] = 303] = "SeeOther";
+    HttpStatusCode[HttpStatusCode["NotModified"] = 304] = "NotModified";
+    HttpStatusCode[HttpStatusCode["UseProxy"] = 305] = "UseProxy";
+    HttpStatusCode[HttpStatusCode["Unused"] = 306] = "Unused";
+    HttpStatusCode[HttpStatusCode["TemporaryRedirect"] = 307] = "TemporaryRedirect";
+    HttpStatusCode[HttpStatusCode["PermanentRedirect"] = 308] = "PermanentRedirect";
+    HttpStatusCode[HttpStatusCode["BadRequest"] = 400] = "BadRequest";
+    HttpStatusCode[HttpStatusCode["Unauthorized"] = 401] = "Unauthorized";
+    HttpStatusCode[HttpStatusCode["PaymentRequired"] = 402] = "PaymentRequired";
+    HttpStatusCode[HttpStatusCode["Forbidden"] = 403] = "Forbidden";
+    HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
+    HttpStatusCode[HttpStatusCode["MethodNotAllowed"] = 405] = "MethodNotAllowed";
+    HttpStatusCode[HttpStatusCode["NotAcceptable"] = 406] = "NotAcceptable";
+    HttpStatusCode[HttpStatusCode["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired";
+    HttpStatusCode[HttpStatusCode["RequestTimeout"] = 408] = "RequestTimeout";
+    HttpStatusCode[HttpStatusCode["Conflict"] = 409] = "Conflict";
+    HttpStatusCode[HttpStatusCode["Gone"] = 410] = "Gone";
+    HttpStatusCode[HttpStatusCode["LengthRequired"] = 411] = "LengthRequired";
+    HttpStatusCode[HttpStatusCode["PreconditionFailed"] = 412] = "PreconditionFailed";
+    HttpStatusCode[HttpStatusCode["PayloadTooLarge"] = 413] = "PayloadTooLarge";
+    HttpStatusCode[HttpStatusCode["UriTooLong"] = 414] = "UriTooLong";
+    HttpStatusCode[HttpStatusCode["UnsupportedMediaType"] = 415] = "UnsupportedMediaType";
+    HttpStatusCode[HttpStatusCode["RangeNotSatisfiable"] = 416] = "RangeNotSatisfiable";
+    HttpStatusCode[HttpStatusCode["ExpectationFailed"] = 417] = "ExpectationFailed";
+    HttpStatusCode[HttpStatusCode["ImATeapot"] = 418] = "ImATeapot";
+    HttpStatusCode[HttpStatusCode["MisdirectedRequest"] = 421] = "MisdirectedRequest";
+    HttpStatusCode[HttpStatusCode["UnprocessableEntity"] = 422] = "UnprocessableEntity";
+    HttpStatusCode[HttpStatusCode["Locked"] = 423] = "Locked";
+    HttpStatusCode[HttpStatusCode["FailedDependency"] = 424] = "FailedDependency";
+    HttpStatusCode[HttpStatusCode["TooEarly"] = 425] = "TooEarly";
+    HttpStatusCode[HttpStatusCode["UpgradeRequired"] = 426] = "UpgradeRequired";
+    HttpStatusCode[HttpStatusCode["PreconditionRequired"] = 428] = "PreconditionRequired";
+    HttpStatusCode[HttpStatusCode["TooManyRequests"] = 429] = "TooManyRequests";
+    HttpStatusCode[HttpStatusCode["RequestHeaderFieldsTooLarge"] = 431] = "RequestHeaderFieldsTooLarge";
+    HttpStatusCode[HttpStatusCode["UnavailableForLegalReasons"] = 451] = "UnavailableForLegalReasons";
+    HttpStatusCode[HttpStatusCode["InternalServerError"] = 500] = "InternalServerError";
+    HttpStatusCode[HttpStatusCode["NotImplemented"] = 501] = "NotImplemented";
+    HttpStatusCode[HttpStatusCode["BadGateway"] = 502] = "BadGateway";
+    HttpStatusCode[HttpStatusCode["ServiceUnavailable"] = 503] = "ServiceUnavailable";
+    HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
+    HttpStatusCode[HttpStatusCode["HttpVersionNotSupported"] = 505] = "HttpVersionNotSupported";
+    HttpStatusCode[HttpStatusCode["VariantAlsoNegotiates"] = 506] = "VariantAlsoNegotiates";
+    HttpStatusCode[HttpStatusCode["InsufficientStorage"] = 507] = "InsufficientStorage";
+    HttpStatusCode[HttpStatusCode["LoopDetected"] = 508] = "LoopDetected";
+    HttpStatusCode[HttpStatusCode["NotExtended"] = 510] = "NotExtended";
+    HttpStatusCode[HttpStatusCode["NetworkAuthenticationRequired"] = 511] = "NetworkAuthenticationRequired";
+})(HttpStatusCode || (HttpStatusCode = {}));
+
+/**
+ * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and
+ * the given `body`. This function clones the object and adds the body.
+ *
+ * Note that the `responseType` *options* value is a String that identifies the
+ * single data type of the response.
+ * A single overload version of the method handles each response type.
+ * The value of `responseType` cannot be a union, as the combined signature could imply.
+ *
+ */
+function addBody(options, body) {
+    return {
+        body,
+        headers: options.headers,
+        context: options.context,
+        observe: options.observe,
+        params: options.params,
+        reportProgress: options.reportProgress,
+        responseType: options.responseType,
+        withCredentials: options.withCredentials,
+        transferCache: options.transferCache,
+        keepalive: options.keepalive,
+        priority: options.priority,
+        cache: options.cache,
+        mode: options.mode,
+        redirect: options.redirect,
+    };
+}
+/**
+ * Performs HTTP requests.
+ * This service is available as an injectable class, with methods to perform HTTP requests.
+ * Each request method has multiple signatures, and the return type varies based on
+ * the signature that is called (mainly the values of `observe` and `responseType`).
+ *
+ * Note that the `responseType` *options* value is a String that identifies the
+ * single data type of the response.
+ * A single overload version of the method handles each response type.
+ * The value of `responseType` cannot be a union, as the combined signature could imply.
+ *
+ * @usageNotes
+ *
+ * ### HTTP Request Example
+ *
+ * ```ts
+ *  // GET heroes whose name contains search term
+ * searchHeroes(term: string): observable<Hero[]>{
+ *
+ *  const params = new HttpParams({fromString: 'name=term'});
+ *    return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});
+ * }
+ * ```
+ *
+ * Alternatively, the parameter string can be used without invoking HttpParams
+ * by directly joining to the URL.
+ * ```ts
+ * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});
+ * ```
+ *
+ *
+ * ### JSONP Example
+ * ```ts
+ * requestJsonp(url, callback = 'callback') {
+ *  return this.httpClient.jsonp(this.heroesURL, callback);
+ * }
+ * ```
+ *
+ * ### PATCH Example
+ * ```ts
+ * // PATCH one of the heroes' name
+ * patchHero (id: number, heroName: string): Observable<{}> {
+ * const url = `${this.heroesUrl}/${id}`;   // PATCH api/heroes/42
+ *  return this.httpClient.patch(url, {name: heroName}, httpOptions)
+ *    .pipe(catchError(this.handleError('patchHero')));
+ * }
+ * ```
+ *
+ * @see [HTTP Guide](guide/http)
+ * @see [HTTP Request](api/common/http/HttpRequest)
+ *
+ * @publicApi
+ */
+class HttpClient {
+    handler;
+    constructor(handler) {
+        this.handler = handler;
+    }
+    /**
+     * Constructs an observable for a generic HTTP request that, when subscribed,
+     * fires the request through the chain of registered interceptors and on to the
+     * server.
+     *
+     * You can pass an `HttpRequest` directly as the only parameter. In this case,
+     * the call returns an observable of the raw `HttpEvent` stream.
+     *
+     * Alternatively you can pass an HTTP method as the first parameter,
+     * a URL string as the second, and an options hash containing the request body as the third.
+     * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the
+     * type of returned observable.
+     *   * The `responseType` value determines how a successful response body is parsed.
+     *   * If `responseType` is the default `json`, you can pass a type interface for the resulting
+     * object as a type parameter to the call.
+     *
+     * The `observe` value determines the return type, according to what you are interested in
+     * observing.
+     *   * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including
+     * progress events by default.
+     *   * An `observe` value of response returns an observable of `HttpResponse<T>`,
+     * where the `T` parameter depends on the `responseType` and any optionally provided type
+     * parameter.
+     *   * An `observe` value of body returns an observable of `<T>` with the same `T` body type.
+     *
+     */
+    request(first, url, options = {}) {
+        let req;
+        // First, check whether the primary argument is an instance of `HttpRequest`.
+        if (first instanceof HttpRequest) {
+            // It is. The other arguments must be undefined (per the signatures) and can be
+            // ignored.
+            req = first;
+        }
+        else {
+            // It's a string, so it represents a URL. Construct a request based on it,
+            // and incorporate the remaining arguments (assuming `GET` unless a method is
+            // provided.
+            // Figure out the headers.
+            let headers = undefined;
+            if (options.headers instanceof HttpHeaders) {
+                headers = options.headers;
+            }
+            else {
+                headers = new HttpHeaders(options.headers);
+            }
+            // Sort out parameters.
+            let params = undefined;
+            if (!!options.params) {
+                if (options.params instanceof HttpParams) {
+                    params = options.params;
+                }
+                else {
+                    params = new HttpParams({ fromObject: options.params });
+                }
+            }
+            // Construct the request.
+            req = new HttpRequest(first, url, options.body !== undefined ? options.body : null, {
+                headers,
+                context: options.context,
+                params,
+                reportProgress: options.reportProgress,
+                // By default, JSON is assumed to be returned for all calls.
+                responseType: options.responseType || 'json',
+                withCredentials: options.withCredentials,
+                transferCache: options.transferCache,
+                keepalive: options.keepalive,
+                priority: options.priority,
+                cache: options.cache,
+                mode: options.mode,
+                redirect: options.redirect,
+                credentials: options.credentials,
+            });
+        }
+        // Start with an Observable.of() the initial request, and run the handler (which
+        // includes all interceptors) inside a concatMap(). This way, the handler runs
+        // inside an Observable chain, which causes interceptors to be re-run on every
+        // subscription (this also makes retries re-run the handler, including interceptors).
+        const events$ = of(req).pipe(concatMap((req) => this.handler.handle(req)));
+        // If coming via the API signature which accepts a previously constructed HttpRequest,
+        // the only option is to get the event stream. Otherwise, return the event stream if
+        // that is what was requested.
+        if (first instanceof HttpRequest || options.observe === 'events') {
+            return events$;
+        }
+        // The requested stream contains either the full response or the body. In either
+        // case, the first step is to filter the event stream to extract a stream of
+        // responses(s).
+        const res$ = (events$.pipe(filter((event) => event instanceof HttpResponse)));
+        // Decide which stream to return.
+        switch (options.observe || 'body') {
+            case 'body':
+                // The requested stream is the body. Map the response stream to the response
+                // body. This could be done more simply, but a misbehaving interceptor might
+                // transform the response body into a different format and ignore the requested
+                // responseType. Guard against this by validating that the response is of the
+                // requested type.
+                switch (req.responseType) {
+                    case 'arraybuffer':
+                        return res$.pipe(map((res) => {
+                            // Validate that the body is an ArrayBuffer.
+                            if (res.body !== null && !(res.body instanceof ArrayBuffer)) {
+                                throw new _RuntimeError(2806 /* RuntimeErrorCode.RESPONSE_IS_NOT_AN_ARRAY_BUFFER */, ngDevMode && 'Response is not an ArrayBuffer.');
+                            }
+                            return res.body;
+                        }));
+                    case 'blob':
+                        return res$.pipe(map((res) => {
+                            // Validate that the body is a Blob.
+                            if (res.body !== null && !(res.body instanceof Blob)) {
+                                throw new _RuntimeError(2807 /* RuntimeErrorCode.RESPONSE_IS_NOT_A_BLOB */, ngDevMode && 'Response is not a Blob.');
+                            }
+                            return res.body;
+                        }));
+                    case 'text':
+                        return res$.pipe(map((res) => {
+                            // Validate that the body is a string.
+                            if (res.body !== null && typeof res.body !== 'string') {
+                                throw new _RuntimeError(2808 /* RuntimeErrorCode.RESPONSE_IS_NOT_A_STRING */, ngDevMode && 'Response is not a string.');
+                            }
+                            return res.body;
+                        }));
+                    case 'json':
+                    default:
+                        // No validation needed for JSON responses, as they can be of any type.
+                        return res$.pipe(map((res) => res.body));
+                }
+            case 'response':
+                // The response stream was requested directly, so return it.
+                return res$;
+            default:
+                // Guard against new future observe types being added.
+                throw new _RuntimeError(2809 /* RuntimeErrorCode.UNHANDLED_OBSERVE_TYPE */, ngDevMode && `Unreachable: unhandled observe type ${options.observe}}`);
+        }
+    }
+    /**
+     * Constructs an observable that, when subscribed, causes the configured
+     * `DELETE` request to execute on the server. See the individual overloads for
+     * details on the return type.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     */
+    delete(url, options = {}) {
+        return this.request('DELETE', url, options);
+    }
+    /**
+     * Constructs an observable that, when subscribed, causes the configured
+     * `GET` request to execute on the server. See the individual overloads for
+     * details on the return type.
+     */
+    get(url, options = {}) {
+        return this.request('GET', url, options);
+    }
+    /**
+     * Constructs an observable that, when subscribed, causes the configured
+     * `HEAD` request to execute on the server. The `HEAD` method returns
+     * meta information about the resource without transferring the
+     * resource itself. See the individual overloads for
+     * details on the return type.
+     */
+    head(url, options = {}) {
+        return this.request('HEAD', url, options);
+    }
+    /**
+     * Constructs an `Observable` that, when subscribed, causes a request with the special method
+     * `JSONP` to be dispatched via the interceptor pipeline.
+     * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain
+     * API endpoints that don't support newer,
+     * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.
+     * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the
+     * requests even if the API endpoint is not located on the same domain (origin) as the client-side
+     * application making the request.
+     * The endpoint API must support JSONP callback for JSONP requests to work.
+     * The resource API returns the JSON response wrapped in a callback function.
+     * You can pass the callback function name as one of the query parameters.
+     * Note that JSONP requests can only be used with `GET` requests.
+     *
+     * @param url The resource URL.
+     * @param callbackParam The callback function name.
+     *
+     */
+    jsonp(url, callbackParam) {
+        return this.request('JSONP', url, {
+            params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),
+            observe: 'body',
+            responseType: 'json',
+        });
+    }
+    /**
+     * Constructs an `Observable` that, when subscribed, causes the configured
+     * `OPTIONS` request to execute on the server. This method allows the client
+     * to determine the supported HTTP methods and other capabilities of an endpoint,
+     * without implying a resource action. See the individual overloads for
+     * details on the return type.
+     */
+    options(url, options = {}) {
+        return this.request('OPTIONS', url, options);
+    }
+    /**
+     * Constructs an observable that, when subscribed, causes the configured
+     * `PATCH` request to execute on the server. See the individual overloads for
+     * details on the return type.
+     */
+    patch(url, body, options = {}) {
+        return this.request('PATCH', url, addBody(options, body));
+    }
+    /**
+     * Constructs an observable that, when subscribed, causes the configured
+     * `POST` request to execute on the server. The server responds with the location of
+     * the replaced resource. See the individual overloads for
+     * details on the return type.
+     */
+    post(url, body, options = {}) {
+        return this.request('POST', url, addBody(options, body));
+    }
+    /**
+     * Constructs an observable that, when subscribed, causes the configured
+     * `PUT` request to execute on the server. The `PUT` method replaces an existing resource
+     * with a new set of values.
+     * See the individual overloads for details on the return type.
+     */
+    put(url, body, options = {}) {
+        return this.request('PUT', url, addBody(options, body));
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClient });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClient, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [{ type: HttpHandler }] });
+
+const XSSI_PREFIX$1 = /^\)\]\}',?\n/;
+/**
+ * Determine an appropriate URL for the response, by checking either
+ * response url or the X-Request-URL header.
+ */
+function getResponseUrl$1(response) {
+    if (response.url) {
+        return response.url;
+    }
+    // stored as lowercase in the map
+    const xRequestUrl = X_REQUEST_URL_HEADER.toLocaleLowerCase();
+    return response.headers.get(xRequestUrl);
+}
+/**
+ * An internal injection token to reference `FetchBackend` implementation
+ * in a tree-shakable way.
+ */
+const FETCH_BACKEND = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'FETCH_BACKEND' : '');
+/**
+ * Uses `fetch` to send requests to a backend server.
+ *
+ * This `FetchBackend` requires the support of the
+ * [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) which is available on all
+ * supported browsers and on Node.js v18 or later.
+ *
+ * @see {@link HttpHandler}
+ *
+ * @publicApi
+ */
+class FetchBackend {
+    // We use an arrow function to always reference the current global implementation of `fetch`.
+    // This is helpful for cases when the global `fetch` implementation is modified by external code,
+    // see https://github.com/angular/angular/issues/57527.
+    fetchImpl = inject(FetchFactory, { optional: true })?.fetch ?? ((...args) => globalThis.fetch(...args));
+    ngZone = inject(NgZone);
+    destroyRef = inject(DestroyRef);
+    destroyed = false;
+    constructor() {
+        this.destroyRef.onDestroy(() => {
+            this.destroyed = true;
+        });
+    }
+    handle(request) {
+        return new Observable((observer) => {
+            const aborter = new AbortController();
+            this.doRequest(request, aborter.signal, observer).then(noop, (error) => observer.error(new HttpErrorResponse({ error })));
+            let timeoutId;
+            if (request.timeout) {
+                // TODO: Replace with AbortSignal.any([aborter.signal, AbortSignal.timeout(request.timeout)])
+                // when AbortSignal.any support is Baseline widely available (NET nov. 2026)
+                timeoutId = this.ngZone.runOutsideAngular(() => setTimeout(() => {
+                    if (!aborter.signal.aborted) {
+                        aborter.abort(new DOMException('signal timed out', 'TimeoutError'));
+                    }
+                }, request.timeout));
+            }
+            return () => {
+                if (timeoutId !== undefined) {
+                    clearTimeout(timeoutId);
+                }
+                aborter.abort();
+            };
+        });
+    }
+    async doRequest(request, signal, observer) {
+        const init = this.createRequestInit(request);
+        let response;
+        try {
+            // Run fetch outside of Angular zone.
+            // This is due to Node.js fetch implementation (Undici) which uses a number of setTimeouts to check if
+            // the response should eventually timeout which causes extra CD cycles every 500ms
+            const fetchPromise = this.ngZone.runOutsideAngular(() => this.fetchImpl(request.urlWithParams, { signal, ...init }));
+            // Make sure Zone.js doesn't trigger false-positive unhandled promise
+            // error in case the Promise is rejected synchronously. See function
+            // description for additional information.
+            silenceSuperfluousUnhandledPromiseRejection(fetchPromise);
+            // Send the `Sent` event before awaiting the response.
+            observer.next({ type: HttpEventType.Sent });
+            response = await fetchPromise;
+        }
+        catch (error) {
+            observer.error(new HttpErrorResponse({
+                error,
+                status: error.status ?? 0,
+                statusText: error.statusText,
+                url: request.urlWithParams,
+                headers: error.headers,
+            }));
+            return;
+        }
+        const headers = new HttpHeaders(response.headers);
+        const statusText = response.statusText;
+        const url = getResponseUrl$1(response) ?? request.urlWithParams;
+        let status = response.status;
+        let body = null;
+        if (request.reportProgress) {
+            observer.next(new HttpHeaderResponse({ headers, status, statusText, url }));
+        }
+        if (response.body) {
+            // Read Progress
+            const contentLength = response.headers.get('content-length');
+            const chunks = [];
+            const reader = response.body.getReader();
+            let receivedLength = 0;
+            let decoder;
+            let partialText;
+            // We have to check whether the Zone is defined in the global scope because this may be called
+            // when the zone is nooped.
+            const reqZone = typeof Zone !== 'undefined' && Zone.current;
+            let canceled = false;
+            // Perform response processing outside of Angular zone to
+            // ensure no excessive change detection runs are executed
+            // Here calling the async ReadableStreamDefaultReader.read() is responsible for triggering CD
+            await this.ngZone.runOutsideAngular(async () => {
+                while (true) {
+                    // Prevent reading chunks if the app is destroyed. Otherwise, we risk doing
+                    // unnecessary work or triggering side effects after teardown.
+                    // This may happen if the app was explicitly destroyed before
+                    // the response returned entirely.
+                    if (this.destroyed) {
+                        // Streams left in a pending state (due to `break` without cancel) may
+                        // continue consuming or holding onto data behind the scenes.
+                        // Calling `reader.cancel()` allows the browser or the underlying
+                        // system to release any network or memory resources associated with the stream.
+                        await reader.cancel();
+                        canceled = true;
+                        break;
+                    }
+                    const { done, value } = await reader.read();
+                    if (done) {
+                        break;
+                    }
+                    chunks.push(value);
+                    receivedLength += value.length;
+                    if (request.reportProgress) {
+                        partialText =
+                            request.responseType === 'text'
+                                ? (partialText ?? '') +
+                                    (decoder ??= new TextDecoder()).decode(value, { stream: true })
+                                : undefined;
+                        const reportProgress = () => observer.next({
+                            type: HttpEventType.DownloadProgress,
+                            total: contentLength ? +contentLength : undefined,
+                            loaded: receivedLength,
+                            partialText,
+                        });
+                        reqZone ? reqZone.run(reportProgress) : reportProgress();
+                    }
+                }
+            });
+            // We need to manage the canceled state — because the Streams API does not
+            // expose a direct `.state` property on the reader.
+            // We need to `return` because `parseBody` may not be able to parse chunks
+            // that were only partially read (due to cancellation caused by app destruction).
+            if (canceled) {
+                observer.complete();
+                return;
+            }
+            // Combine all chunks.
+            const chunksAll = this.concatChunks(chunks, receivedLength);
+            try {
+                const contentType = response.headers.get(CONTENT_TYPE_HEADER) ?? '';
+                body = this.parseBody(request, chunksAll, contentType);
+            }
+            catch (error) {
+                // Body loading or parsing failed
+                observer.error(new HttpErrorResponse({
+                    error,
+                    headers: new HttpHeaders(response.headers),
+                    status: response.status,
+                    statusText: response.statusText,
+                    url: getResponseUrl$1(response) ?? request.urlWithParams,
+                }));
+                return;
+            }
+        }
+        // Same behavior as the XhrBackend
+        if (status === 0) {
+            status = body ? HTTP_STATUS_CODE_OK : 0;
+        }
+        // ok determines whether the response will be transmitted on the event or
+        // error channel. Unsuccessful status codes (not 2xx) will always be errors,
+        // but a successful status code can still result in an error if the user
+        // asked for JSON data and the body cannot be parsed as such.
+        const ok = status >= 200 && status < 300;
+        if (ok) {
+            observer.next(new HttpResponse({
+                body,
+                headers,
+                status,
+                statusText,
+                url,
+            }));
+            // The full body has been received and delivered, no further events
+            // are possible. This request is complete.
+            observer.complete();
+        }
+        else {
+            observer.error(new HttpErrorResponse({
+                error: body,
+                headers,
+                status,
+                statusText,
+                url,
+            }));
+        }
+    }
+    parseBody(request, binContent, contentType) {
+        switch (request.responseType) {
+            case 'json':
+                // stripping the XSSI when present
+                const text = new TextDecoder().decode(binContent).replace(XSSI_PREFIX$1, '');
+                return text === '' ? null : JSON.parse(text);
+            case 'text':
+                return new TextDecoder().decode(binContent);
+            case 'blob':
+                return new Blob([binContent], { type: contentType });
+            case 'arraybuffer':
+                return binContent.buffer;
+        }
+    }
+    createRequestInit(req) {
+        // We could share some of this logic with the XhrBackend
+        const headers = {};
+        let credentials;
+        // If the request has a credentials property, use it.
+        // Otherwise, if the request has withCredentials set to true, use 'include'.
+        credentials = req.credentials;
+        // If withCredentials is true should be set to 'include', for compatibility
+        if (req.withCredentials) {
+            // A warning is logged in development mode if the request has both
+            (typeof ngDevMode === 'undefined' || ngDevMode) && warningOptionsMessage(req);
+            credentials = 'include';
+        }
+        // Setting all the requested headers.
+        req.headers.forEach((name, values) => (headers[name] = values.join(',')));
+        // Add an Accept header if one isn't present already.
+        if (!req.headers.has(ACCEPT_HEADER)) {
+            headers[ACCEPT_HEADER] = ACCEPT_HEADER_VALUE;
+        }
+        // Auto-detect the Content-Type header if one isn't present already.
+        if (!req.headers.has(CONTENT_TYPE_HEADER)) {
+            const detectedType = req.detectContentTypeHeader();
+            // Sometimes Content-Type detection fails.
+            if (detectedType !== null) {
+                headers[CONTENT_TYPE_HEADER] = detectedType;
+            }
+        }
+        return {
+            body: req.serializeBody(),
+            method: req.method,
+            headers,
+            credentials,
+            keepalive: req.keepalive,
+            cache: req.cache,
+            priority: req.priority,
+            mode: req.mode,
+            redirect: req.redirect,
+        };
+    }
+    concatChunks(chunks, totalLength) {
+        const chunksAll = new Uint8Array(totalLength);
+        let position = 0;
+        for (const chunk of chunks) {
+            chunksAll.set(chunk, position);
+            position += chunk.length;
+        }
+        return chunksAll;
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FetchBackend });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FetchBackend, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [] });
+/**
+ * Abstract class to provide a mocked implementation of `fetch()`
+ */
+class FetchFactory {
+}
+function noop() { }
+function warningOptionsMessage(req) {
+    if (req.credentials && req.withCredentials) {
+        console.warn(_formatRuntimeError(2819 /* RuntimeErrorCode.WITH_CREDENTIALS_OVERRIDES_EXPLICIT_CREDENTIALS */, `Angular detected that a \`HttpClient\` request has both \`withCredentials: true\` and \`credentials: '${req.credentials}'\` options. The \`withCredentials\` option is overriding the explicit \`credentials\` setting to 'include'. Consider removing \`withCredentials\` and using \`credentials: '${req.credentials}'\` directly for clarity.`));
+    }
+}
+/**
+ * Zone.js treats a rejected promise that has not yet been awaited
+ * as an unhandled error. This function adds a noop `.then` to make
+ * sure that Zone.js doesn't throw an error if the Promise is rejected
+ * synchronously.
+ */
+function silenceSuperfluousUnhandledPromiseRejection(promise) {
+    promise.then(noop, noop);
+}
+
+function interceptorChainEndFn(req, finalHandlerFn) {
+    return finalHandlerFn(req);
+}
+/**
+ * Constructs a `ChainedInterceptorFn` which adapts a legacy `HttpInterceptor` to the
+ * `ChainedInterceptorFn` interface.
+ */
+function adaptLegacyInterceptorToChain(chainTailFn, interceptor) {
+    return (initialRequest, finalHandlerFn) => interceptor.intercept(initialRequest, {
+        handle: (downstreamRequest) => chainTailFn(downstreamRequest, finalHandlerFn),
+    });
+}
+/**
+ * Constructs a `ChainedInterceptorFn` which wraps and invokes a functional interceptor in the given
+ * injector.
+ */
+function chainedInterceptorFn(chainTailFn, interceptorFn, injector) {
+    return (initialRequest, finalHandlerFn) => runInInjectionContext(injector, () => interceptorFn(initialRequest, (downstreamRequest) => chainTailFn(downstreamRequest, finalHandlerFn)));
+}
+/**
+ * A multi-provider token that represents the array of registered
+ * `HttpInterceptor` objects.
+ *
+ * @publicApi
+ */
+const HTTP_INTERCEPTORS = new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTORS' : '');
+/**
+ * A multi-provided token of `HttpInterceptorFn`s.
+ */
+const HTTP_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTOR_FNS' : '');
+/**
+ * A multi-provided token of `HttpInterceptorFn`s that are only set in root.
+ */
+const HTTP_ROOT_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_ROOT_INTERCEPTOR_FNS' : '');
+// TODO(atscott): We need a larger discussion about stability and what should contribute to stability.
+// Should the whole interceptor chain contribute to stability or just the backend request #55075?
+// Should HttpClient contribute to stability automatically at all?
+const REQUESTS_CONTRIBUTE_TO_STABILITY = new InjectionToken(ngDevMode ? 'REQUESTS_CONTRIBUTE_TO_STABILITY' : '', { providedIn: 'root', factory: () => true });
+/**
+ * Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy
+ * class-based interceptors and runs the request through it.
+ */
+function legacyInterceptorFnFactory() {
+    let chain = null;
+    return (req, handler) => {
+        if (chain === null) {
+            const interceptors = inject(HTTP_INTERCEPTORS, { optional: true }) ?? [];
+            // Note: interceptors are wrapped right-to-left so that final execution order is
+            // left-to-right. That is, if `interceptors` is the array `[a, b, c]`, we want to
+            // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside
+            // out.
+            chain = interceptors.reduceRight(adaptLegacyInterceptorToChain, interceptorChainEndFn);
+        }
+        const pendingTasks = inject(PendingTasks);
+        const contributeToStability = inject(REQUESTS_CONTRIBUTE_TO_STABILITY);
+        if (contributeToStability) {
+            const removeTask = pendingTasks.add();
+            return chain(req, handler).pipe(finalize(removeTask));
+        }
+        else {
+            return chain(req, handler);
+        }
+    };
+}
+let fetchBackendWarningDisplayed = false;
+class HttpInterceptorHandler extends HttpHandler {
+    backend;
+    injector;
+    chain = null;
+    pendingTasks = inject(PendingTasks);
+    contributeToStability = inject(REQUESTS_CONTRIBUTE_TO_STABILITY);
+    constructor(backend, injector) {
+        super();
+        this.backend = backend;
+        this.injector = injector;
+        // We strongly recommend using fetch backend for HTTP calls when SSR is used
+        // for an application. The logic below checks if that's the case and produces
+        // a warning otherwise.
+        if ((typeof ngDevMode === 'undefined' || ngDevMode) && !fetchBackendWarningDisplayed) {
+            // This flag is necessary because provideHttpClientTesting() overrides the backend
+            // even if `withFetch()` is used within the test. When the testing HTTP backend is provided,
+            // no HTTP calls are actually performed during the test, so producing a warning would be
+            // misleading.
+            const isTestingBackend = this.backend.isTestingBackend;
+            if (typeof ngServerMode !== 'undefined' &&
+                ngServerMode &&
+                !(this.backend instanceof FetchBackend) &&
+                !isTestingBackend) {
+                fetchBackendWarningDisplayed = true;
+                injector
+                    .get(_Console)
+                    .warn(_formatRuntimeError(2801 /* RuntimeErrorCode.NOT_USING_FETCH_BACKEND_IN_SSR */, 'Angular detected that `HttpClient` is not configured ' +
+                    "to use `fetch` APIs. It's strongly recommended to " +
+                    'enable `fetch` for applications that use Server-Side Rendering ' +
+                    'for better performance and compatibility. ' +
+                    'To enable `fetch`, add the `withFetch()` to the `provideHttpClient()` ' +
+                    'call at the root of the application.'));
+            }
+        }
+    }
+    handle(initialRequest) {
+        if (this.chain === null) {
+            const dedupedInterceptorFns = Array.from(new Set([
+                ...this.injector.get(HTTP_INTERCEPTOR_FNS),
+                ...this.injector.get(HTTP_ROOT_INTERCEPTOR_FNS, []),
+            ]));
+            // Note: interceptors are wrapped right-to-left so that final execution order is
+            // left-to-right. That is, if `dedupedInterceptorFns` is the array `[a, b, c]`, we want to
+            // produce a chain that is conceptually `c(b(a(end)))`, which we build from the inside
+            // out.
+            this.chain = dedupedInterceptorFns.reduceRight((nextSequencedFn, interceptorFn) => chainedInterceptorFn(nextSequencedFn, interceptorFn, this.injector), interceptorChainEndFn);
+        }
+        if (this.contributeToStability) {
+            const removeTask = this.pendingTasks.add();
+            return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest)).pipe(finalize(removeTask));
+        }
+        else {
+            return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest));
+        }
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpInterceptorHandler });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [{ type: HttpBackend }, { type: i0.EnvironmentInjector }] });
+
+// Every request made through JSONP needs a callback name that's unique across the
+// whole page. Each request is assigned an id and the callback name is constructed
+// from that. The next id to be assigned is tracked in a global variable here that
+// is shared among all applications on the page.
+let nextRequestId = 0;
+/**
+ * When a pending <script> is unsubscribed we'll move it to this document, so it won't be
+ * executed.
+ */
+let foreignDocument;
+// Error text given when a JSONP script is injected, but doesn't invoke the callback
+// passed in its URL.
+const JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';
+// Error text given when a request is passed to the JsonpClientBackend that doesn't
+// have a request method JSONP.
+const JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.';
+const JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';
+// Error text given when a request is passed to the JsonpClientBackend that has
+// headers set
+const JSONP_ERR_HEADERS_NOT_SUPPORTED = 'JSONP requests do not support headers.';
+/**
+ * DI token/abstract type representing a map of JSONP callbacks.
+ *
+ * In the browser, this should always be the `window` object.
+ *
+ *
+ */
+class JsonpCallbackContext {
+}
+/**
+ * Factory function that determines where to store JSONP callbacks.
+ *
+ * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist
+ * in test environments. In that case, callbacks are stored on an anonymous object instead.
+ *
+ *
+ */
+function jsonpCallbackContext() {
+    if (typeof window === 'object') {
+        return window;
+    }
+    return {};
+}
+/**
+ * Processes an `HttpRequest` with the JSONP method,
+ * by performing JSONP style requests.
+ * @see {@link HttpHandler}
+ * @see {@link HttpXhrBackend}
+ *
+ * @publicApi
+ */
+class JsonpClientBackend {
+    callbackMap;
+    document;
+    /**
+     * A resolved promise that can be used to schedule microtasks in the event handlers.
+     */
+    resolvedPromise = Promise.resolve();
+    constructor(callbackMap, document) {
+        this.callbackMap = callbackMap;
+        this.document = document;
+    }
+    /**
+     * Get the name of the next callback method, by incrementing the global `nextRequestId`.
+     */
+    nextCallback() {
+        return `ng_jsonp_callback_${nextRequestId++}`;
+    }
+    /**
+     * Processes a JSONP request and returns an event stream of the results.
+     * @param req The request object.
+     * @returns An observable of the response events.
+     *
+     */
+    handle(req) {
+        // Firstly, check both the method and response type. If either doesn't match
+        // then the request was improperly routed here and cannot be handled.
+        if (req.method !== 'JSONP') {
+            throw new _RuntimeError(2810 /* RuntimeErrorCode.JSONP_WRONG_METHOD */, ngDevMode && JSONP_ERR_WRONG_METHOD);
+        }
+        else if (req.responseType !== 'json') {
+            throw new _RuntimeError(2811 /* RuntimeErrorCode.JSONP_WRONG_RESPONSE_TYPE */, ngDevMode && JSONP_ERR_WRONG_RESPONSE_TYPE);
+        }
+        // Check the request headers. JSONP doesn't support headers and
+        // cannot set any that were supplied.
+        if (req.headers.keys().length > 0) {
+            throw new _RuntimeError(2812 /* RuntimeErrorCode.JSONP_HEADERS_NOT_SUPPORTED */, ngDevMode && JSONP_ERR_HEADERS_NOT_SUPPORTED);
+        }
+        // Everything else happens inside the Observable boundary.
+        return new Observable((observer) => {
+            // The first step to make a request is to generate the callback name, and replace the
+            // callback placeholder in the URL with the name. Care has to be taken here to ensure
+            // a trailing &, if matched, gets inserted back into the URL in the correct place.
+            const callback = this.nextCallback();
+            const url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, `=${callback}$1`);
+            // Construct the <script> tag and point it at the URL.
+            const node = this.document.createElement('script');
+            node.src = url;
+            // A JSONP request requires waiting for multiple callbacks. These variables
+            // are closed over and track state across those callbacks.
+            // The response object, if one has been received, or null otherwise.
+            let body = null;
+            // Whether the response callback has been called.
+            let finished = false;
+            // Set the response callback in this.callbackMap (which will be the window
+            // object in the browser. The script being loaded via the <script> tag will
+            // eventually call this callback.
+            this.callbackMap[callback] = (data) => {
+                // Data has been received from the JSONP script. Firstly, delete this callback.
+                delete this.callbackMap[callback];
+                // Set state to indicate data was received.
+                body = data;
+                finished = true;
+            };
+            // cleanup() is a utility closure that removes the <script> from the page and
+            // the response callback from the window. This logic is used in both the
+            // success, error, and cancellation paths, so it's extracted out for convenience.
+            const cleanup = () => {
+                node.removeEventListener('load', onLoad);
+                node.removeEventListener('error', onError);
+                // Remove the <script> tag if it's still on the page.
+                node.remove();
+                // Remove the response callback from the callbackMap (window object in the
+                // browser).
+                delete this.callbackMap[callback];
+            };
+            // onLoad() is the success callback which runs after the response callback
+            // if the JSONP script loads successfully. The event itself is unimportant.
+            // If something went wrong, onLoad() may run without the response callback
+            // having been invoked.
+            const onLoad = () => {
+                // We wrap it in an extra Promise, to ensure the microtask
+                // is scheduled after the loaded endpoint has executed any potential microtask itself,
+                // which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496
+                this.resolvedPromise.then(() => {
+                    // Cleanup the page.
+                    cleanup();
+                    // Check whether the response callback has run.
+                    if (!finished) {
+                        // It hasn't, something went wrong with the request. Return an error via
+                        // the Observable error path. All JSONP errors have status 0.
+                        observer.error(new HttpErrorResponse({
+                            url,
+                            status: 0,
+                            statusText: 'JSONP Error',
+                            error: new Error(JSONP_ERR_NO_CALLBACK),
+                        }));
+                        return;
+                    }
+                    // Success. body either contains the response body or null if none was
+                    // returned.
+                    observer.next(new HttpResponse({
+                        body,
+                        status: HTTP_STATUS_CODE_OK,
+                        statusText: 'OK',
+                        url,
+                    }));
+                    // Complete the stream, the response is over.
+                    observer.complete();
+                });
+            };
+            // onError() is the error callback, which runs if the script returned generates
+            // a Javascript error. It emits the error via the Observable error channel as
+            // a HttpErrorResponse.
+            const onError = (error) => {
+                cleanup();
+                // Wrap the error in a HttpErrorResponse.
+                observer.error(new HttpErrorResponse({
+                    error,
+                    status: 0,
+                    statusText: 'JSONP Error',
+                    url,
+                }));
+            };
+            // Subscribe to both the success (load) and error events on the <script> tag,
+            // and add it to the page.
+            node.addEventListener('load', onLoad);
+            node.addEventListener('error', onError);
+            this.document.body.appendChild(node);
+            // The request has now been successfully sent.
+            observer.next({ type: HttpEventType.Sent });
+            // Cancellation handler.
+            return () => {
+                if (!finished) {
+                    this.removeListeners(node);
+                }
+                // And finally, clean up the page.
+                cleanup();
+            };
+        });
+    }
+    removeListeners(script) {
+        // Issue #34818
+        // Changing <script>'s ownerDocument will prevent it from execution.
+        // https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block
+        foreignDocument ??= this.document.implementation.createHTMLDocument();
+        foreignDocument.adoptNode(script);
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: JsonpClientBackend });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: JsonpClientBackend, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
+                    type: Inject,
+                    args: [DOCUMENT]
+                }] }] });
+/**
+ * Identifies requests with the method JSONP and shifts them to the `JsonpClientBackend`.
+ */
+function jsonpInterceptorFn(req, next) {
+    if (req.method === 'JSONP') {
+        return inject(JsonpClientBackend).handle(req);
+    }
+    // Fall through for normal HTTP requests.
+    return next(req);
+}
+/**
+ * Identifies requests with the method JSONP and
+ * shifts them to the `JsonpClientBackend`.
+ *
+ * @see {@link HttpInterceptor}
+ *
+ * @publicApi
+ */
+class JsonpInterceptor {
+    injector;
+    constructor(injector) {
+        this.injector = injector;
+    }
+    /**
+     * Identifies and handles a given JSONP request.
+     * @param initialRequest The outgoing request object to handle.
+     * @param next The next interceptor in the chain, or the backend
+     * if no interceptors remain in the chain.
+     * @returns An observable of the event stream.
+     */
+    intercept(initialRequest, next) {
+        return runInInjectionContext(this.injector, () => jsonpInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: JsonpInterceptor });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: JsonpInterceptor, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
+
+const XSSI_PREFIX = /^\)\]\}',?\n/;
+const X_REQUEST_URL_REGEXP = RegExp(`^${X_REQUEST_URL_HEADER}:`, 'm');
+/**
+ * Determine an appropriate URL for the response, by checking either
+ * XMLHttpRequest.responseURL or the X-Request-URL header.
+ */
+function getResponseUrl(xhr) {
+    if ('responseURL' in xhr && xhr.responseURL) {
+        return xhr.responseURL;
+    }
+    if (X_REQUEST_URL_REGEXP.test(xhr.getAllResponseHeaders())) {
+        return xhr.getResponseHeader(X_REQUEST_URL_HEADER);
+    }
+    return null;
+}
+/**
+ * Validates whether the request is compatible with the XHR backend.
+ * Show a warning if the request contains options that are not supported by XHR.
+ */
+function validateXhrCompatibility(req) {
+    const unsupportedOptions = [
+        {
+            property: 'keepalive',
+            errorCode: 2813 /* RuntimeErrorCode.KEEPALIVE_NOT_SUPPORTED_WITH_XHR */,
+        },
+        {
+            property: 'cache',
+            errorCode: 2814 /* RuntimeErrorCode.CACHE_NOT_SUPPORTED_WITH_XHR */,
+        },
+        {
+            property: 'priority',
+            errorCode: 2815 /* RuntimeErrorCode.PRIORITY_NOT_SUPPORTED_WITH_XHR */,
+        },
+        {
+            property: 'mode',
+            errorCode: 2816 /* RuntimeErrorCode.MODE_NOT_SUPPORTED_WITH_XHR */,
+        },
+        {
+            property: 'redirect',
+            errorCode: 2817 /* RuntimeErrorCode.REDIRECT_NOT_SUPPORTED_WITH_XHR */,
+        },
+        {
+            property: 'credentials',
+            errorCode: 2818 /* RuntimeErrorCode.CREDENTIALS_NOT_SUPPORTED_WITH_XHR */,
+        },
+    ];
+    // Check each unsupported option and warn if present
+    for (const { property, errorCode } of unsupportedOptions) {
+        if (property in req) {
+            console.warn(_formatRuntimeError(errorCode, `Angular detected that a \`HttpClient\` request with the \`${property}\` option was sent using XHR, which does not support it. To use the \`${property}\` option, enable Fetch API support by passing \`withFetch()\` as an argument to \`provideHttpClient()\`.`));
+        }
+    }
+}
+/**
+ * Uses `XMLHttpRequest` to send requests to a backend server.
+ * @see {@link HttpHandler}
+ * @see {@link JsonpClientBackend}
+ *
+ * @publicApi
+ */
+class HttpXhrBackend {
+    xhrFactory;
+    constructor(xhrFactory) {
+        this.xhrFactory = xhrFactory;
+    }
+    /**
+     * Processes a request and returns a stream of response events.
+     * @param req The request object.
+     * @returns An observable of the response events.
+     */
+    handle(req) {
+        // Quick check to give a better error message when a user attempts to use
+        // HttpClient.jsonp() without installing the HttpClientJsonpModule
+        if (req.method === 'JSONP') {
+            throw new _RuntimeError(-2800 /* RuntimeErrorCode.MISSING_JSONP_MODULE */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
+                `Cannot make a JSONP request without JSONP support. To fix the problem, either add the \`withJsonpSupport()\` call (if \`provideHttpClient()\` is used) or import the \`HttpClientJsonpModule\` in the root NgModule.`);
+        }
+        // Validate that the request is compatible with the XHR backend.
+        ngDevMode && validateXhrCompatibility(req);
+        // Check whether this factory has a special function to load an XHR implementation
+        // for various non-browser environments. We currently limit it to only `ServerXhr`
+        // class, which needs to load an XHR implementation.
+        const xhrFactory = this.xhrFactory;
+        const source = 
+        // Note that `ɵloadImpl` is never defined in client bundles and can be
+        // safely dropped whenever we're running in the browser.
+        // This branching is redundant.
+        // The `ngServerMode` guard also enables tree-shaking of the `from()`
+        // function from the common bundle, as it's only used in server code.
+        typeof ngServerMode !== 'undefined' && ngServerMode && xhrFactory.ɵloadImpl
+            ? from(xhrFactory.ɵloadImpl())
+            : of(null);
+        return source.pipe(switchMap(() => {
+            // Everything happens on Observable subscription.
+            return new Observable((observer) => {
+                // Start by setting up the XHR object with request method, URL, and withCredentials
+                // flag.
+                const xhr = xhrFactory.build();
+                xhr.open(req.method, req.urlWithParams);
+                if (req.withCredentials) {
+                    xhr.withCredentials = true;
+                }
+                // Add all the requested headers.
+                req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));
+                // Add an Accept header if one isn't present already.
+                if (!req.headers.has(ACCEPT_HEADER)) {
+                    xhr.setRequestHeader(ACCEPT_HEADER, ACCEPT_HEADER_VALUE);
+                }
+                // Auto-detect the Content-Type header if one isn't present already.
+                if (!req.headers.has(CONTENT_TYPE_HEADER)) {
+                    const detectedType = req.detectContentTypeHeader();
+                    // Sometimes Content-Type detection fails.
+                    if (detectedType !== null) {
+                        xhr.setRequestHeader(CONTENT_TYPE_HEADER, detectedType);
+                    }
+                }
+                if (req.timeout) {
+                    xhr.timeout = req.timeout;
+                }
+                // Set the responseType if one was requested.
+                if (req.responseType) {
+                    const responseType = req.responseType.toLowerCase();
+                    // JSON responses need to be processed as text. This is because if the server
+                    // returns an XSSI-prefixed JSON response, the browser will fail to parse it,
+                    // xhr.response will be null, and xhr.responseText cannot be accessed to
+                    // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON
+                    // is parsed by first requesting text and then applying JSON.parse.
+                    xhr.responseType = (responseType !== 'json' ? responseType : 'text');
+                }
+                // Serialize the request body if one is present. If not, this will be set to null.
+                const reqBody = req.serializeBody();
+                // If progress events are enabled, response headers will be delivered
+                // in two events - the HttpHeaderResponse event and the full HttpResponse
+                // event. However, since response headers don't change in between these
+                // two events, it doesn't make sense to parse them twice. So headerResponse
+                // caches the data extracted from the response whenever it's first parsed,
+                // to ensure parsing isn't duplicated.
+                let headerResponse = null;
+                // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest
+                // state, and memoizes it into headerResponse.
+                const partialFromXhr = () => {
+                    if (headerResponse !== null) {
+                        return headerResponse;
+                    }
+                    const statusText = xhr.statusText || 'OK';
+                    // Parse headers from XMLHttpRequest - this step is lazy.
+                    const headers = new HttpHeaders(xhr.getAllResponseHeaders());
+                    // Read the response URL from the XMLHttpResponse instance and fall back on the
+                    // request URL.
+                    const url = getResponseUrl(xhr) || req.url;
+                    // Construct the HttpHeaderResponse and memoize it.
+                    headerResponse = new HttpHeaderResponse({ headers, status: xhr.status, statusText, url });
+                    return headerResponse;
+                };
+                // Next, a few closures are defined for the various events which XMLHttpRequest can
+                // emit. This allows them to be unregistered as event listeners later.
+                // First up is the load event, which represents a response being fully available.
+                const onLoad = () => {
+                    // Read response state from the memoized partial data.
+                    let { headers, status, statusText, url } = partialFromXhr();
+                    // The body will be read out if present.
+                    let body = null;
+                    if (status !== HTTP_STATUS_CODE_NO_CONTENT) {
+                        // Use XMLHttpRequest.response if set, responseText otherwise.
+                        body = typeof xhr.response === 'undefined' ? xhr.responseText : xhr.response;
+                    }
+                    // Normalize another potential bug (this one comes from CORS).
+                    if (status === 0) {
+                        status = !!body ? HTTP_STATUS_CODE_OK : 0;
+                    }
+                    // ok determines whether the response will be transmitted on the event or
+                    // error channel. Unsuccessful status codes (not 2xx) will always be errors,
+                    // but a successful status code can still result in an error if the user
+                    // asked for JSON data and the body cannot be parsed as such.
+                    let ok = status >= 200 && status < 300;
+                    // Check whether the body needs to be parsed as JSON (in many cases the browser
+                    // will have done that already).
+                    if (req.responseType === 'json' && typeof body === 'string') {
+                        // Save the original body, before attempting XSSI prefix stripping.
+                        const originalBody = body;
+                        body = body.replace(XSSI_PREFIX, '');
+                        try {
+                            // Attempt the parse. If it fails, a parse error should be delivered to the
+                            // user.
+                            body = body !== '' ? JSON.parse(body) : null;
+                        }
+                        catch (error) {
+                            // Since the JSON.parse failed, it's reasonable to assume this might not have
+                            // been a JSON response. Restore the original body (including any XSSI prefix)
+                            // to deliver a better error response.
+                            body = originalBody;
+                            // If this was an error request to begin with, leave it as a string, it
+                            // probably just isn't JSON. Otherwise, deliver the parsing error to the user.
+                            if (ok) {
+                                // Even though the response status was 2xx, this is still an error.
+                                ok = false;
+                                // The parse error contains the text of the body that failed to parse.
+                                body = { error, text: body };
+                            }
+                        }
+                    }
+                    if (ok) {
+                        // A successful response is delivered on the event stream.
+                        observer.next(new HttpResponse({
+                            body,
+                            headers,
+                            status,
+                            statusText,
+                            url: url || undefined,
+                        }));
+                        // The full body has been received and delivered, no further events
+                        // are possible. This request is complete.
+                        observer.complete();
+                    }
+                    else {
+                        // An unsuccessful request is delivered on the error channel.
+                        observer.error(new HttpErrorResponse({
+                            // The error in this case is the response body (error from the server).
+                            error: body,
+                            headers,
+                            status,
+                            statusText,
+                            url: url || undefined,
+                        }));
+                    }
+                };
+                // The onError callback is called when something goes wrong at the network level.
+                // Connection timeout, DNS error, offline, etc. These are actual errors, and are
+                // transmitted on the error channel.
+                const onError = (error) => {
+                    const { url } = partialFromXhr();
+                    const res = new HttpErrorResponse({
+                        error,
+                        status: xhr.status || 0,
+                        statusText: xhr.statusText || 'Unknown Error',
+                        url: url || undefined,
+                    });
+                    observer.error(res);
+                };
+                let onTimeout = onError;
+                if (req.timeout) {
+                    onTimeout = (_) => {
+                        const { url } = partialFromXhr();
+                        const res = new HttpErrorResponse({
+                            error: new DOMException('Request timed out', 'TimeoutError'),
+                            status: xhr.status || 0,
+                            statusText: xhr.statusText || 'Request timeout',
+                            url: url || undefined,
+                        });
+                        observer.error(res);
+                    };
+                }
+                // The sentHeaders flag tracks whether the HttpResponseHeaders event
+                // has been sent on the stream. This is necessary to track if progress
+                // is enabled since the event will be sent on only the first download
+                // progress event.
+                let sentHeaders = false;
+                // The download progress event handler, which is only registered if
+                // progress events are enabled.
+                const onDownProgress = (event) => {
+                    // Send the HttpResponseHeaders event if it hasn't been sent already.
+                    if (!sentHeaders) {
+                        observer.next(partialFromXhr());
+                        sentHeaders = true;
+                    }
+                    // Start building the download progress event to deliver on the response
+                    // event stream.
+                    let progressEvent = {
+                        type: HttpEventType.DownloadProgress,
+                        loaded: event.loaded,
+                    };
+                    // Set the total number of bytes in the event if it's available.
+                    if (event.lengthComputable) {
+                        progressEvent.total = event.total;
+                    }
+                    // If the request was for text content and a partial response is
+                    // available on XMLHttpRequest, include it in the progress event
+                    // to allow for streaming reads.
+                    if (req.responseType === 'text' && !!xhr.responseText) {
+                        progressEvent.partialText = xhr.responseText;
+                    }
+                    // Finally, fire the event.
+                    observer.next(progressEvent);
+                };
+                // The upload progress event handler, which is only registered if
+                // progress events are enabled.
+                const onUpProgress = (event) => {
+                    // Upload progress events are simpler. Begin building the progress
+                    // event.
+                    let progress = {
+                        type: HttpEventType.UploadProgress,
+                        loaded: event.loaded,
+                    };
+                    // If the total number of bytes being uploaded is available, include
+                    // it.
+                    if (event.lengthComputable) {
+                        progress.total = event.total;
+                    }
+                    // Send the event.
+                    observer.next(progress);
+                };
+                // By default, register for load and error events.
+                xhr.addEventListener('load', onLoad);
+                xhr.addEventListener('error', onError);
+                xhr.addEventListener('timeout', onTimeout);
+                xhr.addEventListener('abort', onError);
+                // Progress events are only enabled if requested.
+                if (req.reportProgress) {
+                    // Download progress is always enabled if requested.
+                    xhr.addEventListener('progress', onDownProgress);
+                    // Upload progress depends on whether there is a body to upload.
+                    if (reqBody !== null && xhr.upload) {
+                        xhr.upload.addEventListener('progress', onUpProgress);
+                    }
+                }
+                // Fire the request, and notify the event stream that it was fired.
+                xhr.send(reqBody);
+                observer.next({ type: HttpEventType.Sent });
+                // This is the return from the Observable function, which is the
+                // request cancellation handler.
+                return () => {
+                    // On a cancellation, remove all registered event listeners.
+                    xhr.removeEventListener('error', onError);
+                    xhr.removeEventListener('abort', onError);
+                    xhr.removeEventListener('load', onLoad);
+                    xhr.removeEventListener('timeout', onTimeout);
+                    if (req.reportProgress) {
+                        xhr.removeEventListener('progress', onDownProgress);
+                        if (reqBody !== null && xhr.upload) {
+                            xhr.upload.removeEventListener('progress', onUpProgress);
+                        }
+                    }
+                    // Finally, abort the in-flight request.
+                    if (xhr.readyState !== xhr.DONE) {
+                        xhr.abort();
+                    }
+                };
+            });
+        }));
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpXhrBackend, deps: [{ token: XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpXhrBackend });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpXhrBackend, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [{ type: XhrFactory }] });
+
+const XSRF_ENABLED = new InjectionToken(ngDevMode ? 'XSRF_ENABLED' : '');
+const XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN';
+const XSRF_COOKIE_NAME = new InjectionToken(ngDevMode ? 'XSRF_COOKIE_NAME' : '', {
+    providedIn: 'root',
+    factory: () => XSRF_DEFAULT_COOKIE_NAME,
+});
+const XSRF_DEFAULT_HEADER_NAME = 'X-XSRF-TOKEN';
+const XSRF_HEADER_NAME = new InjectionToken(ngDevMode ? 'XSRF_HEADER_NAME' : '', {
+    providedIn: 'root',
+    factory: () => XSRF_DEFAULT_HEADER_NAME,
+});
+/**
+ * Retrieves the current XSRF token to use with the next outgoing request.
+ *
+ * @publicApi
+ */
+class HttpXsrfTokenExtractor {
+}
+/**
+ * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.
+ */
+class HttpXsrfCookieExtractor {
+    doc;
+    cookieName;
+    lastCookieString = '';
+    lastToken = null;
+    /**
+     * @internal for testing
+     */
+    parseCount = 0;
+    constructor(doc, cookieName) {
+        this.doc = doc;
+        this.cookieName = cookieName;
+    }
+    getToken() {
+        if (typeof ngServerMode !== 'undefined' && ngServerMode) {
+            return null;
+        }
+        const cookieString = this.doc.cookie || '';
+        if (cookieString !== this.lastCookieString) {
+            this.parseCount++;
+            this.lastToken = parseCookieValue(cookieString, this.cookieName);
+            this.lastCookieString = cookieString;
+        }
+        return this.lastToken;
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpXsrfCookieExtractor });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [{ type: undefined, decorators: [{
+                    type: Inject,
+                    args: [DOCUMENT]
+                }] }, { type: undefined, decorators: [{
+                    type: Inject,
+                    args: [XSRF_COOKIE_NAME]
+                }] }] });
+function xsrfInterceptorFn(req, next) {
+    const lcUrl = req.url.toLowerCase();
+    // Skip both non-mutating requests and absolute URLs.
+    // Non-mutating requests don't require a token, and absolute URLs require special handling
+    // anyway as the cookie set
+    // on our origin is not the same as the token expected by another origin.
+    if (!inject(XSRF_ENABLED) ||
+        req.method === 'GET' ||
+        req.method === 'HEAD' ||
+        lcUrl.startsWith('http://') ||
+        lcUrl.startsWith('https://')) {
+        return next(req);
+    }
+    const token = inject(HttpXsrfTokenExtractor).getToken();
+    const headerName = inject(XSRF_HEADER_NAME);
+    // Be careful not to overwrite an existing header of the same name.
+    if (token != null && !req.headers.has(headerName)) {
+        req = req.clone({ headers: req.headers.set(headerName, token) });
+    }
+    return next(req);
+}
+/**
+ * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.
+ */
+class HttpXsrfInterceptor {
+    injector;
+    constructor(injector) {
+        this.injector = injector;
+    }
+    intercept(initialRequest, next) {
+        return runInInjectionContext(this.injector, () => xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpXsrfInterceptor });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
+
+/**
+ * Identifies a particular kind of `HttpFeature`.
+ *
+ * @publicApi
+ */
+var HttpFeatureKind;
+(function (HttpFeatureKind) {
+    HttpFeatureKind[HttpFeatureKind["Interceptors"] = 0] = "Interceptors";
+    HttpFeatureKind[HttpFeatureKind["LegacyInterceptors"] = 1] = "LegacyInterceptors";
+    HttpFeatureKind[HttpFeatureKind["CustomXsrfConfiguration"] = 2] = "CustomXsrfConfiguration";
+    HttpFeatureKind[HttpFeatureKind["NoXsrfProtection"] = 3] = "NoXsrfProtection";
+    HttpFeatureKind[HttpFeatureKind["JsonpSupport"] = 4] = "JsonpSupport";
+    HttpFeatureKind[HttpFeatureKind["RequestsMadeViaParent"] = 5] = "RequestsMadeViaParent";
+    HttpFeatureKind[HttpFeatureKind["Fetch"] = 6] = "Fetch";
+})(HttpFeatureKind || (HttpFeatureKind = {}));
+function makeHttpFeature(kind, providers) {
+    return {
+        ɵkind: kind,
+        ɵproviders: providers,
+    };
+}
+/**
+ * Configures Angular's `HttpClient` service to be available for injection.
+ *
+ * By default, `HttpClient` will be configured for injection with its default options for XSRF
+ * protection of outgoing requests. Additional configuration options can be provided by passing
+ * feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the
+ * `withInterceptors(...)` feature.
+ *
+ * <div class="docs-alert docs-alert-helpful">
+ *
+ * It's strongly recommended to enable
+ * [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) for applications that use
+ * Server-Side Rendering for better performance and compatibility. To enable `fetch`, add
+ * `withFetch()` feature to the `provideHttpClient()` call at the root of the application:
+ *
+ * ```ts
+ * provideHttpClient(withFetch());
+ * ```
+ *
+ * </div>
+ *
+ * @see {@link withInterceptors}
+ * @see {@link withInterceptorsFromDi}
+ * @see {@link withXsrfConfiguration}
+ * @see {@link withNoXsrfProtection}
+ * @see {@link withJsonpSupport}
+ * @see {@link withRequestsMadeViaParent}
+ * @see {@link withFetch}
+ */
+function provideHttpClient(...features) {
+    if (ngDevMode) {
+        const featureKinds = new Set(features.map((f) => f.ɵkind));
+        if (featureKinds.has(HttpFeatureKind.NoXsrfProtection) &&
+            featureKinds.has(HttpFeatureKind.CustomXsrfConfiguration)) {
+            throw new Error(ngDevMode
+                ? `Configuration error: found both withXsrfConfiguration() and withNoXsrfProtection() in the same call to provideHttpClient(), which is a contradiction.`
+                : '');
+        }
+    }
+    const providers = [
+        HttpClient,
+        HttpXhrBackend,
+        HttpInterceptorHandler,
+        { provide: HttpHandler, useExisting: HttpInterceptorHandler },
+        {
+            provide: HttpBackend,
+            useFactory: () => {
+                return inject(FETCH_BACKEND, { optional: true }) ?? inject(HttpXhrBackend);
+            },
+        },
+        {
+            provide: HTTP_INTERCEPTOR_FNS,
+            useValue: xsrfInterceptorFn,
+            multi: true,
+        },
+        { provide: XSRF_ENABLED, useValue: true },
+        { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
+    ];
+    for (const feature of features) {
+        providers.push(...feature.ɵproviders);
+    }
+    return makeEnvironmentProviders(providers);
+}
+/**
+ * Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`
+ * instance.
+ *
+ * @see {@link HttpInterceptorFn}
+ * @see {@link provideHttpClient}
+ * @publicApi
+ */
+function withInterceptors(interceptorFns) {
+    return makeHttpFeature(HttpFeatureKind.Interceptors, interceptorFns.map((interceptorFn) => {
+        return {
+            provide: HTTP_INTERCEPTOR_FNS,
+            useValue: interceptorFn,
+            multi: true,
+        };
+    }));
+}
+const LEGACY_INTERCEPTOR_FN = new InjectionToken(ngDevMode ? 'LEGACY_INTERCEPTOR_FN' : '');
+/**
+ * Includes class-based interceptors configured using a multi-provider in the current injector into
+ * the configured `HttpClient` instance.
+ *
+ * Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided
+ * interceptors may be phased out in a later release.
+ *
+ * @see {@link HttpInterceptor}
+ * @see {@link HTTP_INTERCEPTORS}
+ * @see {@link provideHttpClient}
+ */
+function withInterceptorsFromDi() {
+    // Note: the legacy interceptor function is provided here via an intermediate token
+    // (`LEGACY_INTERCEPTOR_FN`), using a pattern which guarantees that if these providers are
+    // included multiple times, all of the multi-provider entries will have the same instance of the
+    // interceptor function. That way, the `HttpINterceptorHandler` will dedup them and legacy
+    // interceptors will not run multiple times.
+    return makeHttpFeature(HttpFeatureKind.LegacyInterceptors, [
+        {
+            provide: LEGACY_INTERCEPTOR_FN,
+            useFactory: legacyInterceptorFnFactory,
+        },
+        {
+            provide: HTTP_INTERCEPTOR_FNS,
+            useExisting: LEGACY_INTERCEPTOR_FN,
+            multi: true,
+        },
+    ]);
+}
+/**
+ * Customizes the XSRF protection for the configuration of the current `HttpClient` instance.
+ *
+ * This feature is incompatible with the `withNoXsrfProtection` feature.
+ *
+ * @see {@link provideHttpClient}
+ */
+function withXsrfConfiguration({ cookieName, headerName, }) {
+    const providers = [];
+    if (cookieName !== undefined) {
+        providers.push({ provide: XSRF_COOKIE_NAME, useValue: cookieName });
+    }
+    if (headerName !== undefined) {
+        providers.push({ provide: XSRF_HEADER_NAME, useValue: headerName });
+    }
+    return makeHttpFeature(HttpFeatureKind.CustomXsrfConfiguration, providers);
+}
+/**
+ * Disables XSRF protection in the configuration of the current `HttpClient` instance.
+ *
+ * This feature is incompatible with the `withXsrfConfiguration` feature.
+ *
+ * @see {@link provideHttpClient}
+ */
+function withNoXsrfProtection() {
+    return makeHttpFeature(HttpFeatureKind.NoXsrfProtection, [
+        {
+            provide: XSRF_ENABLED,
+            useValue: false,
+        },
+    ]);
+}
+/**
+ * Add JSONP support to the configuration of the current `HttpClient` instance.
+ *
+ * @see {@link provideHttpClient}
+ */
+function withJsonpSupport() {
+    return makeHttpFeature(HttpFeatureKind.JsonpSupport, [
+        JsonpClientBackend,
+        { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },
+        { provide: HTTP_INTERCEPTOR_FNS, useValue: jsonpInterceptorFn, multi: true },
+    ]);
+}
+/**
+ * Configures the current `HttpClient` instance to make requests via the parent injector's
+ * `HttpClient` instead of directly.
+ *
+ * By default, `provideHttpClient` configures `HttpClient` in its injector to be an independent
+ * instance. For example, even if `HttpClient` is configured in the parent injector with
+ * one or more interceptors, they will not intercept requests made via this instance.
+ *
+ * With this option enabled, once the request has passed through the current injector's
+ * interceptors, it will be delegated to the parent injector's `HttpClient` chain instead of
+ * dispatched directly, and interceptors in the parent configuration will be applied to the request.
+ *
+ * If there are several `HttpClient` instances in the injector hierarchy, it's possible for
+ * `withRequestsMadeViaParent` to be used at multiple levels, which will cause the request to
+ * "bubble up" until either reaching the root level or an `HttpClient` which was not configured with
+ * this option.
+ *
+ * @see {@link provideHttpClient}
+ * @publicApi 19.0
+ */
+function withRequestsMadeViaParent() {
+    return makeHttpFeature(HttpFeatureKind.RequestsMadeViaParent, [
+        {
+            provide: HttpBackend,
+            useFactory: () => {
+                const handlerFromParent = inject(HttpHandler, { skipSelf: true, optional: true });
+                if (ngDevMode && handlerFromParent === null) {
+                    throw new Error('withRequestsMadeViaParent() can only be used when the parent injector also configures HttpClient');
+                }
+                return handlerFromParent;
+            },
+        },
+    ]);
+}
+/**
+ * Configures the current `HttpClient` instance to make requests using the fetch API.
+ *
+ * Note: The Fetch API doesn't support progress report on uploads.
+ *
+ * @publicApi
+ */
+function withFetch() {
+    return makeHttpFeature(HttpFeatureKind.Fetch, [
+        FetchBackend,
+        { provide: FETCH_BACKEND, useExisting: FetchBackend },
+        { provide: HttpBackend, useExisting: FetchBackend },
+    ]);
+}
+
+/**
+ * Configures XSRF protection support for outgoing requests.
+ *
+ * For a server that supports a cookie-based XSRF protection system,
+ * use directly to configure XSRF protection with the correct
+ * cookie and header names.
+ *
+ * If no names are supplied, the default cookie name is `XSRF-TOKEN`
+ * and the default header name is `X-XSRF-TOKEN`.
+ *
+ * @publicApi
+ * @deprecated Use withXsrfConfiguration({cookieName: 'XSRF-TOKEN', headerName: 'X-XSRF-TOKEN'}) as
+ *     providers instead or `withNoXsrfProtection` if you want to disabled XSRF protection.
+ */
+class HttpClientXsrfModule {
+    /**
+     * Disable the default XSRF protection.
+     */
+    static disable() {
+        return {
+            ngModule: HttpClientXsrfModule,
+            providers: [withNoXsrfProtection().ɵproviders],
+        };
+    }
+    /**
+     * Configure XSRF protection.
+     * @param options An object that can specify either or both
+     * cookie name or header name.
+     * - Cookie name default is `XSRF-TOKEN`.
+     * - Header name default is `X-XSRF-TOKEN`.
+     *
+     */
+    static withOptions(options = {}) {
+        return {
+            ngModule: HttpClientXsrfModule,
+            providers: withXsrfConfiguration(options).ɵproviders,
+        };
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
+    static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: HttpClientXsrfModule });
+    static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientXsrfModule, providers: [
+            HttpXsrfInterceptor,
+            { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
+            { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
+            withXsrfConfiguration({
+                cookieName: XSRF_DEFAULT_COOKIE_NAME,
+                headerName: XSRF_DEFAULT_HEADER_NAME,
+            }).ɵproviders,
+            { provide: XSRF_ENABLED, useValue: true },
+        ] });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
+            type: NgModule,
+            args: [{
+                    providers: [
+                        HttpXsrfInterceptor,
+                        { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
+                        { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
+                        withXsrfConfiguration({
+                            cookieName: XSRF_DEFAULT_COOKIE_NAME,
+                            headerName: XSRF_DEFAULT_HEADER_NAME,
+                        }).ɵproviders,
+                        { provide: XSRF_ENABLED, useValue: true },
+                    ],
+                }]
+        }] });
+/**
+ * Configures the dependency injector for `HttpClient`
+ * with supporting services for XSRF. Automatically imported by `HttpClientModule`.
+ *
+ * You can add interceptors to the chain behind `HttpClient` by binding them to the
+ * multiprovider for built-in DI token `HTTP_INTERCEPTORS`.
+ *
+ * @publicApi
+ * @deprecated use `provideHttpClient(withInterceptorsFromDi())` as providers instead
+ */
+class HttpClientModule {
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
+    static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: HttpClientModule });
+    static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientModule, providers: [provideHttpClient(withInterceptorsFromDi())] });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientModule, decorators: [{
+            type: NgModule,
+            args: [{
+                    /**
+                     * Configures the dependency injector where it is imported
+                     * with supporting services for HTTP communications.
+                     */
+                    providers: [provideHttpClient(withInterceptorsFromDi())],
+                }]
+        }] });
+/**
+ * Configures the dependency injector for `HttpClient`
+ * with supporting services for JSONP.
+ * Without this module, Jsonp requests reach the backend
+ * with method JSONP, where they are rejected.
+ *
+ * @publicApi
+ * @deprecated `withJsonpSupport()` as providers instead
+ */
+class HttpClientJsonpModule {
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
+    static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: HttpClientJsonpModule });
+    static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientJsonpModule, providers: [withJsonpSupport().ɵproviders] });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
+            type: NgModule,
+            args: [{
+                    providers: [withJsonpSupport().ɵproviders],
+                }]
+        }] });
+
+export { FetchBackend, HTTP_INTERCEPTORS, HTTP_ROOT_INTERCEPTOR_FNS, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpErrorResponse, HttpEventType, HttpFeatureKind, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpInterceptorHandler, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpStatusCode, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, REQUESTS_CONTRIBUTE_TO_STABILITY, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration };
+//# sourceMappingURL=module.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/fesm2022/module.mjs.map


+ 24 - 0
node_modules/@angular/common/fesm2022/platform_navigation.mjs

@@ -0,0 +1,24 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { Injectable } from '@angular/core';
+
+/**
+ * This class wraps the platform Navigation API which allows server-specific and test
+ * implementations.
+ */
+class PlatformNavigation {
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PlatformNavigation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PlatformNavigation, providedIn: 'platform', useFactory: () => window.navigation });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: PlatformNavigation, decorators: [{
+            type: Injectable,
+            args: [{ providedIn: 'platform', useFactory: () => window.navigation }]
+        }] });
+
+export { PlatformNavigation };
+//# sourceMappingURL=platform_navigation.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/fesm2022/platform_navigation.mjs.map


+ 596 - 0
node_modules/@angular/common/fesm2022/testing.mjs

@@ -0,0 +1,596 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import { ɵnormalizeQueryParams as _normalizeQueryParams, LocationStrategy } from '@angular/common';
+import * as i0 from '@angular/core';
+import { InjectionToken, Injectable, Inject, Optional, inject, DOCUMENT } from '@angular/core';
+import { Subject } from 'rxjs';
+import { PlatformNavigation } from './platform_navigation.mjs';
+import { ɵFakeNavigation as _FakeNavigation } from '@angular/core/testing';
+export { ɵFakeNavigation } from '@angular/core/testing';
+import { PlatformLocation, Location, LocationStrategy as LocationStrategy$1 } from './location.mjs';
+
+/**
+ * Parser from https://tools.ietf.org/html/rfc3986#appendix-B
+ * ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?
+ *  12            3  4          5       6  7        8 9
+ *
+ * Example: http://www.ics.uci.edu/pub/ietf/uri/#Related
+ *
+ * Results in:
+ *
+ * $1 = http:
+ * $2 = http
+ * $3 = //www.ics.uci.edu
+ * $4 = www.ics.uci.edu
+ * $5 = /pub/ietf/uri/
+ * $6 = <undefined>
+ * $7 = <undefined>
+ * $8 = #Related
+ * $9 = Related
+ */
+const urlParse = /^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;
+function parseUrl(urlStr, baseHref) {
+    const verifyProtocol = /^((http[s]?|ftp):\/\/)/;
+    let serverBase;
+    // URL class requires full URL. If the URL string doesn't start with protocol, we need to add
+    // an arbitrary base URL which can be removed afterward.
+    if (!verifyProtocol.test(urlStr)) {
+        serverBase = 'http://empty.com/';
+    }
+    let parsedUrl;
+    try {
+        parsedUrl = new URL(urlStr, serverBase);
+    }
+    catch (e) {
+        const result = urlParse.exec(serverBase || '' + urlStr);
+        if (!result) {
+            throw new Error(`Invalid URL: ${urlStr} with base: ${baseHref}`);
+        }
+        const hostSplit = result[4].split(':');
+        parsedUrl = {
+            protocol: result[1],
+            hostname: hostSplit[0],
+            port: hostSplit[1] || '',
+            pathname: result[5],
+            search: result[6],
+            hash: result[8],
+        };
+    }
+    if (parsedUrl.pathname && parsedUrl.pathname.indexOf(baseHref) === 0) {
+        parsedUrl.pathname = parsedUrl.pathname.substring(baseHref.length);
+    }
+    return {
+        hostname: (!serverBase && parsedUrl.hostname) || '',
+        protocol: (!serverBase && parsedUrl.protocol) || '',
+        port: (!serverBase && parsedUrl.port) || '',
+        pathname: parsedUrl.pathname || '/',
+        search: parsedUrl.search || '',
+        hash: parsedUrl.hash || '',
+    };
+}
+/**
+ * Provider for mock platform location config
+ *
+ * @publicApi
+ */
+const MOCK_PLATFORM_LOCATION_CONFIG = new InjectionToken('MOCK_PLATFORM_LOCATION_CONFIG');
+/**
+ * Mock implementation of URL state.
+ *
+ * @publicApi
+ */
+class MockPlatformLocation {
+    baseHref = '';
+    hashUpdate = new Subject();
+    popStateSubject = new Subject();
+    urlChangeIndex = 0;
+    urlChanges = [{ hostname: '', protocol: '', port: '', pathname: '/', search: '', hash: '', state: null }];
+    constructor(config) {
+        if (config) {
+            this.baseHref = config.appBaseHref || '';
+            const parsedChanges = this.parseChanges(null, config.startUrl || 'http://_empty_/', this.baseHref);
+            this.urlChanges[0] = { ...parsedChanges };
+        }
+    }
+    get hostname() {
+        return this.urlChanges[this.urlChangeIndex].hostname;
+    }
+    get protocol() {
+        return this.urlChanges[this.urlChangeIndex].protocol;
+    }
+    get port() {
+        return this.urlChanges[this.urlChangeIndex].port;
+    }
+    get pathname() {
+        return this.urlChanges[this.urlChangeIndex].pathname;
+    }
+    get search() {
+        return this.urlChanges[this.urlChangeIndex].search;
+    }
+    get hash() {
+        return this.urlChanges[this.urlChangeIndex].hash;
+    }
+    get state() {
+        return this.urlChanges[this.urlChangeIndex].state;
+    }
+    getBaseHrefFromDOM() {
+        return this.baseHref;
+    }
+    onPopState(fn) {
+        const subscription = this.popStateSubject.subscribe(fn);
+        return () => subscription.unsubscribe();
+    }
+    onHashChange(fn) {
+        const subscription = this.hashUpdate.subscribe(fn);
+        return () => subscription.unsubscribe();
+    }
+    get href() {
+        let url = `${this.protocol}//${this.hostname}${this.port ? ':' + this.port : ''}`;
+        url += `${this.pathname === '/' ? '' : this.pathname}${this.search}${this.hash}`;
+        return url;
+    }
+    get url() {
+        return `${this.pathname}${this.search}${this.hash}`;
+    }
+    parseChanges(state, url, baseHref = '') {
+        // When the `history.state` value is stored, it is always copied.
+        state = JSON.parse(JSON.stringify(state));
+        return { ...parseUrl(url, baseHref), state };
+    }
+    replaceState(state, title, newUrl) {
+        const { pathname, search, state: parsedState, hash } = this.parseChanges(state, newUrl);
+        this.urlChanges[this.urlChangeIndex] = {
+            ...this.urlChanges[this.urlChangeIndex],
+            pathname,
+            search,
+            hash,
+            state: parsedState,
+        };
+    }
+    pushState(state, title, newUrl) {
+        const { pathname, search, state: parsedState, hash } = this.parseChanges(state, newUrl);
+        if (this.urlChangeIndex > 0) {
+            this.urlChanges.splice(this.urlChangeIndex + 1);
+        }
+        this.urlChanges.push({
+            ...this.urlChanges[this.urlChangeIndex],
+            pathname,
+            search,
+            hash,
+            state: parsedState,
+        });
+        this.urlChangeIndex = this.urlChanges.length - 1;
+    }
+    forward() {
+        const oldUrl = this.url;
+        const oldHash = this.hash;
+        if (this.urlChangeIndex < this.urlChanges.length) {
+            this.urlChangeIndex++;
+        }
+        this.emitEvents(oldHash, oldUrl);
+    }
+    back() {
+        const oldUrl = this.url;
+        const oldHash = this.hash;
+        if (this.urlChangeIndex > 0) {
+            this.urlChangeIndex--;
+        }
+        this.emitEvents(oldHash, oldUrl);
+    }
+    historyGo(relativePosition = 0) {
+        const oldUrl = this.url;
+        const oldHash = this.hash;
+        const nextPageIndex = this.urlChangeIndex + relativePosition;
+        if (nextPageIndex >= 0 && nextPageIndex < this.urlChanges.length) {
+            this.urlChangeIndex = nextPageIndex;
+        }
+        this.emitEvents(oldHash, oldUrl);
+    }
+    getState() {
+        return this.state;
+    }
+    /**
+     * Browsers are inconsistent in when they fire events and perform the state updates
+     * The most easiest thing to do in our mock is synchronous and that happens to match
+     * Firefox and Chrome, at least somewhat closely
+     *
+     * https://github.com/WICG/navigation-api#watching-for-navigations
+     * https://docs.google.com/document/d/1Pdve-DJ1JCGilj9Yqf5HxRJyBKSel5owgOvUJqTauwU/edit#heading=h.3ye4v71wsz94
+     * popstate is always sent before hashchange:
+     * https://developer.mozilla.org/en-US/docs/Web/API/Window/popstate_event#when_popstate_is_sent
+     */
+    emitEvents(oldHash, oldUrl) {
+        this.popStateSubject.next({
+            type: 'popstate',
+            state: this.getState(),
+            oldUrl,
+            newUrl: this.url,
+        });
+        if (oldHash !== this.hash) {
+            this.hashUpdate.next({
+                type: 'hashchange',
+                state: null,
+                oldUrl,
+                newUrl: this.url,
+            });
+        }
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: MockPlatformLocation });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: MockPlatformLocation, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [{ type: undefined, decorators: [{
+                    type: Inject,
+                    args: [MOCK_PLATFORM_LOCATION_CONFIG]
+                }, {
+                    type: Optional
+                }] }] });
+/**
+ * Mock implementation of URL state.
+ */
+class FakeNavigationPlatformLocation {
+    _platformNavigation;
+    constructor() {
+        const platformNavigation = inject(PlatformNavigation);
+        if (!(platformNavigation instanceof _FakeNavigation)) {
+            throw new Error('FakePlatformNavigation cannot be used without FakeNavigation. Use ' +
+                '`provideFakeNavigation` to have all these services provided together.');
+        }
+        this._platformNavigation = platformNavigation;
+    }
+    config = inject(MOCK_PLATFORM_LOCATION_CONFIG, { optional: true });
+    getBaseHrefFromDOM() {
+        return this.config?.appBaseHref ?? '';
+    }
+    onPopState(fn) {
+        this._platformNavigation.window.addEventListener('popstate', fn);
+        return () => this._platformNavigation.window.removeEventListener('popstate', fn);
+    }
+    onHashChange(fn) {
+        this._platformNavigation.window.addEventListener('hashchange', fn);
+        return () => this._platformNavigation.window.removeEventListener('hashchange', fn);
+    }
+    get href() {
+        return this._platformNavigation.currentEntry.url;
+    }
+    get protocol() {
+        return new URL(this._platformNavigation.currentEntry.url).protocol;
+    }
+    get hostname() {
+        return new URL(this._platformNavigation.currentEntry.url).hostname;
+    }
+    get port() {
+        return new URL(this._platformNavigation.currentEntry.url).port;
+    }
+    get pathname() {
+        return new URL(this._platformNavigation.currentEntry.url).pathname;
+    }
+    get search() {
+        return new URL(this._platformNavigation.currentEntry.url).search;
+    }
+    get hash() {
+        return new URL(this._platformNavigation.currentEntry.url).hash;
+    }
+    pushState(state, title, url) {
+        this._platformNavigation.pushState(state, title, url);
+    }
+    replaceState(state, title, url) {
+        this._platformNavigation.replaceState(state, title, url);
+    }
+    forward() {
+        this._platformNavigation.forward();
+    }
+    back() {
+        this._platformNavigation.back();
+    }
+    historyGo(relativePosition = 0) {
+        this._platformNavigation.go(relativePosition);
+    }
+    getState() {
+        return this._platformNavigation.currentEntry.getHistoryState();
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FakeNavigationPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FakeNavigationPlatformLocation });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: FakeNavigationPlatformLocation, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [] });
+
+const FAKE_NAVIGATION = new InjectionToken('fakeNavigation', {
+    providedIn: 'root',
+    factory: () => {
+        const config = inject(MOCK_PLATFORM_LOCATION_CONFIG, { optional: true });
+        const baseFallback = 'http://_empty_/';
+        const startUrl = new URL(config?.startUrl || baseFallback, baseFallback);
+        const fakeNavigation = new _FakeNavigation(inject(DOCUMENT), startUrl.href);
+        fakeNavigation.setSynchronousTraversalsForTesting(true);
+        return fakeNavigation;
+    },
+});
+/**
+ * Return a provider for the `FakeNavigation` in place of the real Navigation API.
+ */
+function provideFakePlatformNavigation() {
+    return [
+        {
+            provide: PlatformNavigation,
+            useFactory: () => inject(FAKE_NAVIGATION),
+        },
+        { provide: PlatformLocation, useClass: FakeNavigationPlatformLocation },
+    ];
+}
+
+/**
+ * A spy for {@link Location} that allows tests to fire simulated location events.
+ *
+ * @publicApi
+ */
+class SpyLocation {
+    urlChanges = [];
+    _history = [new LocationState('', '', null)];
+    _historyIndex = 0;
+    /** @internal */
+    _subject = new Subject();
+    /** @internal */
+    _basePath = '';
+    /** @internal */
+    _locationStrategy = null;
+    /** @internal */
+    _urlChangeListeners = [];
+    /** @internal */
+    _urlChangeSubscription = null;
+    /** @docs-private */
+    ngOnDestroy() {
+        this._urlChangeSubscription?.unsubscribe();
+        this._urlChangeListeners = [];
+    }
+    setInitialPath(url) {
+        this._history[this._historyIndex].path = url;
+    }
+    setBaseHref(url) {
+        this._basePath = url;
+    }
+    path() {
+        return this._history[this._historyIndex].path;
+    }
+    getState() {
+        return this._history[this._historyIndex].state;
+    }
+    isCurrentPathEqualTo(path, query = '') {
+        const givenPath = path.endsWith('/') ? path.substring(0, path.length - 1) : path;
+        const currPath = this.path().endsWith('/')
+            ? this.path().substring(0, this.path().length - 1)
+            : this.path();
+        return currPath == givenPath + (query.length > 0 ? '?' + query : '');
+    }
+    simulateUrlPop(pathname) {
+        this._subject.next({ 'url': pathname, 'pop': true, 'type': 'popstate' });
+    }
+    simulateHashChange(pathname) {
+        const path = this.prepareExternalUrl(pathname);
+        this.pushHistory(path, '', null);
+        this.urlChanges.push('hash: ' + pathname);
+        // the browser will automatically fire popstate event before each `hashchange` event, so we need
+        // to simulate it.
+        this._subject.next({ 'url': pathname, 'pop': true, 'type': 'popstate' });
+        this._subject.next({ 'url': pathname, 'pop': true, 'type': 'hashchange' });
+    }
+    prepareExternalUrl(url) {
+        if (url.length > 0 && !url.startsWith('/')) {
+            url = '/' + url;
+        }
+        return this._basePath + url;
+    }
+    go(path, query = '', state = null) {
+        path = this.prepareExternalUrl(path);
+        this.pushHistory(path, query, state);
+        const locationState = this._history[this._historyIndex - 1];
+        if (locationState.path == path && locationState.query == query) {
+            return;
+        }
+        const url = path + (query.length > 0 ? '?' + query : '');
+        this.urlChanges.push(url);
+        this._notifyUrlChangeListeners(path + _normalizeQueryParams(query), state);
+    }
+    replaceState(path, query = '', state = null) {
+        path = this.prepareExternalUrl(path);
+        const history = this._history[this._historyIndex];
+        history.state = state;
+        if (history.path == path && history.query == query) {
+            return;
+        }
+        history.path = path;
+        history.query = query;
+        const url = path + (query.length > 0 ? '?' + query : '');
+        this.urlChanges.push('replace: ' + url);
+        this._notifyUrlChangeListeners(path + _normalizeQueryParams(query), state);
+    }
+    forward() {
+        if (this._historyIndex < this._history.length - 1) {
+            this._historyIndex++;
+            this._subject.next({
+                'url': this.path(),
+                'state': this.getState(),
+                'pop': true,
+                'type': 'popstate',
+            });
+        }
+    }
+    back() {
+        if (this._historyIndex > 0) {
+            this._historyIndex--;
+            this._subject.next({
+                'url': this.path(),
+                'state': this.getState(),
+                'pop': true,
+                'type': 'popstate',
+            });
+        }
+    }
+    historyGo(relativePosition = 0) {
+        const nextPageIndex = this._historyIndex + relativePosition;
+        if (nextPageIndex >= 0 && nextPageIndex < this._history.length) {
+            this._historyIndex = nextPageIndex;
+            this._subject.next({
+                'url': this.path(),
+                'state': this.getState(),
+                'pop': true,
+                'type': 'popstate',
+            });
+        }
+    }
+    onUrlChange(fn) {
+        this._urlChangeListeners.push(fn);
+        this._urlChangeSubscription ??= this.subscribe((v) => {
+            this._notifyUrlChangeListeners(v.url, v.state);
+        });
+        return () => {
+            const fnIndex = this._urlChangeListeners.indexOf(fn);
+            this._urlChangeListeners.splice(fnIndex, 1);
+            if (this._urlChangeListeners.length === 0) {
+                this._urlChangeSubscription?.unsubscribe();
+                this._urlChangeSubscription = null;
+            }
+        };
+    }
+    /** @internal */
+    _notifyUrlChangeListeners(url = '', state) {
+        this._urlChangeListeners.forEach((fn) => fn(url, state));
+    }
+    subscribe(onNext, onThrow, onReturn) {
+        return this._subject.subscribe({
+            next: onNext,
+            error: onThrow ?? undefined,
+            complete: onReturn ?? undefined,
+        });
+    }
+    normalize(url) {
+        return null;
+    }
+    pushHistory(path, query, state) {
+        if (this._historyIndex > 0) {
+            this._history.splice(this._historyIndex + 1);
+        }
+        this._history.push(new LocationState(path, query, state));
+        this._historyIndex = this._history.length - 1;
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SpyLocation });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: SpyLocation, decorators: [{
+            type: Injectable
+        }] });
+class LocationState {
+    path;
+    query;
+    state;
+    constructor(path, query, state) {
+        this.path = path;
+        this.query = query;
+        this.state = state;
+    }
+}
+
+/**
+ * A mock implementation of {@link LocationStrategy} that allows tests to fire simulated
+ * location events.
+ *
+ * @publicApi
+ */
+class MockLocationStrategy extends LocationStrategy {
+    internalBaseHref = '/';
+    internalPath = '/';
+    internalTitle = '';
+    urlChanges = [];
+    /** @internal */
+    _subject = new Subject();
+    stateChanges = [];
+    constructor() {
+        super();
+    }
+    simulatePopState(url) {
+        this.internalPath = url;
+        this._subject.next(new _MockPopStateEvent(this.path()));
+    }
+    path(includeHash = false) {
+        return this.internalPath;
+    }
+    prepareExternalUrl(internal) {
+        if (internal.startsWith('/') && this.internalBaseHref.endsWith('/')) {
+            return this.internalBaseHref + internal.substring(1);
+        }
+        return this.internalBaseHref + internal;
+    }
+    pushState(ctx, title, path, query) {
+        // Add state change to changes array
+        this.stateChanges.push(ctx);
+        this.internalTitle = title;
+        const url = path + (query.length > 0 ? '?' + query : '');
+        this.internalPath = url;
+        const externalUrl = this.prepareExternalUrl(url);
+        this.urlChanges.push(externalUrl);
+    }
+    replaceState(ctx, title, path, query) {
+        // Reset the last index of stateChanges to the ctx (state) object
+        this.stateChanges[(this.stateChanges.length || 1) - 1] = ctx;
+        this.internalTitle = title;
+        const url = path + (query.length > 0 ? '?' + query : '');
+        this.internalPath = url;
+        const externalUrl = this.prepareExternalUrl(url);
+        this.urlChanges.push('replace: ' + externalUrl);
+    }
+    onPopState(fn) {
+        this._subject.subscribe({ next: fn });
+    }
+    getBaseHref() {
+        return this.internalBaseHref;
+    }
+    back() {
+        if (this.urlChanges.length > 0) {
+            this.urlChanges.pop();
+            this.stateChanges.pop();
+            const nextUrl = this.urlChanges.length > 0 ? this.urlChanges[this.urlChanges.length - 1] : '';
+            this.simulatePopState(nextUrl);
+        }
+    }
+    forward() {
+        throw 'not implemented';
+    }
+    getState() {
+        return this.stateChanges[(this.stateChanges.length || 1) - 1];
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
+    static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: MockLocationStrategy });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: MockLocationStrategy, decorators: [{
+            type: Injectable
+        }], ctorParameters: () => [] });
+class _MockPopStateEvent {
+    newUrl;
+    pop = true;
+    type = 'popstate';
+    constructor(newUrl) {
+        this.newUrl = newUrl;
+    }
+}
+
+/**
+ * Returns mock providers for the `Location` and `LocationStrategy` classes.
+ * The mocks are helpful in tests to fire simulated location events.
+ *
+ * @publicApi
+ */
+function provideLocationMocks() {
+    return [
+        { provide: Location, useClass: SpyLocation },
+        { provide: LocationStrategy$1, useClass: MockLocationStrategy },
+    ];
+}
+
+export { MOCK_PLATFORM_LOCATION_CONFIG, MockLocationStrategy, MockPlatformLocation, SpyLocation, provideLocationMocks, provideFakePlatformNavigation as ɵprovideFakePlatformNavigation };
+//# sourceMappingURL=testing.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/fesm2022/testing.mjs.map


+ 899 - 0
node_modules/@angular/common/fesm2022/upgrade.mjs

@@ -0,0 +1,899 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { ɵisPromise as _isPromise, InjectionToken, Inject, Optional, NgModule } from '@angular/core';
+import { ReplaySubject } from 'rxjs';
+import { UpgradeModule } from '@angular/upgrade/static';
+import { Location, PlatformLocation, LocationStrategy, APP_BASE_HREF, PathLocationStrategy } from './location.mjs';
+import { CommonModule, HashLocationStrategy } from './common_module.mjs';
+
+function deepEqual(a, b) {
+    if (a === b) {
+        return true;
+    }
+    else if (!a || !b) {
+        return false;
+    }
+    else {
+        try {
+            if (a.prototype !== b.prototype || (Array.isArray(a) && Array.isArray(b))) {
+                return false;
+            }
+            return JSON.stringify(a) === JSON.stringify(b);
+        }
+        catch (e) {
+            return false;
+        }
+    }
+}
+function isAnchor(el) {
+    return el.href !== undefined;
+}
+
+const PATH_MATCH = /^([^?#]*)(\?([^#]*))?(#(.*))?$/;
+const DOUBLE_SLASH_REGEX = /^\s*[\\/]{2,}/;
+const IGNORE_URI_REGEXP = /^\s*(javascript|mailto):/i;
+const DEFAULT_PORTS = {
+    'http:': 80,
+    'https:': 443,
+    'ftp:': 21,
+};
+/**
+ * Location service that provides a drop-in replacement for the $location service
+ * provided in AngularJS.
+ *
+ * @see [Using the Angular Unified Location Service](guide/upgrade#using-the-unified-angular-location-service)
+ *
+ * @publicApi
+ */
+class $locationShim {
+    location;
+    platformLocation;
+    urlCodec;
+    locationStrategy;
+    initializing = true;
+    updateBrowser = false;
+    $$absUrl = '';
+    $$url = '';
+    $$protocol;
+    $$host = '';
+    $$port;
+    $$replace = false;
+    $$path = '';
+    $$search = '';
+    $$hash = '';
+    $$state;
+    $$changeListeners = [];
+    cachedState = null;
+    urlChanges = new ReplaySubject(1);
+    removeOnUrlChangeFn;
+    constructor($injector, location, platformLocation, urlCodec, locationStrategy) {
+        this.location = location;
+        this.platformLocation = platformLocation;
+        this.urlCodec = urlCodec;
+        this.locationStrategy = locationStrategy;
+        const initialUrl = this.browserUrl();
+        let parsedUrl = this.urlCodec.parse(initialUrl);
+        if (typeof parsedUrl === 'string') {
+            throw 'Invalid URL';
+        }
+        this.$$protocol = parsedUrl.protocol;
+        this.$$host = parsedUrl.hostname;
+        this.$$port = parseInt(parsedUrl.port) || DEFAULT_PORTS[parsedUrl.protocol] || null;
+        this.$$parseLinkUrl(initialUrl, initialUrl);
+        this.cacheState();
+        this.$$state = this.browserState();
+        this.removeOnUrlChangeFn = this.location.onUrlChange((newUrl, newState) => {
+            this.urlChanges.next({ newUrl, newState });
+        });
+        if (_isPromise($injector)) {
+            $injector.then(($i) => this.initialize($i));
+        }
+        else {
+            this.initialize($injector);
+        }
+    }
+    initialize($injector) {
+        const $rootScope = $injector.get('$rootScope');
+        const $rootElement = $injector.get('$rootElement');
+        $rootElement.on('click', (event) => {
+            if (event.ctrlKey ||
+                event.metaKey ||
+                event.shiftKey ||
+                event.which === 2 ||
+                event.button === 2) {
+                return;
+            }
+            let elm = event.target;
+            // traverse the DOM up to find first A tag
+            while (elm && elm.nodeName.toLowerCase() !== 'a') {
+                // ignore rewriting if no A tag (reached root element, or no parent - removed from document)
+                if (elm === $rootElement[0] || !(elm = elm.parentNode)) {
+                    return;
+                }
+            }
+            if (!isAnchor(elm)) {
+                return;
+            }
+            const absHref = elm.href;
+            const relHref = elm.getAttribute('href');
+            // Ignore when url is started with javascript: or mailto:
+            if (IGNORE_URI_REGEXP.test(absHref)) {
+                return;
+            }
+            if (absHref && !elm.getAttribute('target') && !event.isDefaultPrevented()) {
+                if (this.$$parseLinkUrl(absHref, relHref)) {
+                    // We do a preventDefault for all urls that are part of the AngularJS application,
+                    // in html5mode and also without, so that we are able to abort navigation without
+                    // getting double entries in the location history.
+                    event.preventDefault();
+                    // update location manually
+                    if (this.absUrl() !== this.browserUrl()) {
+                        $rootScope.$apply();
+                    }
+                }
+            }
+        });
+        this.urlChanges.subscribe(({ newUrl, newState }) => {
+            const oldUrl = this.absUrl();
+            const oldState = this.$$state;
+            this.$$parse(newUrl);
+            newUrl = this.absUrl();
+            this.$$state = newState;
+            const defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, newState, oldState).defaultPrevented;
+            // if the location was changed by a `$locationChangeStart` handler then stop
+            // processing this location change
+            if (this.absUrl() !== newUrl)
+                return;
+            // If default was prevented, set back to old state. This is the state that was locally
+            // cached in the $location service.
+            if (defaultPrevented) {
+                this.$$parse(oldUrl);
+                this.state(oldState);
+                this.setBrowserUrlWithFallback(oldUrl, false, oldState);
+                this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);
+            }
+            else {
+                this.initializing = false;
+                $rootScope.$broadcast('$locationChangeSuccess', newUrl, oldUrl, newState, oldState);
+                this.resetBrowserUpdate();
+            }
+            if (!$rootScope.$$phase) {
+                $rootScope.$digest();
+            }
+        });
+        // Synchronize the browser's URL and state with the application.
+        // Note: There is no need to save the `$watch` return value (deregister listener)
+        // into a variable because `$scope.$$watchers` is automatically cleaned up when
+        // the root scope is destroyed.
+        $rootScope.$watch(() => {
+            if (this.initializing || this.updateBrowser) {
+                this.updateBrowser = false;
+                const oldUrl = this.browserUrl();
+                const newUrl = this.absUrl();
+                const oldState = this.browserState();
+                let currentReplace = this.$$replace;
+                const urlOrStateChanged = !this.urlCodec.areEqual(oldUrl, newUrl) || oldState !== this.$$state;
+                // Fire location changes one time to on initialization. This must be done on the
+                // next tick (thus inside $evalAsync()) in order for listeners to be registered
+                // before the event fires. Mimicing behavior from $locationWatch:
+                // https://github.com/angular/angular.js/blob/master/src/ng/location.js#L983
+                if (this.initializing || urlOrStateChanged) {
+                    this.initializing = false;
+                    $rootScope.$evalAsync(() => {
+                        // Get the new URL again since it could have changed due to async update
+                        const newUrl = this.absUrl();
+                        const defaultPrevented = $rootScope.$broadcast('$locationChangeStart', newUrl, oldUrl, this.$$state, oldState).defaultPrevented;
+                        // if the location was changed by a `$locationChangeStart` handler then stop
+                        // processing this location change
+                        if (this.absUrl() !== newUrl)
+                            return;
+                        if (defaultPrevented) {
+                            this.$$parse(oldUrl);
+                            this.$$state = oldState;
+                        }
+                        else {
+                            // This block doesn't run when initializing because it's going to perform the update
+                            // to the URL which shouldn't be needed when initializing.
+                            if (urlOrStateChanged) {
+                                this.setBrowserUrlWithFallback(newUrl, currentReplace, oldState === this.$$state ? null : this.$$state);
+                                this.$$replace = false;
+                            }
+                            $rootScope.$broadcast('$locationChangeSuccess', newUrl, oldUrl, this.$$state, oldState);
+                            if (urlOrStateChanged) {
+                                this.$$notifyChangeListeners(this.url(), this.$$state, oldUrl, oldState);
+                            }
+                        }
+                    });
+                }
+            }
+            this.$$replace = false;
+        });
+        $rootScope.$on('$destroy', () => {
+            this.removeOnUrlChangeFn();
+            // Complete the subject to release all active observers when the root
+            // scope is destroyed. Before this change, we subscribed to the `urlChanges`
+            // subject, and the subscriber captured `this`, leading to a memory leak
+            // after the root scope was destroyed.
+            this.urlChanges.complete();
+        });
+    }
+    resetBrowserUpdate() {
+        this.$$replace = false;
+        this.$$state = this.browserState();
+        this.updateBrowser = false;
+        this.lastBrowserUrl = this.browserUrl();
+    }
+    lastHistoryState;
+    lastBrowserUrl = '';
+    browserUrl(url, replace, state) {
+        // In modern browsers `history.state` is `null` by default; treating it separately
+        // from `undefined` would cause `$browser.url('/foo')` to change `history.state`
+        // to undefined via `pushState`. Instead, let's change `undefined` to `null` here.
+        if (typeof state === 'undefined') {
+            state = null;
+        }
+        // setter
+        if (url) {
+            let sameState = this.lastHistoryState === state;
+            // Normalize the inputted URL
+            url = this.urlCodec.parse(url).href;
+            // Don't change anything if previous and current URLs and states match.
+            if (this.lastBrowserUrl === url && sameState) {
+                return this;
+            }
+            this.lastBrowserUrl = url;
+            this.lastHistoryState = state;
+            // Remove server base from URL as the Angular APIs for updating URL require
+            // it to be the path+.
+            url = this.stripBaseUrl(this.getServerBase(), url) || url;
+            // Set the URL
+            if (replace) {
+                this.locationStrategy.replaceState(state, '', url, '');
+            }
+            else {
+                this.locationStrategy.pushState(state, '', url, '');
+            }
+            this.cacheState();
+            return this;
+            // getter
+        }
+        else {
+            return this.platformLocation.href;
+        }
+    }
+    // This variable should be used *only* inside the cacheState function.
+    lastCachedState = null;
+    cacheState() {
+        // This should be the only place in $browser where `history.state` is read.
+        this.cachedState = this.platformLocation.getState();
+        if (typeof this.cachedState === 'undefined') {
+            this.cachedState = null;
+        }
+        // Prevent callbacks fo fire twice if both hashchange & popstate were fired.
+        if (deepEqual(this.cachedState, this.lastCachedState)) {
+            this.cachedState = this.lastCachedState;
+        }
+        this.lastCachedState = this.cachedState;
+        this.lastHistoryState = this.cachedState;
+    }
+    /**
+     * This function emulates the $browser.state() function from AngularJS. It will cause
+     * history.state to be cached unless changed with deep equality check.
+     */
+    browserState() {
+        return this.cachedState;
+    }
+    stripBaseUrl(base, url) {
+        if (url.startsWith(base)) {
+            return url.slice(base.length);
+        }
+        return undefined;
+    }
+    getServerBase() {
+        const { protocol, hostname, port } = this.platformLocation;
+        const baseHref = this.locationStrategy.getBaseHref();
+        let url = `${protocol}//${hostname}${port ? ':' + port : ''}${baseHref || '/'}`;
+        return url.endsWith('/') ? url : url + '/';
+    }
+    parseAppUrl(url) {
+        if (DOUBLE_SLASH_REGEX.test(url)) {
+            throw new Error(`Bad Path - URL cannot start with double slashes: ${url}`);
+        }
+        let prefixed = url.charAt(0) !== '/';
+        if (prefixed) {
+            url = '/' + url;
+        }
+        let match = this.urlCodec.parse(url, this.getServerBase());
+        if (typeof match === 'string') {
+            throw new Error(`Bad URL - Cannot parse URL: ${url}`);
+        }
+        let path = prefixed && match.pathname.charAt(0) === '/' ? match.pathname.substring(1) : match.pathname;
+        this.$$path = this.urlCodec.decodePath(path);
+        this.$$search = this.urlCodec.decodeSearch(match.search);
+        this.$$hash = this.urlCodec.decodeHash(match.hash);
+        // make sure path starts with '/';
+        if (this.$$path && this.$$path.charAt(0) !== '/') {
+            this.$$path = '/' + this.$$path;
+        }
+    }
+    /**
+     * Registers listeners for URL changes. This API is used to catch updates performed by the
+     * AngularJS framework. These changes are a subset of the `$locationChangeStart` and
+     * `$locationChangeSuccess` events which fire when AngularJS updates its internally-referenced
+     * version of the browser URL.
+     *
+     * It's possible for `$locationChange` events to happen, but for the browser URL
+     * (window.location) to remain unchanged. This `onChange` callback will fire only when AngularJS
+     * actually updates the browser URL (window.location).
+     *
+     * @param fn The callback function that is triggered for the listener when the URL changes.
+     * @param err The callback function that is triggered when an error occurs.
+     */
+    onChange(fn, err = (e) => { }) {
+        this.$$changeListeners.push([fn, err]);
+    }
+    /** @internal */
+    $$notifyChangeListeners(url = '', state, oldUrl = '', oldState) {
+        this.$$changeListeners.forEach(([fn, err]) => {
+            try {
+                fn(url, state, oldUrl, oldState);
+            }
+            catch (e) {
+                err(e);
+            }
+        });
+    }
+    /**
+     * Parses the provided URL, and sets the current URL to the parsed result.
+     *
+     * @param url The URL string.
+     */
+    $$parse(url) {
+        let pathUrl;
+        if (url.startsWith('/')) {
+            pathUrl = url;
+        }
+        else {
+            // Remove protocol & hostname if URL starts with it
+            pathUrl = this.stripBaseUrl(this.getServerBase(), url);
+        }
+        if (typeof pathUrl === 'undefined') {
+            throw new Error(`Invalid url "${url}", missing path prefix "${this.getServerBase()}".`);
+        }
+        this.parseAppUrl(pathUrl);
+        this.$$path ||= '/';
+        this.composeUrls();
+    }
+    /**
+     * Parses the provided URL and its relative URL.
+     *
+     * @param url The full URL string.
+     * @param relHref A URL string relative to the full URL string.
+     */
+    $$parseLinkUrl(url, relHref) {
+        // When relHref is passed, it should be a hash and is handled separately
+        if (relHref && relHref[0] === '#') {
+            this.hash(relHref.slice(1));
+            return true;
+        }
+        let rewrittenUrl;
+        let appUrl = this.stripBaseUrl(this.getServerBase(), url);
+        if (typeof appUrl !== 'undefined') {
+            rewrittenUrl = this.getServerBase() + appUrl;
+        }
+        else if (this.getServerBase() === url + '/') {
+            rewrittenUrl = this.getServerBase();
+        }
+        // Set the URL
+        if (rewrittenUrl) {
+            this.$$parse(rewrittenUrl);
+        }
+        return !!rewrittenUrl;
+    }
+    setBrowserUrlWithFallback(url, replace, state) {
+        const oldUrl = this.url();
+        const oldState = this.$$state;
+        try {
+            this.browserUrl(url, replace, state);
+            // Make sure $location.state() returns referentially identical (not just deeply equal)
+            // state object; this makes possible quick checking if the state changed in the digest
+            // loop. Checking deep equality would be too expensive.
+            this.$$state = this.browserState();
+        }
+        catch (e) {
+            // Restore old values if pushState fails
+            this.url(oldUrl);
+            this.$$state = oldState;
+            throw e;
+        }
+    }
+    composeUrls() {
+        this.$$url = this.urlCodec.normalize(this.$$path, this.$$search, this.$$hash);
+        this.$$absUrl = this.getServerBase() + this.$$url.slice(1); // remove '/' from front of URL
+        this.updateBrowser = true;
+    }
+    /**
+     * Retrieves the full URL representation with all segments encoded according to
+     * rules specified in
+     * [RFC 3986](https://tools.ietf.org/html/rfc3986).
+     *
+     *
+     * ```js
+     * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
+     * let absUrl = $location.absUrl();
+     * // => "http://example.com/#/some/path?foo=bar&baz=xoxo"
+     * ```
+     */
+    absUrl() {
+        return this.$$absUrl;
+    }
+    url(url) {
+        if (typeof url === 'string') {
+            if (!url.length) {
+                url = '/';
+            }
+            const match = PATH_MATCH.exec(url);
+            if (!match)
+                return this;
+            if (match[1] || url === '')
+                this.path(this.urlCodec.decodePath(match[1]));
+            if (match[2] || match[1] || url === '')
+                this.search(match[3] || '');
+            this.hash(match[5] || '');
+            // Chainable method
+            return this;
+        }
+        return this.$$url;
+    }
+    /**
+     * Retrieves the protocol of the current URL.
+     *
+     * ```js
+     * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
+     * let protocol = $location.protocol();
+     * // => "http"
+     * ```
+     */
+    protocol() {
+        return this.$$protocol;
+    }
+    /**
+     * Retrieves the protocol of the current URL.
+     *
+     * In contrast to the non-AngularJS version `location.host` which returns `hostname:port`, this
+     * returns the `hostname` portion only.
+     *
+     *
+     * ```js
+     * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
+     * let host = $location.host();
+     * // => "example.com"
+     *
+     * // given URL http://user:password@example.com:8080/#/some/path?foo=bar&baz=xoxo
+     * host = $location.host();
+     * // => "example.com"
+     * host = location.host;
+     * // => "example.com:8080"
+     * ```
+     */
+    host() {
+        return this.$$host;
+    }
+    /**
+     * Retrieves the port of the current URL.
+     *
+     * ```js
+     * // given URL http://example.com/#/some/path?foo=bar&baz=xoxo
+     * let port = $location.port();
+     * // => 80
+     * ```
+     */
+    port() {
+        return this.$$port;
+    }
+    path(path) {
+        if (typeof path === 'undefined') {
+            return this.$$path;
+        }
+        // null path converts to empty string. Prepend with "/" if needed.
+        path = path !== null ? path.toString() : '';
+        path = path.charAt(0) === '/' ? path : '/' + path;
+        this.$$path = path;
+        this.composeUrls();
+        return this;
+    }
+    search(search, paramValue) {
+        switch (arguments.length) {
+            case 0:
+                return this.$$search;
+            case 1:
+                if (typeof search === 'string' || typeof search === 'number') {
+                    this.$$search = this.urlCodec.decodeSearch(search.toString());
+                }
+                else if (typeof search === 'object' && search !== null) {
+                    // Copy the object so it's never mutated
+                    search = { ...search };
+                    // remove object undefined or null properties
+                    for (const key in search) {
+                        if (search[key] == null)
+                            delete search[key];
+                    }
+                    this.$$search = search;
+                }
+                else {
+                    throw new Error('LocationProvider.search(): First argument must be a string or an object.');
+                }
+                break;
+            default:
+                if (typeof search === 'string') {
+                    const currentSearch = this.search();
+                    if (typeof paramValue === 'undefined' || paramValue === null) {
+                        delete currentSearch[search];
+                        return this.search(currentSearch);
+                    }
+                    else {
+                        currentSearch[search] = paramValue;
+                        return this.search(currentSearch);
+                    }
+                }
+        }
+        this.composeUrls();
+        return this;
+    }
+    hash(hash) {
+        if (typeof hash === 'undefined') {
+            return this.$$hash;
+        }
+        this.$$hash = hash !== null ? hash.toString() : '';
+        this.composeUrls();
+        return this;
+    }
+    /**
+     * Changes to `$location` during the current `$digest` will replace the current
+     * history record, instead of adding a new one.
+     */
+    replace() {
+        this.$$replace = true;
+        return this;
+    }
+    state(state) {
+        if (typeof state === 'undefined') {
+            return this.$$state;
+        }
+        this.$$state = state;
+        return this;
+    }
+}
+/**
+ * The factory function used to create an instance of the `$locationShim` in Angular,
+ * and provides an API-compatible `$locationProvider` for AngularJS.
+ *
+ * @publicApi
+ */
+class $locationShimProvider {
+    ngUpgrade;
+    location;
+    platformLocation;
+    urlCodec;
+    locationStrategy;
+    constructor(ngUpgrade, location, platformLocation, urlCodec, locationStrategy) {
+        this.ngUpgrade = ngUpgrade;
+        this.location = location;
+        this.platformLocation = platformLocation;
+        this.urlCodec = urlCodec;
+        this.locationStrategy = locationStrategy;
+    }
+    /**
+     * Factory method that returns an instance of the $locationShim
+     */
+    $get() {
+        return new $locationShim(this.ngUpgrade.$injector, this.location, this.platformLocation, this.urlCodec, this.locationStrategy);
+    }
+    /**
+     * Stub method used to keep API compatible with AngularJS. This setting is configured through
+     * the LocationUpgradeModule's `config` method in your Angular app.
+     */
+    hashPrefix(prefix) {
+        throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');
+    }
+    /**
+     * Stub method used to keep API compatible with AngularJS. This setting is configured through
+     * the LocationUpgradeModule's `config` method in your Angular app.
+     */
+    html5Mode(mode) {
+        throw new Error('Configure LocationUpgrade through LocationUpgradeModule.config method.');
+    }
+}
+
+/**
+ * A codec for encoding and decoding URL parts.
+ *
+ * @publicApi
+ **/
+class UrlCodec {
+}
+/**
+ * A `UrlCodec` that uses logic from AngularJS to serialize and parse URLs
+ * and URL parameters.
+ *
+ * @publicApi
+ */
+class AngularJSUrlCodec {
+    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L15
+    encodePath(path) {
+        const segments = path.split('/');
+        let i = segments.length;
+        while (i--) {
+            // decode forward slashes to prevent them from being double encoded
+            segments[i] = encodeUriSegment(segments[i].replace(/%2F/g, '/'));
+        }
+        path = segments.join('/');
+        return _stripIndexHtml(((path && path[0] !== '/' && '/') || '') + path);
+    }
+    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L42
+    encodeSearch(search) {
+        if (typeof search === 'string') {
+            search = parseKeyValue(search);
+        }
+        search = toKeyValue(search);
+        return search ? '?' + search : '';
+    }
+    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L44
+    encodeHash(hash) {
+        hash = encodeUriSegment(hash);
+        return hash ? '#' + hash : '';
+    }
+    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L27
+    decodePath(path, html5Mode = true) {
+        const segments = path.split('/');
+        let i = segments.length;
+        while (i--) {
+            segments[i] = decodeURIComponent(segments[i]);
+            if (html5Mode) {
+                // encode forward slashes to prevent them from being mistaken for path separators
+                segments[i] = segments[i].replace(/\//g, '%2F');
+            }
+        }
+        return segments.join('/');
+    }
+    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L72
+    decodeSearch(search) {
+        return parseKeyValue(search);
+    }
+    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/location.js#L73
+    decodeHash(hash) {
+        hash = decodeURIComponent(hash);
+        return hash[0] === '#' ? hash.substring(1) : hash;
+    }
+    normalize(pathOrHref, search, hash, baseUrl) {
+        if (arguments.length === 1) {
+            const parsed = this.parse(pathOrHref, baseUrl);
+            if (typeof parsed === 'string') {
+                return parsed;
+            }
+            const serverUrl = `${parsed.protocol}://${parsed.hostname}${parsed.port ? ':' + parsed.port : ''}`;
+            return this.normalize(this.decodePath(parsed.pathname), this.decodeSearch(parsed.search), this.decodeHash(parsed.hash), serverUrl);
+        }
+        else {
+            const encPath = this.encodePath(pathOrHref);
+            const encSearch = (search && this.encodeSearch(search)) || '';
+            const encHash = (hash && this.encodeHash(hash)) || '';
+            let joinedPath = (baseUrl || '') + encPath;
+            if (!joinedPath.length || joinedPath[0] !== '/') {
+                joinedPath = '/' + joinedPath;
+            }
+            return joinedPath + encSearch + encHash;
+        }
+    }
+    areEqual(valA, valB) {
+        return this.normalize(valA) === this.normalize(valB);
+    }
+    // https://github.com/angular/angular.js/blob/864c7f0/src/ng/urlUtils.js#L60
+    parse(url, base) {
+        try {
+            // Safari 12 throws an error when the URL constructor is called with an undefined base.
+            const parsed = !base ? new URL(url) : new URL(url, base);
+            return {
+                href: parsed.href,
+                protocol: parsed.protocol ? parsed.protocol.replace(/:$/, '') : '',
+                host: parsed.host,
+                search: parsed.search ? parsed.search.replace(/^\?/, '') : '',
+                hash: parsed.hash ? parsed.hash.replace(/^#/, '') : '',
+                hostname: parsed.hostname,
+                port: parsed.port,
+                pathname: parsed.pathname.charAt(0) === '/' ? parsed.pathname : '/' + parsed.pathname,
+            };
+        }
+        catch (e) {
+            throw new Error(`Invalid URL (${url}) with base (${base})`);
+        }
+    }
+}
+function _stripIndexHtml(url) {
+    return url.replace(/\/index.html$/, '');
+}
+/**
+ * Tries to decode the URI component without throwing an exception.
+ *
+ * @param str value potential URI component to check.
+ * @returns the decoded URI if it can be decoded or else `undefined`.
+ */
+function tryDecodeURIComponent(value) {
+    try {
+        return decodeURIComponent(value);
+    }
+    catch (e) {
+        // Ignore any invalid uri component.
+        return undefined;
+    }
+}
+/**
+ * Parses an escaped url query string into key-value pairs. Logic taken from
+ * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1382
+ */
+function parseKeyValue(keyValue) {
+    const obj = {};
+    (keyValue || '').split('&').forEach((keyValue) => {
+        let splitPoint, key, val;
+        if (keyValue) {
+            key = keyValue = keyValue.replace(/\+/g, '%20');
+            splitPoint = keyValue.indexOf('=');
+            if (splitPoint !== -1) {
+                key = keyValue.substring(0, splitPoint);
+                val = keyValue.substring(splitPoint + 1);
+            }
+            key = tryDecodeURIComponent(key);
+            if (typeof key !== 'undefined') {
+                val = typeof val !== 'undefined' ? tryDecodeURIComponent(val) : true;
+                if (!obj.hasOwnProperty(key)) {
+                    obj[key] = val;
+                }
+                else if (Array.isArray(obj[key])) {
+                    obj[key].push(val);
+                }
+                else {
+                    obj[key] = [obj[key], val];
+                }
+            }
+        }
+    });
+    return obj;
+}
+/**
+ * Serializes into key-value pairs. Logic taken from
+ * https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1409
+ */
+function toKeyValue(obj) {
+    const parts = [];
+    for (const key in obj) {
+        let value = obj[key];
+        if (Array.isArray(value)) {
+            value.forEach((arrayValue) => {
+                parts.push(encodeUriQuery(key, true) +
+                    (arrayValue === true ? '' : '=' + encodeUriQuery(arrayValue, true)));
+            });
+        }
+        else {
+            parts.push(encodeUriQuery(key, true) +
+                (value === true ? '' : '=' + encodeUriQuery(value, true)));
+        }
+    }
+    return parts.length ? parts.join('&') : '';
+}
+/**
+ * We need our custom method because encodeURIComponent is too aggressive and doesn't follow
+ * https://tools.ietf.org/html/rfc3986 with regards to the character set (pchar) allowed in path
+ * segments:
+ *    segment       = *pchar
+ *    pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"
+ *    pct-encoded   = "%" HEXDIG HEXDIG
+ *    unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
+ *    sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
+ *                     / "*" / "+" / "," / ";" / "="
+ *
+ * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1437
+ */
+function encodeUriSegment(val) {
+    return encodeUriQuery(val, true).replace(/%26/g, '&').replace(/%3D/gi, '=').replace(/%2B/gi, '+');
+}
+/**
+ * This method is intended for encoding *key* or *value* parts of query component. We need a custom
+ * method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
+ * encoded per https://tools.ietf.org/html/rfc3986:
+ *    query         = *( pchar / "/" / "?" )
+ *    pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"
+ *    unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"
+ *    pct-encoded   = "%" HEXDIG HEXDIG
+ *    sub-delims    = "!" / "$" / "&" / "'" / "(" / ")"
+ *                     / "*" / "+" / "," / ";" / "="
+ *
+ * Logic from https://github.com/angular/angular.js/blob/864c7f0/src/Angular.js#L1456
+ */
+function encodeUriQuery(val, pctEncodeSpaces = false) {
+    return encodeURIComponent(val)
+        .replace(/%40/g, '@')
+        .replace(/%3A/gi, ':')
+        .replace(/%24/g, '$')
+        .replace(/%2C/gi, ',')
+        .replace(/%3B/gi, ';')
+        .replace(/%20/g, pctEncodeSpaces ? '%20' : '+');
+}
+
+/**
+ * A provider token used to configure the location upgrade module.
+ *
+ * @publicApi
+ */
+const LOCATION_UPGRADE_CONFIGURATION = new InjectionToken(ngDevMode ? 'LOCATION_UPGRADE_CONFIGURATION' : '');
+const APP_BASE_HREF_RESOLVED = new InjectionToken(ngDevMode ? 'APP_BASE_HREF_RESOLVED' : '');
+/**
+ * `NgModule` used for providing and configuring Angular's Unified Location Service for upgrading.
+ *
+ * @see [Using the Unified Angular Location Service](https://angular.io/guide/upgrade#using-the-unified-angular-location-service)
+ *
+ * @publicApi
+ */
+class LocationUpgradeModule {
+    static config(config) {
+        return {
+            ngModule: LocationUpgradeModule,
+            providers: [
+                Location,
+                {
+                    provide: $locationShim,
+                    useFactory: provide$location,
+                    deps: [UpgradeModule, Location, PlatformLocation, UrlCodec, LocationStrategy],
+                },
+                { provide: LOCATION_UPGRADE_CONFIGURATION, useValue: config ? config : {} },
+                { provide: UrlCodec, useFactory: provideUrlCodec, deps: [LOCATION_UPGRADE_CONFIGURATION] },
+                {
+                    provide: APP_BASE_HREF_RESOLVED,
+                    useFactory: provideAppBaseHref,
+                    deps: [LOCATION_UPGRADE_CONFIGURATION, [new Inject(APP_BASE_HREF), new Optional()]],
+                },
+                {
+                    provide: LocationStrategy,
+                    useFactory: provideLocationStrategy,
+                    deps: [PlatformLocation, APP_BASE_HREF_RESOLVED, LOCATION_UPGRADE_CONFIGURATION],
+                },
+            ],
+        };
+    }
+    static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
+    static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.0", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
+    static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
+}
+i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: LocationUpgradeModule, decorators: [{
+            type: NgModule,
+            args: [{ imports: [CommonModule] }]
+        }] });
+function provideAppBaseHref(config, appBaseHref) {
+    if (config && config.appBaseHref != null) {
+        return config.appBaseHref;
+    }
+    else if (appBaseHref != null) {
+        return appBaseHref;
+    }
+    return '';
+}
+function provideUrlCodec(config) {
+    const codec = (config && config.urlCodec) || AngularJSUrlCodec;
+    return new codec();
+}
+function provideLocationStrategy(platformLocation, baseHref, options = {}) {
+    return options.useHash
+        ? new HashLocationStrategy(platformLocation, baseHref)
+        : new PathLocationStrategy(platformLocation, baseHref);
+}
+function provide$location(ngUpgrade, location, platformLocation, urlCodec, locationStrategy) {
+    const $locationProvider = new $locationShimProvider(ngUpgrade, location, platformLocation, urlCodec, locationStrategy);
+    return $locationProvider.$get();
+}
+
+export { $locationShim, $locationShimProvider, AngularJSUrlCodec, LOCATION_UPGRADE_CONFIGURATION, LocationUpgradeModule, UrlCodec };
+//# sourceMappingURL=upgrade.mjs.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/fesm2022/upgrade.mjs.map


+ 28 - 0
node_modules/@angular/common/fesm2022/xhr.mjs

@@ -0,0 +1,28 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+function parseCookieValue(cookieStr, name) {
+    name = encodeURIComponent(name);
+    for (const cookie of cookieStr.split(';')) {
+        const eqIndex = cookie.indexOf('=');
+        const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];
+        if (cookieName.trim() === name) {
+            return decodeURIComponent(cookieValue);
+        }
+    }
+    return null;
+}
+
+/**
+ * A wrapper around the `XMLHttpRequest` constructor.
+ *
+ * @publicApi
+ */
+class XhrFactory {
+}
+
+export { XhrFactory, parseCookieValue };
+//# sourceMappingURL=xhr.mjs.map

+ 1 - 0
node_modules/@angular/common/fesm2022/xhr.mjs.map

@@ -0,0 +1 @@
+{"version":3,"file":"xhr.mjs","sources":["../../../../../k8-fastbuild-ST-46c76129e412/bin/packages/common/src/cookie.ts","../../../../../k8-fastbuild-ST-46c76129e412/bin/packages/common/src/xhr.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport function parseCookieValue(cookieStr: string, name: string): string | null {\n  name = encodeURIComponent(name);\n  for (const cookie of cookieStr.split(';')) {\n    const eqIndex = cookie.indexOf('=');\n    const [cookieName, cookieValue]: string[] =\n      eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];\n    if (cookieName.trim() === name) {\n      return decodeURIComponent(cookieValue);\n    }\n  }\n  return null;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n */\nexport abstract class XhrFactory {\n  abstract build(): XMLHttpRequest;\n}\n"],"names":[],"mappings":";;;;;;AAQgB,SAAA,gBAAgB,CAAC,SAAiB,EAAE,IAAY,EAAA;AAC9D,IAAA,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC/B,KAAK,MAAM,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AACnC,QAAA,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAC7B,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;AACtF,QAAA,IAAI,UAAU,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE;AAC9B,YAAA,OAAO,kBAAkB,CAAC,WAAW,CAAC;;;AAG1C,IAAA,OAAO,IAAI;AACb;;ACXA;;;;AAIG;MACmB,UAAU,CAAA;AAE/B;;;;"}

+ 4099 - 0
node_modules/@angular/common/http/index.d.ts

@@ -0,0 +1,4099 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import { Observable } from 'rxjs';
+import { HttpRequest, HttpEvent, HttpHeaders, HttpContext, HttpParams, HttpResponse, HttpProgressEvent } from '../module.d.js';
+export { HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContextToken, HttpDownloadProgressEvent, HttpErrorResponse, HttpEventType, HttpHeaderResponse, HttpParameterCodec, HttpParamsOptions, HttpResponseBase, HttpSentEvent, HttpStatusCode, HttpUploadProgressEvent, HttpUrlEncodingCodec, HttpUserEvent } from '../module.d.js';
+import * as i0 from '@angular/core';
+import { InjectionToken, EnvironmentInjector, Provider, EnvironmentProviders, Injector, ValueEqualityFn, WritableResource, ResourceRef, Signal } from '@angular/core';
+import { XhrFactory } from '../xhr.d.js';
+
+/**
+ * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
+ * `HttpResponse`.
+ *
+ * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the
+ * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
+ * `HttpBackend`.
+ *
+ * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.
+ *
+ * @publicApi
+ */
+declare abstract class HttpHandler {
+    abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
+}
+/**
+ * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
+ *
+ * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.
+ *
+ * When injected, `HttpBackend` dispatches requests directly to the backend, without going
+ * through the interceptor chain.
+ *
+ * @publicApi
+ */
+declare abstract class HttpBackend implements HttpHandler {
+    abstract handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
+}
+
+/**
+ * Performs HTTP requests.
+ * This service is available as an injectable class, with methods to perform HTTP requests.
+ * Each request method has multiple signatures, and the return type varies based on
+ * the signature that is called (mainly the values of `observe` and `responseType`).
+ *
+ * Note that the `responseType` *options* value is a String that identifies the
+ * single data type of the response.
+ * A single overload version of the method handles each response type.
+ * The value of `responseType` cannot be a union, as the combined signature could imply.
+ *
+ * @usageNotes
+ *
+ * ### HTTP Request Example
+ *
+ * ```ts
+ *  // GET heroes whose name contains search term
+ * searchHeroes(term: string): observable<Hero[]>{
+ *
+ *  const params = new HttpParams({fromString: 'name=term'});
+ *    return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});
+ * }
+ * ```
+ *
+ * Alternatively, the parameter string can be used without invoking HttpParams
+ * by directly joining to the URL.
+ * ```ts
+ * this.httpClient.request('GET', this.heroesUrl + '?' + 'name=term', {responseType:'json'});
+ * ```
+ *
+ *
+ * ### JSONP Example
+ * ```ts
+ * requestJsonp(url, callback = 'callback') {
+ *  return this.httpClient.jsonp(this.heroesURL, callback);
+ * }
+ * ```
+ *
+ * ### PATCH Example
+ * ```ts
+ * // PATCH one of the heroes' name
+ * patchHero (id: number, heroName: string): Observable<{}> {
+ * const url = `${this.heroesUrl}/${id}`;   // PATCH api/heroes/42
+ *  return this.httpClient.patch(url, {name: heroName}, httpOptions)
+ *    .pipe(catchError(this.handleError('patchHero')));
+ * }
+ * ```
+ *
+ * @see [HTTP Guide](guide/http)
+ * @see [HTTP Request](api/common/http/HttpRequest)
+ *
+ * @publicApi
+ */
+declare class HttpClient {
+    private handler;
+    constructor(handler: HttpHandler);
+    /**
+     * Sends an `HttpRequest` and returns a stream of `HttpEvent`s.
+     *
+     * @return An `Observable` of the response, with the response body as a stream of `HttpEvent`s.
+     */
+    request<R>(req: HttpRequest<any>): Observable<HttpEvent<R>>;
+    /**
+     * Constructs a request that interprets the body as an `ArrayBuffer` and returns the response in
+     * an `ArrayBuffer`.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     *
+     * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<ArrayBuffer>;
+    /**
+     * Constructs a request that interprets the body as a blob and returns
+     * the response as a blob.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body of type `Blob`.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<Blob>;
+    /**
+     * Constructs a request that interprets the body as a text string and
+     * returns a string value.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body of type string.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<string>;
+    /**
+     * Constructs a request that interprets the body as an `ArrayBuffer` and returns the
+     * the full event stream.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body as an array of `HttpEvent`s for
+     * the request.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        observe: 'events';
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<ArrayBuffer>>;
+    /**
+     * Constructs a request that interprets the body as a `Blob` and returns
+     * the full event stream.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body of type `Blob`.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<Blob>>;
+    /**
+     * Constructs a request which interprets the body as a text string and returns the full event
+     * stream.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body of type string.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<string>>;
+    /**
+     * Constructs a request which interprets the body as a JavaScript object and returns the full
+     * event stream.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the  request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body of type `Object`.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        reportProgress?: boolean;
+        observe: 'events';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<any>>;
+    /**
+     * Constructs a request which interprets the body as a JavaScript object and returns the full
+     * event stream.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body of type `R`.
+     */
+    request<R>(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        reportProgress?: boolean;
+        observe: 'events';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<R>>;
+    /**
+     * Constructs a request which interprets the body as an `ArrayBuffer`
+     * and returns the full `HttpResponse`.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse`, with the response body as an `ArrayBuffer`.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<ArrayBuffer>>;
+    /**
+     * Constructs a request which interprets the body as a `Blob` and returns the full `HttpResponse`.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse`, with the response body of type `Blob`.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<Blob>>;
+    /**
+     * Constructs a request which interprets the body as a text stream and returns the full
+     * `HttpResponse`.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the HTTP response, with the response body of type string.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<string>>;
+    /**
+     * Constructs a request which interprets the body as a JavaScript object and returns the full
+     * `HttpResponse`.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the full `HttpResponse`,
+     * with the response body of type `Object`.
+     */
+    request(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        reportProgress?: boolean;
+        observe: 'response';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<Object>>;
+    /**
+     * Constructs a request which interprets the body as a JavaScript object and returns
+     * the full `HttpResponse` with the response body in the requested type.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return  An `Observable` of the full `HttpResponse`, with the response body of type `R`.
+     */
+    request<R>(method: string, url: string, options: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        reportProgress?: boolean;
+        observe: 'response';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<R>>;
+    /**
+     * Constructs a request which interprets the body as a JavaScript object and returns the full
+     * `HttpResponse` as a JavaScript object.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse`, with the response body of type `Object`.
+     */
+    request(method: string, url: string, options?: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        responseType?: 'json';
+        reportProgress?: boolean;
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<Object>;
+    /**
+     * Constructs a request which interprets the body as a JavaScript object
+     * with the response body of the requested type.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse`, with the response body of type `R`.
+     */
+    request<R>(method: string, url: string, options?: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        responseType?: 'json';
+        reportProgress?: boolean;
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<R>;
+    /**
+     * Constructs a request where response type and requested observable are not known statically.
+     *
+     * @param method  The HTTP method.
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the requested response, with body of type `any`.
+     */
+    request(method: string, url: string, options?: {
+        body?: any;
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        observe?: 'body' | 'events' | 'response';
+        reportProgress?: boolean;
+        responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<any>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
+     *  and returns the response as an `ArrayBuffer`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return  An `Observable` of the response body as an `ArrayBuffer`.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<ArrayBuffer>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as a `Blob` and returns
+     * the response as a `Blob`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response body as a `Blob`.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<Blob>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as a text string and returns
+     * a string.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body of type string.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<string>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer`
+     *  and returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with response body as an `ArrayBuffer`.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpEvent<ArrayBuffer>>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as a `Blob`
+     *  and returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request, with the response body as a
+     * `Blob`.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpEvent<Blob>>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as a text string
+     * and returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request, with the response
+     * body of type string.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpEvent<string>>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as JSON
+     * and returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request, with response body of
+     * type `Object`.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpEvent<Object>>;
+    /**
+     * Constructs a `DELETE`request that interprets the body as JSON
+     * and returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request, with a response
+     * body in the requested type.
+     */
+    delete<T>(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | (string | number | boolean)[]>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpEvent<T>>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as an `ArrayBuffer` and returns
+     *  the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the full `HttpResponse`, with the response body as an `ArrayBuffer`.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpResponse<ArrayBuffer>>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as a `Blob` and returns the full
+     * `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse`, with the response body of type `Blob`.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpResponse<Blob>>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as a text stream and
+     *  returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the full `HttpResponse`, with the response body of type string.
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpResponse<string>>;
+    /**
+     * Constructs a `DELETE` request the interprets the body as a JavaScript object and returns
+     * the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse`, with the response body of type `Object`.
+     *
+     */
+    delete(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpResponse<Object>>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as JSON
+     * and returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse`, with the response body of the requested type.
+     */
+    delete<T>(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<HttpResponse<T>>;
+    /**
+     * Constructs a `DELETE` request that interprets the body as JSON and
+     * returns the response body as an object parsed from JSON.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body of type `Object`.
+     */
+    delete(url: string, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<Object>;
+    /**
+     * Constructs a DELETE request that interprets the body as JSON and returns
+     * the response in a given type.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse`, with response body in the requested type.
+     */
+    delete<T>(url: string, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        body?: any | null;
+    }): Observable<T>;
+    /**
+     * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns the
+     * response in an `ArrayBuffer`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<ArrayBuffer>;
+    /**
+     * Constructs a `GET` request that interprets the body as a `Blob`
+     * and returns the response as a `Blob`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body as a `Blob`.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<Blob>;
+    /**
+     * Constructs a `GET` request that interprets the body as a text string
+     * and returns the response as a string value.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body of type string.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<string>;
+    /**
+     * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and returns
+     *  the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request, with the response
+     * body as an `ArrayBuffer`.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<ArrayBuffer>>;
+    /**
+     * Constructs a `GET` request that interprets the body as a `Blob` and
+     * returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body as a `Blob`.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<Blob>>;
+    /**
+     * Constructs a `GET` request that interprets the body as a text string and returns
+     * the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body of type string.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<string>>;
+    /**
+     * Constructs a `GET` request that interprets the body as JSON
+     * and returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body of type `Object`.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<Object>>;
+    /**
+     * Constructs a `GET` request that interprets the body as JSON and returns the full
+     * event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with a response body in the requested type.
+     */
+    get<T>(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<T>>;
+    /**
+     * Constructs a `GET` request that interprets the body as an `ArrayBuffer` and
+     * returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body as an `ArrayBuffer`.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<ArrayBuffer>>;
+    /**
+     * Constructs a `GET` request that interprets the body as a `Blob` and
+     * returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body as a `Blob`.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<Blob>>;
+    /**
+     * Constructs a `GET` request that interprets the body as a text stream and
+     * returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body of type string.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<string>>;
+    /**
+     * Constructs a `GET` request that interprets the body as JSON and
+     * returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the full `HttpResponse`,
+     * with the response body of type `Object`.
+     */
+    get(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<Object>>;
+    /**
+     * Constructs a `GET` request that interprets the body as JSON and
+     * returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the full `HttpResponse` for the request,
+     * with a response body in the requested type.
+     */
+    get<T>(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<T>>;
+    /**
+     * Constructs a `GET` request that interprets the body as JSON and
+     * returns the response body as an object parsed from JSON.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     *
+     * @return An `Observable` of the response body as a JavaScript object.
+     */
+    get(url: string, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<Object>;
+    /**
+     * Constructs a `GET` request that interprets the body as JSON and returns
+     * the response body in a given type.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse`, with a response body in the requested type.
+     */
+    get<T>(url: string, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<T>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer` and
+     * returns the response as an `ArrayBuffer`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<ArrayBuffer>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as a `Blob` and returns
+     * the response as a `Blob`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return  An `Observable` of the response, with the response body as a `Blob`.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<Blob>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as a text string and returns the response
+     * as a string value.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body of type string.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<string>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as an  `ArrayBuffer`
+     *  and returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body as an `ArrayBuffer`.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<ArrayBuffer>>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as a `Blob` and
+     * returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body as a `Blob`.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<Blob>>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as a text string
+     * and returns the full event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request, with the response body of type
+     * string.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<string>>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as JSON
+     * and returns the full HTTP event stream.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request, with a response body of
+     * type `Object`.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<Object>>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as JSON and
+     * returns the full event stream.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request,
+     * with a response body in the requested type.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     */
+    head<T>(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<T>>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as an `ArrayBuffer`
+     *  and returns the full HTTP response.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body as an `ArrayBuffer`.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<ArrayBuffer>>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as a `Blob` and returns
+     * the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body as a blob.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<Blob>>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as text stream
+     * and returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body of type string.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<string>>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as JSON and
+     * returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body of type `Object`.
+     */
+    head(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<Object>>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as JSON
+     * and returns the full `HttpResponse`.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with a response body of the requested type.
+     */
+    head<T>(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<T>>;
+    /**
+  
+     * Constructs a `HEAD` request that interprets the body as JSON and
+     * returns the response body as an object parsed from JSON.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the response, with the response body as an object parsed from JSON.
+     */
+    head(url: string, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<Object>;
+    /**
+     * Constructs a `HEAD` request that interprets the body as JSON and returns
+     * the response in a given type.
+     *
+     * @param url     The endpoint URL.
+     * @param options The HTTP options to send with the request.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with a response body of the given type.
+     */
+    head<T>(url: string, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<T>;
+    /**
+     * Constructs a `JSONP` request for the given URL and name of the callback parameter.
+     *
+     * @param url The resource URL.
+     * @param callbackParam The callback function name.
+     *
+     * @return An `Observable` of the response object, with response body as an object.
+     */
+    jsonp(url: string, callbackParam: string): Observable<Object>;
+    /**
+     * Constructs a `JSONP` request for the given URL and name of the callback parameter.
+     *
+     * @param url The resource URL.
+     * @param callbackParam The callback function name.
+     *
+     * You must install a suitable interceptor, such as one provided by `HttpClientJsonpModule`.
+     * If no such interceptor is reached,
+     * then the `JSONP` request can be rejected by the configured backend.
+     *
+     * @return An `Observable` of the response object, with response body in the requested type.
+     */
+    jsonp<T>(url: string, callbackParam: string): Observable<T>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as an
+     * `ArrayBuffer` and returns the response as an `ArrayBuffer`.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<ArrayBuffer>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as a `Blob` and returns
+     * the response as a `Blob`.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the response, with the response body as a `Blob`.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<Blob>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as a text string and
+     * returns a string value.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the response, with the response body of type string.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<string>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as an `ArrayBuffer`
+     *  and returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return  An `Observable` of all `HttpEvent`s for the request,
+     * with the response body as an `ArrayBuffer`.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<ArrayBuffer>>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as a `Blob` and
+     * returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body as a `Blob`.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<Blob>>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as a text string
+     * and returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request,
+     * with the response body of type string.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<string>>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as JSON
+     * and returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request with the response
+     * body of type `Object`.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<Object>>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as JSON and
+     * returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request,
+     * with a response body in the requested type.
+     */
+    options<T>(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<T>>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as an `ArrayBuffer`
+     *  and returns the full HTTP response.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body as an `ArrayBuffer`.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<ArrayBuffer>>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as a `Blob`
+     *  and returns the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body as a `Blob`.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<Blob>>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as text stream
+     * and returns the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body of type string.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<string>>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as JSON
+     * and returns the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body of type `Object`.
+     */
+    options(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<Object>>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as JSON and
+     * returns the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with a response body in the requested type.
+     */
+    options<T>(url: string, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<T>>;
+    /**
+  
+     * Constructs an `OPTIONS` request that interprets the body as JSON and returns the
+     * response body as an object parsed from JSON.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the response, with the response body as an object parsed from JSON.
+     */
+    options(url: string, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<Object>;
+    /**
+     * Constructs an `OPTIONS` request that interprets the body as JSON and returns the
+     * response in a given type.
+     *
+     * @param url The endpoint URL.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the `HttpResponse`, with a response body of the given type.
+     */
+    options<T>(url: string, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<T>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and returns
+     * the response as an `ArrayBuffer`.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<ArrayBuffer>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as a `Blob` and returns the response
+     * as a `Blob`.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the response, with the response body as a `Blob`.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<Blob>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as a text string and
+     * returns the response as a string value.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the response, with a response body of type string.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<string>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer` and
+     *  returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request,
+     * with the response body as an `ArrayBuffer`.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<ArrayBuffer>>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as a `Blob`
+     *  and returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request, with the
+     * response body as `Blob`.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<Blob>>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as a text string and
+     * returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request, with a
+     * response body of type string.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<string>>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as JSON
+     * and returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request,
+     * with a response body of type `Object`.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<Object>>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as JSON
+     * and returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of all the `HttpEvent`s for the request,
+     * with a response body in the requested type.
+     */
+    patch<T>(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<T>>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as an `ArrayBuffer`
+     *  and returns the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return  An `Observable` of the `HttpResponse` for the request,
+     * with the response body as an `ArrayBuffer`.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<ArrayBuffer>>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as a `Blob` and returns the full
+     * `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return  An `Observable` of the `HttpResponse` for the request,
+     * with the response body as a `Blob`.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<Blob>>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as a text stream and returns the
+     * full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return  An `Observable` of the `HttpResponse` for the request,
+     * with a response body of type string.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<string>>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as JSON
+     * and returns the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with a response body in the requested type.
+     */
+    patch(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<Object>>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as JSON
+     * and returns the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with a response body in the given type.
+     */
+    patch<T>(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<T>>;
+    /**
+  
+     * Constructs a `PATCH` request that interprets the body as JSON and
+     * returns the response body as an object parsed from JSON.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the response, with the response body as an object parsed from JSON.
+     */
+    patch(url: string, body: any | null, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<Object>;
+    /**
+     * Constructs a `PATCH` request that interprets the body as JSON
+     * and returns the response in a given type.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to edit.
+     * @param options HTTP options.
+     *
+     * @return  An `Observable` of the `HttpResponse` for the request,
+     * with a response body in the given type.
+     */
+    patch<T>(url: string, body: any | null, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<T>;
+    /**
+     * Constructs a `POST` request that interprets the body as an `ArrayBuffer` and returns
+     * an `ArrayBuffer`.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options.
+     *
+     * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<ArrayBuffer>;
+    /**
+     * Constructs a `POST` request that interprets the body as a `Blob` and returns the
+     * response as a `Blob`.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the response, with the response body as a `Blob`.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<Blob>;
+    /**
+     * Constructs a `POST` request that interprets the body as a text string and
+     * returns the response as a string value.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the response, with a response body of type string.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<string>;
+    /**
+     * Constructs a `POST` request that interprets the body as an `ArrayBuffer` and
+     * returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body as an `ArrayBuffer`.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<ArrayBuffer>>;
+    /**
+     * Constructs a `POST` request that interprets the body as a `Blob`
+     * and returns the response in an observable of the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request, with the response body as `Blob`.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<Blob>>;
+    /**
+     * Constructs a `POST` request that interprets the body as a text string and returns the full
+     * event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return  An `Observable` of all `HttpEvent`s for the request,
+     * with a response body of type string.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<string>>;
+    /**
+     * Constructs a POST request that interprets the body as JSON and returns the full
+     * event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return  An `Observable` of all `HttpEvent`s for the request,
+     * with a response body of type `Object`.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<Object>>;
+    /**
+     * Constructs a POST request that interprets the body as JSON and returns the full
+     * event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with a response body in the requested type.
+     */
+    post<T>(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpEvent<T>>;
+    /**
+     * Constructs a POST request that interprets the body as an `ArrayBuffer`
+     *  and returns the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return  An `Observable` of the `HttpResponse` for the request, with the response body as an
+     * `ArrayBuffer`.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<ArrayBuffer>>;
+    /**
+     * Constructs a `POST` request that interprets the body as a `Blob` and returns the full
+     * `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body as a `Blob`.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<Blob>>;
+    /**
+     * Constructs a `POST` request that interprets the body as a text stream and returns
+     * the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return  An `Observable` of the `HttpResponse` for the request,
+     * with a response body of type string.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<string>>;
+    /**
+     * Constructs a `POST` request that interprets the body as JSON
+     * and returns the full `HttpResponse`.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the `HttpResponse` for the request, with a response body of type
+     * `Object`.
+     */
+    post(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<Object>>;
+    /**
+     * Constructs a `POST` request that interprets the body as JSON and returns the
+     * full `HttpResponse`.
+     *
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the `HttpResponse` for the request, with a response body in the
+     * requested type.
+     */
+    post<T>(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<HttpResponse<T>>;
+    /**
+     * Constructs a `POST` request that interprets the body as JSON
+     * and returns the response body as an object parsed from JSON.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the response, with the response body as an object parsed from JSON.
+     */
+    post(url: string, body: any | null, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<Object>;
+    /**
+     * Constructs a `POST` request that interprets the body as JSON
+     * and returns an observable of the response.
+     *
+     * @param url The endpoint URL.
+     * @param body The content to replace with.
+     * @param options HTTP options
+     *
+     * @return  An `Observable` of the `HttpResponse` for the request, with a response body in the
+     * requested type.
+     */
+    post<T>(url: string, body: any | null, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+        transferCache?: {
+            includeHeaders?: string[];
+        } | boolean;
+    }): Observable<T>;
+    /**
+     * Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and returns the
+     * response as an `ArrayBuffer`.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the response, with the response body as an `ArrayBuffer`.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<ArrayBuffer>;
+    /**
+     * Constructs a `PUT` request that interprets the body as a `Blob` and returns
+     * the response as a `Blob`.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the response, with the response body as a `Blob`.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<Blob>;
+    /**
+     * Constructs a `PUT` request that interprets the body as a text string and
+     * returns the response as a string value.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the response, with a response body of type string.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<string>;
+    /**
+     * Constructs a `PUT` request that interprets the body as an `ArrayBuffer` and
+     * returns the full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body as an `ArrayBuffer`.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<ArrayBuffer>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as a `Blob` and returns the full event
+     * stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with the response body as a `Blob`.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<Blob>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as a text string and returns the full event
+     * stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request, with a response body
+     * of type string.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<string>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as JSON and returns the full
+     * event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request, with a response body of
+     * type `Object`.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<Object>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as JSON and returns the
+     * full event stream.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of all `HttpEvent`s for the request,
+     * with a response body in the requested type.
+     */
+    put<T>(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'events';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpEvent<T>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as an
+     * `ArrayBuffer` and returns an observable of the full HTTP response.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the `HttpResponse` for the request, with the response body as an
+     * `ArrayBuffer`.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'arraybuffer';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<ArrayBuffer>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as a `Blob` and returns the
+     * full HTTP response.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with the response body as a `Blob`.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'blob';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<Blob>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as a text stream and returns the
+     * full HTTP response.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the `HttpResponse` for the request, with a response body of type
+     * string.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType: 'text';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<string>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as JSON and returns the full
+     * HTTP response.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the `HttpResponse` for the request, with a response body
+     * of type 'Object`.
+     */
+    put(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<Object>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as an instance of the requested type and
+     * returns the full HTTP response.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the `HttpResponse` for the request,
+     * with a response body in the requested type.
+     */
+    put<T>(url: string, body: any | null, options: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        observe: 'response';
+        context?: HttpContext;
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<HttpResponse<T>>;
+    /**
+     * Constructs a `PUT` request that interprets the body as JSON
+     * and returns an observable of JavaScript object.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the response as a JavaScript object.
+     */
+    put(url: string, body: any | null, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<Object>;
+    /**
+     * Constructs a `PUT` request that interprets the body as an instance of the requested type
+     * and returns an observable of the requested type.
+     *
+     * @param url The endpoint URL.
+     * @param body The resources to add/update.
+     * @param options HTTP options
+     *
+     * @return An `Observable` of the requested type.
+     */
+    put<T>(url: string, body: any | null, options?: {
+        headers?: HttpHeaders | Record<string, string | string[]>;
+        context?: HttpContext;
+        observe?: 'body';
+        params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+        reportProgress?: boolean;
+        responseType?: 'json';
+        withCredentials?: boolean;
+        credentials?: RequestCredentials;
+        keepalive?: boolean;
+        priority?: RequestPriority;
+        cache?: RequestCache;
+        mode?: RequestMode;
+        redirect?: RequestRedirect;
+    }): Observable<T>;
+    static ɵfac: i0.ɵɵFactoryDeclaration<HttpClient, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<HttpClient>;
+}
+
+/**
+ * Uses `fetch` to send requests to a backend server.
+ *
+ * This `FetchBackend` requires the support of the
+ * [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) which is available on all
+ * supported browsers and on Node.js v18 or later.
+ *
+ * @see {@link HttpHandler}
+ *
+ * @publicApi
+ */
+declare class FetchBackend implements HttpBackend {
+    private readonly fetchImpl;
+    private readonly ngZone;
+    private readonly destroyRef;
+    private destroyed;
+    constructor();
+    handle(request: HttpRequest<any>): Observable<HttpEvent<any>>;
+    private doRequest;
+    private parseBody;
+    private createRequestInit;
+    private concatChunks;
+    static ɵfac: i0.ɵɵFactoryDeclaration<FetchBackend, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<FetchBackend>;
+}
+
+/**
+ * Intercepts and handles an `HttpRequest` or `HttpResponse`.
+ *
+ * Most interceptors transform the outgoing request before passing it to the
+ * next interceptor in the chain, by calling `next.handle(transformedReq)`.
+ * An interceptor may transform the
+ * response event stream as well, by applying additional RxJS operators on the stream
+ * returned by `next.handle()`.
+ *
+ * More rarely, an interceptor may handle the request entirely,
+ * and compose a new event stream instead of invoking `next.handle()`. This is an
+ * acceptable behavior, but keep in mind that further interceptors will be skipped entirely.
+ *
+ * It is also rare but valid for an interceptor to return multiple responses on the
+ * event stream for a single request.
+ *
+ * @publicApi
+ *
+ * @see [HTTP Guide](guide/http/interceptors)
+ * @see {@link HttpInterceptorFn}
+ *
+ * @usageNotes
+ *
+ * To use the same instance of `HttpInterceptors` for the entire app, import the `HttpClientModule`
+ * only in your `AppModule`, and add the interceptors to the root application injector.
+ * If you import `HttpClientModule` multiple times across different modules (for example, in lazy
+ * loading modules), each import creates a new copy of the `HttpClientModule`, which overwrites the
+ * interceptors provided in the root module.
+ */
+interface HttpInterceptor {
+    /**
+     * Identifies and handles a given HTTP request.
+     * @param req The outgoing request object to handle.
+     * @param next The next interceptor in the chain, or the backend
+     * if no interceptors remain in the chain.
+     * @returns An observable of the event stream.
+     */
+    intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
+}
+/**
+ * Represents the next interceptor in an interceptor chain, or the real backend if there are no
+ * further interceptors.
+ *
+ * Most interceptors will delegate to this function, and either modify the outgoing request or the
+ * response when it arrives. Within the scope of the current request, however, this function may be
+ * called any number of times, for any number of downstream requests. Such downstream requests need
+ * not be to the same URL or even the same origin as the current request. It is also valid to not
+ * call the downstream handler at all, and process the current request entirely within the
+ * interceptor.
+ *
+ * This function should only be called within the scope of the request that's currently being
+ * intercepted. Once that request is complete, this downstream handler function should not be
+ * called.
+ *
+ * @publicApi
+ *
+ * @see [HTTP Guide](guide/http/interceptors)
+ */
+type HttpHandlerFn = (req: HttpRequest<unknown>) => Observable<HttpEvent<unknown>>;
+/**
+ * An interceptor for HTTP requests made via `HttpClient`.
+ *
+ * `HttpInterceptorFn`s are middleware functions which `HttpClient` calls when a request is made.
+ * These functions have the opportunity to modify the outgoing request or any response that comes
+ * back, as well as block, redirect, or otherwise change the request or response semantics.
+ *
+ * An `HttpHandlerFn` representing the next interceptor (or the backend which will make a real HTTP
+ * request) is provided. Most interceptors will delegate to this function, but that is not required
+ * (see `HttpHandlerFn` for more details).
+ *
+ * `HttpInterceptorFn`s are executed in an [injection context](guide/di/dependency-injection-context).
+ * They have access to `inject()` via the `EnvironmentInjector` from which they were configured.
+ *
+ * @see [HTTP Guide](guide/http/interceptors)
+ * @see {@link withInterceptors}
+ *
+ * @usageNotes
+ * Here is a noop interceptor that passes the request through without modifying it:
+ * ```ts
+ * export const noopInterceptor: HttpInterceptorFn = (req: HttpRequest<unknown>, next:
+ * HttpHandlerFn) => {
+ *   return next(modifiedReq);
+ * };
+ * ```
+ *
+ * If you want to alter a request, clone it first and modify the clone before passing it to the
+ * `next()` handler function.
+ *
+ * Here is a basic interceptor that adds a bearer token to the headers
+ * ```ts
+ * export const authenticationInterceptor: HttpInterceptorFn = (req: HttpRequest<unknown>, next:
+ * HttpHandlerFn) => {
+ *    const userToken = 'MY_TOKEN'; const modifiedReq = req.clone({
+ *      headers: req.headers.set('Authorization', `Bearer ${userToken}`),
+ *    });
+ *
+ *    return next(modifiedReq);
+ * };
+ * ```
+ */
+type HttpInterceptorFn = (req: HttpRequest<unknown>, next: HttpHandlerFn) => Observable<HttpEvent<unknown>>;
+/**
+ * A multi-provider token that represents the array of registered
+ * `HttpInterceptor` objects.
+ *
+ * @publicApi
+ */
+declare const HTTP_INTERCEPTORS: InjectionToken<readonly HttpInterceptor[]>;
+/**
+ * A multi-provided token of `HttpInterceptorFn`s that are only set in root.
+ */
+declare const HTTP_ROOT_INTERCEPTOR_FNS: InjectionToken<readonly HttpInterceptorFn[]>;
+declare const REQUESTS_CONTRIBUTE_TO_STABILITY: InjectionToken<boolean>;
+declare class HttpInterceptorHandler extends HttpHandler {
+    private backend;
+    private injector;
+    private chain;
+    private readonly pendingTasks;
+    private readonly contributeToStability;
+    constructor(backend: HttpBackend, injector: EnvironmentInjector);
+    handle(initialRequest: HttpRequest<any>): Observable<HttpEvent<any>>;
+    static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptorHandler, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<HttpInterceptorHandler>;
+}
+
+/**
+ * DI token/abstract type representing a map of JSONP callbacks.
+ *
+ * In the browser, this should always be the `window` object.
+ *
+ *
+ */
+declare abstract class JsonpCallbackContext {
+    [key: string]: (data: any) => void;
+}
+/**
+ * Processes an `HttpRequest` with the JSONP method,
+ * by performing JSONP style requests.
+ * @see {@link HttpHandler}
+ * @see {@link HttpXhrBackend}
+ *
+ * @publicApi
+ */
+declare class JsonpClientBackend implements HttpBackend {
+    private callbackMap;
+    private document;
+    /**
+     * A resolved promise that can be used to schedule microtasks in the event handlers.
+     */
+    private readonly resolvedPromise;
+    constructor(callbackMap: JsonpCallbackContext, document: any);
+    /**
+     * Get the name of the next callback method, by incrementing the global `nextRequestId`.
+     */
+    private nextCallback;
+    /**
+     * Processes a JSONP request and returns an event stream of the results.
+     * @param req The request object.
+     * @returns An observable of the response events.
+     *
+     */
+    handle(req: HttpRequest<never>): Observable<HttpEvent<any>>;
+    private removeListeners;
+    static ɵfac: i0.ɵɵFactoryDeclaration<JsonpClientBackend, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<JsonpClientBackend>;
+}
+/**
+ * Identifies requests with the method JSONP and
+ * shifts them to the `JsonpClientBackend`.
+ *
+ * @see {@link HttpInterceptor}
+ *
+ * @publicApi
+ */
+declare class JsonpInterceptor {
+    private injector;
+    constructor(injector: EnvironmentInjector);
+    /**
+     * Identifies and handles a given JSONP request.
+     * @param initialRequest The outgoing request object to handle.
+     * @param next The next interceptor in the chain, or the backend
+     * if no interceptors remain in the chain.
+     * @returns An observable of the event stream.
+     */
+    intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
+    static ɵfac: i0.ɵɵFactoryDeclaration<JsonpInterceptor, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<JsonpInterceptor>;
+}
+
+/**
+ * Identifies a particular kind of `HttpFeature`.
+ *
+ * @publicApi
+ */
+declare enum HttpFeatureKind {
+    Interceptors = 0,
+    LegacyInterceptors = 1,
+    CustomXsrfConfiguration = 2,
+    NoXsrfProtection = 3,
+    JsonpSupport = 4,
+    RequestsMadeViaParent = 5,
+    Fetch = 6
+}
+/**
+ * A feature for use when configuring `provideHttpClient`.
+ *
+ * @publicApi
+ */
+interface HttpFeature<KindT extends HttpFeatureKind> {
+    ɵkind: KindT;
+    ɵproviders: Provider[];
+}
+/**
+ * Configures Angular's `HttpClient` service to be available for injection.
+ *
+ * By default, `HttpClient` will be configured for injection with its default options for XSRF
+ * protection of outgoing requests. Additional configuration options can be provided by passing
+ * feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the
+ * `withInterceptors(...)` feature.
+ *
+ * <div class="docs-alert docs-alert-helpful">
+ *
+ * It's strongly recommended to enable
+ * [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) for applications that use
+ * Server-Side Rendering for better performance and compatibility. To enable `fetch`, add
+ * `withFetch()` feature to the `provideHttpClient()` call at the root of the application:
+ *
+ * ```ts
+ * provideHttpClient(withFetch());
+ * ```
+ *
+ * </div>
+ *
+ * @see {@link withInterceptors}
+ * @see {@link withInterceptorsFromDi}
+ * @see {@link withXsrfConfiguration}
+ * @see {@link withNoXsrfProtection}
+ * @see {@link withJsonpSupport}
+ * @see {@link withRequestsMadeViaParent}
+ * @see {@link withFetch}
+ */
+declare function provideHttpClient(...features: HttpFeature<HttpFeatureKind>[]): EnvironmentProviders;
+/**
+ * Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`
+ * instance.
+ *
+ * @see {@link HttpInterceptorFn}
+ * @see {@link provideHttpClient}
+ * @publicApi
+ */
+declare function withInterceptors(interceptorFns: HttpInterceptorFn[]): HttpFeature<HttpFeatureKind.Interceptors>;
+/**
+ * Includes class-based interceptors configured using a multi-provider in the current injector into
+ * the configured `HttpClient` instance.
+ *
+ * Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided
+ * interceptors may be phased out in a later release.
+ *
+ * @see {@link HttpInterceptor}
+ * @see {@link HTTP_INTERCEPTORS}
+ * @see {@link provideHttpClient}
+ */
+declare function withInterceptorsFromDi(): HttpFeature<HttpFeatureKind.LegacyInterceptors>;
+/**
+ * Customizes the XSRF protection for the configuration of the current `HttpClient` instance.
+ *
+ * This feature is incompatible with the `withNoXsrfProtection` feature.
+ *
+ * @see {@link provideHttpClient}
+ */
+declare function withXsrfConfiguration({ cookieName, headerName, }: {
+    cookieName?: string;
+    headerName?: string;
+}): HttpFeature<HttpFeatureKind.CustomXsrfConfiguration>;
+/**
+ * Disables XSRF protection in the configuration of the current `HttpClient` instance.
+ *
+ * This feature is incompatible with the `withXsrfConfiguration` feature.
+ *
+ * @see {@link provideHttpClient}
+ */
+declare function withNoXsrfProtection(): HttpFeature<HttpFeatureKind.NoXsrfProtection>;
+/**
+ * Add JSONP support to the configuration of the current `HttpClient` instance.
+ *
+ * @see {@link provideHttpClient}
+ */
+declare function withJsonpSupport(): HttpFeature<HttpFeatureKind.JsonpSupport>;
+/**
+ * Configures the current `HttpClient` instance to make requests via the parent injector's
+ * `HttpClient` instead of directly.
+ *
+ * By default, `provideHttpClient` configures `HttpClient` in its injector to be an independent
+ * instance. For example, even if `HttpClient` is configured in the parent injector with
+ * one or more interceptors, they will not intercept requests made via this instance.
+ *
+ * With this option enabled, once the request has passed through the current injector's
+ * interceptors, it will be delegated to the parent injector's `HttpClient` chain instead of
+ * dispatched directly, and interceptors in the parent configuration will be applied to the request.
+ *
+ * If there are several `HttpClient` instances in the injector hierarchy, it's possible for
+ * `withRequestsMadeViaParent` to be used at multiple levels, which will cause the request to
+ * "bubble up" until either reaching the root level or an `HttpClient` which was not configured with
+ * this option.
+ *
+ * @see {@link provideHttpClient}
+ * @publicApi 19.0
+ */
+declare function withRequestsMadeViaParent(): HttpFeature<HttpFeatureKind.RequestsMadeViaParent>;
+/**
+ * Configures the current `HttpClient` instance to make requests using the fetch API.
+ *
+ * Note: The Fetch API doesn't support progress report on uploads.
+ *
+ * @publicApi
+ */
+declare function withFetch(): HttpFeature<HttpFeatureKind.Fetch>;
+
+/**
+ * The structure of an `httpResource` request which will be sent to the backend.
+ *
+ * @experimental 19.2
+ */
+interface HttpResourceRequest {
+    /**
+     * URL of the request.
+     *
+     * This URL should not include query parameters. Instead, specify query parameters through the
+     * `params` field.
+     */
+    url: string;
+    /**
+     * HTTP method of the request, which defaults to GET if not specified.
+     */
+    method?: string;
+    /**
+     * Body to send with the request, if there is one.
+     *
+     * If no Content-Type header is specified by the user, Angular will attempt to set one based on
+     * the type of `body`.
+     */
+    body?: unknown;
+    /**
+     * Dictionary of query parameters which will be appeneded to the request URL.
+     */
+    params?: HttpParams | Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
+    /**
+     * Dictionary of headers to include with the outgoing request.
+     */
+    headers?: HttpHeaders | Record<string, string | ReadonlyArray<string>>;
+    /**
+     * Context of the request stored in a dictionary of key-value pairs.
+     */
+    context?: HttpContext;
+    /**
+     * If `true`, progress events will be enabled for the request and delivered through the
+     * `HttpResource.progress` signal.
+     */
+    reportProgress?: boolean;
+    /**
+     * Specifies whether the `withCredentials` flag should be set on the outgoing request.
+     *
+     * This flag causes the browser to send cookies and other authentication information along with
+     * the request.
+     */
+    withCredentials?: boolean;
+    /**
+     * When using the fetch implementation and set to `true`, the browser will not abort the associated request if the page that initiated it is unloaded before the request is complete.
+     */
+    keepalive?: boolean;
+    /**
+     * Controls how the request will interact with the browser's HTTP cache.
+     * This affects whether a response is retrieved from the cache, how it is stored, or if it bypasses the cache altogether.
+     */
+    cache?: RequestCache | (string & {});
+    /**
+     * The credentials mode of the request, which determines how cookies and other authentication information are handled.
+     * This can affect whether credentials are sent with cross-origin requests or not.
+     */
+    credentials?: RequestCredentials | (string & {});
+    /**
+     * Indicates the relative priority of the request. This may be used by the browser to decide the order in which requests are dispatched and resources fetched.
+     */
+    priority?: RequestPriority | (string & {});
+    /**
+     * The mode of the request, which determines how the request will interact with the browser's security model.
+     * This can affect things like CORS (Cross-Origin Resource Sharing) and same-origin policies.
+     */
+    mode?: RequestMode | (string & {});
+    /**
+     * The redirect mode of the request, which determines how redirects are handled.
+     * This can affect whether the request follows redirects automatically, or if it fails when a redirect occurs.
+     */
+    redirect?: RequestRedirect | (string & {});
+    /**
+     * Configures the server-side rendering transfer cache for this request.
+     *
+     * See the documentation on the transfer cache for more information.
+     */
+    transferCache?: {
+        includeHeaders?: string[];
+    } | boolean;
+    /**
+     * The timeout for the backend HTTP request in ms.
+     */
+    timeout?: number;
+}
+/**
+ * Options for creating an `httpResource`.
+ *
+ * @experimental 19.2
+ */
+interface HttpResourceOptions<TResult, TRaw> {
+    /**
+     * Transform the result of the HTTP request before it's delivered to the resource.
+     *
+     * `parse` receives the value from the HTTP layer as its raw type (e.g. as `unknown` for JSON data).
+     * It can be used to validate or transform the type of the resource, and return a more specific
+     * type. This is also useful for validating backend responses using a runtime schema validation
+     * library such as Zod.
+     */
+    parse?: (value: TRaw) => TResult;
+    /**
+     * Value that the resource will take when in Idle or Loading states.
+     *
+     * If not set, the resource will use `undefined` as its default value.
+     */
+    defaultValue?: NoInfer<TResult>;
+    /**
+     * The `Injector` in which to create the `httpResource`.
+     *
+     * If this is not provided, the current [injection context](guide/di/dependency-injection-context)
+     * will be used instead (via `inject`).
+     */
+    injector?: Injector;
+    /**
+     * A comparison function which defines equality for the response value.
+     */
+    equal?: ValueEqualityFn<NoInfer<TResult>>;
+}
+/**
+ * A `WritableResource` that represents the results of a reactive HTTP request.
+ *
+ * `HttpResource`s are backed by `HttpClient`, including support for interceptors, testing, and the
+ * other features of the `HttpClient` API.
+ *
+ * @experimental 19.2
+ */
+interface HttpResourceRef<T> extends WritableResource<T>, ResourceRef<T> {
+    /**
+     * Signal of the response headers, when available.
+     */
+    readonly headers: Signal<HttpHeaders | undefined>;
+    /**
+     * Signal of the response status code, when available.
+     */
+    readonly statusCode: Signal<number | undefined>;
+    /**
+     * Signal of the latest progress update, if the request was made with `reportProgress: true`.
+     */
+    readonly progress: Signal<HttpProgressEvent | undefined>;
+    hasValue(): this is HttpResourceRef<Exclude<T, undefined>>;
+    destroy(): void;
+}
+
+/**
+ * Type for the `httpRequest` top-level function, which includes the call signatures for the JSON-
+ * based `httpRequest` as well as sub-functions for `ArrayBuffer`, `Blob`, and `string` type
+ * requests.
+ *
+ * @experimental 19.2
+ */
+interface HttpResourceFn {
+    /**
+     * Create a `Resource` that fetches data with an HTTP GET request to the given URL.
+     *
+     * The resource will update when the URL changes via signals.
+     *
+     * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
+     * of the `HttpClient` API. Data is parsed as JSON by default - use a sub-function of
+     * `httpResource`, such as `httpResource.text()`, to parse the response differently.
+     *
+     * @experimental 19.2
+     */
+    <TResult = unknown>(url: () => string | undefined, options: HttpResourceOptions<TResult, unknown> & {
+        defaultValue: NoInfer<TResult>;
+    }): HttpResourceRef<TResult>;
+    /**
+     * Create a `Resource` that fetches data with an HTTP GET request to the given URL.
+     *
+     * The resource will update when the URL changes via signals.
+     *
+     * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
+     * of the `HttpClient` API. Data is parsed as JSON by default - use a sub-function of
+     * `httpResource`, such as `httpResource.text()`, to parse the response differently.
+     *
+     * @experimental 19.2
+     */
+    <TResult = unknown>(url: () => string | undefined, options?: HttpResourceOptions<TResult, unknown>): HttpResourceRef<TResult | undefined>;
+    /**
+     * Create a `Resource` that fetches data with the configured HTTP request.
+     *
+     * The resource will update when the request changes via signals.
+     *
+     * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
+     * of the `HttpClient` API. Data is parsed as JSON by default - use a sub-function of
+     * `httpResource`, such as `httpResource.text()`, to parse the response differently.
+     *
+     * @experimental 19.2
+     */
+    <TResult = unknown>(request: () => HttpResourceRequest | undefined, options: HttpResourceOptions<TResult, unknown> & {
+        defaultValue: NoInfer<TResult>;
+    }): HttpResourceRef<TResult>;
+    /**
+     * Create a `Resource` that fetches data with the configured HTTP request.
+     *
+     * The resource will update when the request changes via signals.
+     *
+     * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
+     * of the `HttpClient` API. Data is parsed as JSON by default - use a sub-function of
+     * `httpResource`, such as `httpResource.text()`, to parse the response differently.
+     *
+     * @experimental 19.2
+     */
+    <TResult = unknown>(request: () => HttpResourceRequest | undefined, options?: HttpResourceOptions<TResult, unknown>): HttpResourceRef<TResult | undefined>;
+    /**
+     * Create a `Resource` that fetches data with the configured HTTP request.
+     *
+     * The resource will update when the URL or request changes via signals.
+     *
+     * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
+     * of the `HttpClient` API. Data is parsed into an `ArrayBuffer`.
+     *
+     * @experimental 19.2
+     */
+    arrayBuffer: {
+        <TResult = ArrayBuffer>(url: () => string | undefined, options: HttpResourceOptions<TResult, ArrayBuffer> & {
+            defaultValue: NoInfer<TResult>;
+        }): HttpResourceRef<TResult>;
+        <TResult = ArrayBuffer>(url: () => string | undefined, options?: HttpResourceOptions<TResult, ArrayBuffer>): HttpResourceRef<TResult | undefined>;
+        <TResult = ArrayBuffer>(request: () => HttpResourceRequest | undefined, options: HttpResourceOptions<TResult, ArrayBuffer> & {
+            defaultValue: NoInfer<TResult>;
+        }): HttpResourceRef<TResult>;
+        <TResult = ArrayBuffer>(request: () => HttpResourceRequest | undefined, options?: HttpResourceOptions<TResult, ArrayBuffer>): HttpResourceRef<TResult | undefined>;
+    };
+    /**
+     * Create a `Resource` that fetches data with the configured HTTP request.
+     *
+     * The resource will update when the URL or request changes via signals.
+     *
+     * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
+     * of the `HttpClient` API. Data is parsed into a `Blob`.
+     *
+     * @experimental 19.2
+     */
+    blob: {
+        <TResult = Blob>(url: () => string | undefined, options: HttpResourceOptions<TResult, Blob> & {
+            defaultValue: NoInfer<TResult>;
+        }): HttpResourceRef<TResult>;
+        <TResult = Blob>(url: () => string | undefined, options?: HttpResourceOptions<TResult, Blob>): HttpResourceRef<TResult | undefined>;
+        <TResult = Blob>(request: () => HttpResourceRequest | undefined, options: HttpResourceOptions<TResult, Blob> & {
+            defaultValue: NoInfer<TResult>;
+        }): HttpResourceRef<TResult>;
+        <TResult = Blob>(request: () => HttpResourceRequest | undefined, options?: HttpResourceOptions<TResult, Blob>): HttpResourceRef<TResult | undefined>;
+    };
+    /**
+     * Create a `Resource` that fetches data with the configured HTTP request.
+     *
+     * The resource will update when the URL or request changes via signals.
+     *
+     * Uses `HttpClient` to make requests and supports interceptors, testing, and the other features
+     * of the `HttpClient` API. Data is parsed as a `string`.
+     *
+     * @experimental 19.2
+     */
+    text: {
+        <TResult = string>(url: () => string | undefined, options: HttpResourceOptions<TResult, string> & {
+            defaultValue: NoInfer<TResult>;
+        }): HttpResourceRef<TResult>;
+        <TResult = string>(url: () => string | undefined, options?: HttpResourceOptions<TResult, string>): HttpResourceRef<TResult | undefined>;
+        <TResult = string>(request: () => HttpResourceRequest | undefined, options: HttpResourceOptions<TResult, string> & {
+            defaultValue: NoInfer<TResult>;
+        }): HttpResourceRef<TResult>;
+        <TResult = string>(request: () => HttpResourceRequest | undefined, options?: HttpResourceOptions<TResult, string>): HttpResourceRef<TResult | undefined>;
+    };
+}
+/**
+ * `httpResource` makes a reactive HTTP request and exposes the request status and response value as
+ * a `WritableResource`. By default, it assumes that the backend will return JSON data. To make a
+ * request that expects a different kind of data, you can use a sub-constructor of `httpResource`,
+ * such as `httpResource.text`.
+ *
+ * @experimental 19.2
+ * @initializerApiFunction
+ */
+declare const httpResource: HttpResourceFn;
+
+/**
+ * Options to configure how TransferCache should be used to cache requests made via HttpClient.
+ *
+ * @param includeHeaders Specifies which headers should be included into cached responses. No
+ *     headers are included by default.
+ * @param filter A function that receives a request as an argument and returns a boolean to indicate
+ *     whether a request should be included into the cache.
+ * @param includePostRequests Enables caching for POST requests. By default, only GET and HEAD
+ *     requests are cached. This option can be enabled if POST requests are used to retrieve data
+ *     (for example using GraphQL).
+ * @param includeRequestsWithAuthHeaders Enables caching of requests containing either `Authorization`
+ *     or `Proxy-Authorization` headers. By default, these requests are excluded from caching.
+ *
+ * @publicApi
+ */
+type HttpTransferCacheOptions = {
+    includeHeaders?: string[];
+    filter?: (req: HttpRequest<unknown>) => boolean;
+    includePostRequests?: boolean;
+    includeRequestsWithAuthHeaders?: boolean;
+};
+/**
+ * If your application uses different HTTP origins to make API calls (via `HttpClient`) on the server and
+ * on the client, the `HTTP_TRANSFER_CACHE_ORIGIN_MAP` token allows you to establish a mapping
+ * between those origins, so that `HttpTransferCache` feature can recognize those requests as the same
+ * ones and reuse the data cached on the server during hydration on the client.
+ *
+ * **Important note**: the `HTTP_TRANSFER_CACHE_ORIGIN_MAP` token should *only* be provided in
+ * the *server* code of your application (typically in the `app.server.config.ts` script). Angular throws an
+ * error if it detects that the token is defined while running on the client.
+ *
+ * @usageNotes
+ *
+ * When the same API endpoint is accessed via `http://internal-domain.com:8080` on the server and
+ * via `https://external-domain.com` on the client, you can use the following configuration:
+ * ```ts
+ * // in app.server.config.ts
+ * {
+ *     provide: HTTP_TRANSFER_CACHE_ORIGIN_MAP,
+ *     useValue: {
+ *         'http://internal-domain.com:8080': 'https://external-domain.com'
+ *     }
+ * }
+ * ```
+ *
+ * @publicApi
+ */
+declare const HTTP_TRANSFER_CACHE_ORIGIN_MAP: InjectionToken<Record<string, string>>;
+/**
+ * Returns the DI providers needed to enable HTTP transfer cache.
+ *
+ * By default, when using server rendering, requests are performed twice: once on the server and
+ * other one on the browser.
+ *
+ * When these providers are added, requests performed on the server are cached and reused during the
+ * bootstrapping of the application in the browser thus avoiding duplicate requests and reducing
+ * load time.
+ *
+ */
+declare function withHttpTransferCache(cacheOptions: HttpTransferCacheOptions): Provider[];
+
+/**
+ * Uses `XMLHttpRequest` to send requests to a backend server.
+ * @see {@link HttpHandler}
+ * @see {@link JsonpClientBackend}
+ *
+ * @publicApi
+ */
+declare class HttpXhrBackend implements HttpBackend {
+    private xhrFactory;
+    constructor(xhrFactory: XhrFactory);
+    /**
+     * Processes a request and returns a stream of response events.
+     * @param req The request object.
+     * @returns An observable of the response events.
+     */
+    handle(req: HttpRequest<any>): Observable<HttpEvent<any>>;
+    static ɵfac: i0.ɵɵFactoryDeclaration<HttpXhrBackend, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<HttpXhrBackend>;
+}
+
+/**
+ * Retrieves the current XSRF token to use with the next outgoing request.
+ *
+ * @publicApi
+ */
+declare abstract class HttpXsrfTokenExtractor {
+    /**
+     * Get the XSRF token to use with an outgoing request.
+     *
+     * Will be called for every request, so the token may change between requests.
+     */
+    abstract getToken(): string | null;
+}
+
+export { FetchBackend, HTTP_INTERCEPTORS, HTTP_TRANSFER_CACHE_ORIGIN_MAP, HttpBackend, HttpClient, HttpContext, HttpEvent, HttpFeatureKind, HttpHandler, HttpHeaders, HttpParams, HttpProgressEvent, HttpRequest, HttpResponse, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, httpResource, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration, HTTP_ROOT_INTERCEPTOR_FNS as ɵHTTP_ROOT_INTERCEPTOR_FNS, HttpInterceptorHandler as ɵHttpInterceptingHandler, HttpInterceptorHandler as ɵHttpInterceptorHandler, REQUESTS_CONTRIBUTE_TO_STABILITY as ɵREQUESTS_CONTRIBUTE_TO_STABILITY, withHttpTransferCache as ɵwithHttpTransferCache };
+export type { HttpFeature, HttpHandlerFn, HttpInterceptor, HttpInterceptorFn, HttpResourceFn, HttpResourceOptions, HttpResourceRef, HttpResourceRequest, HttpTransferCacheOptions };

+ 182 - 0
node_modules/@angular/common/http/testing/index.d.ts

@@ -0,0 +1,182 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import { HttpRequest, HttpEvent, HttpHeaders, HttpClientModule } from '../../module.d.js';
+import { Observer } from 'rxjs';
+import * as i0 from '@angular/core';
+import { Provider } from '@angular/core';
+
+/**
+ * Type that describes options that can be used to create an error
+ * in `TestRequest`.
+ */
+type TestRequestErrorOptions = {
+    headers?: HttpHeaders | {
+        [name: string]: string | string[];
+    };
+    status?: number;
+    statusText?: string;
+};
+/**
+ * A mock requests that was received and is ready to be answered.
+ *
+ * This interface allows access to the underlying `HttpRequest`, and allows
+ * responding with `HttpEvent`s or `HttpErrorResponse`s.
+ *
+ * @publicApi
+ */
+declare class TestRequest {
+    request: HttpRequest<any>;
+    private observer;
+    /**
+     * Whether the request was cancelled after it was sent.
+     */
+    get cancelled(): boolean;
+    constructor(request: HttpRequest<any>, observer: Observer<HttpEvent<any>>);
+    /**
+     * Resolve the request by returning a body plus additional HTTP information (such as response
+     * headers) if provided.
+     * If the request specifies an expected body type, the body is converted into the requested type.
+     * Otherwise, the body is converted to `JSON` by default.
+     *
+     * Both successful and unsuccessful responses can be delivered via `flush()`.
+     */
+    flush(body: ArrayBuffer | Blob | boolean | string | number | Object | (boolean | string | number | Object | null)[] | null, opts?: {
+        headers?: HttpHeaders | {
+            [name: string]: string | string[];
+        };
+        status?: number;
+        statusText?: string;
+    }): void;
+    /**
+     * Resolve the request by returning an `ErrorEvent` (e.g. simulating a network failure).
+     * @deprecated Http requests never emit an `ErrorEvent`. Please specify a `ProgressEvent`.
+     */
+    error(error: ErrorEvent, opts?: TestRequestErrorOptions): void;
+    /**
+     * Resolve the request by returning an `ProgressEvent` (e.g. simulating a network failure).
+     */
+    error(error: ProgressEvent, opts?: TestRequestErrorOptions): void;
+    /**
+     * Deliver an arbitrary `HttpEvent` (such as a progress event) on the response stream for this
+     * request.
+     */
+    event(event: HttpEvent<any>): void;
+}
+
+/**
+ * Defines a matcher for requests based on URL, method, or both.
+ *
+ * @publicApi
+ */
+interface RequestMatch {
+    method?: string;
+    url?: string;
+}
+/**
+ * Controller to be injected into tests, that allows for mocking and flushing
+ * of requests.
+ *
+ * @publicApi
+ */
+declare abstract class HttpTestingController {
+    /**
+     * Search for requests that match the given parameter, without any expectations.
+     */
+    abstract match(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean)): TestRequest[];
+    /**
+     * Expect that a single request has been made which matches the given URL, and return its
+     * mock.
+     *
+     * If no such request has been made, or more than one such request has been made, fail with an
+     * error message including the given request description, if any.
+     */
+    abstract expectOne(url: string, description?: string): TestRequest;
+    /**
+     * Expect that a single request has been made which matches the given parameters, and return
+     * its mock.
+     *
+     * If no such request has been made, or more than one such request has been made, fail with an
+     * error message including the given request description, if any.
+     */
+    abstract expectOne(params: RequestMatch, description?: string): TestRequest;
+    /**
+     * Expect that a single request has been made which matches the given predicate function, and
+     * return its mock.
+     *
+     * If no such request has been made, or more than one such request has been made, fail with an
+     * error message including the given request description, if any.
+     */
+    abstract expectOne(matchFn: (req: HttpRequest<any>) => boolean, description?: string): TestRequest;
+    /**
+     * Expect that a single request has been made which matches the given condition, and return
+     * its mock.
+     *
+     * If no such request has been made, or more than one such request has been made, fail with an
+     * error message including the given request description, if any.
+     */
+    abstract expectOne(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): TestRequest;
+    /**
+     * Expect that no requests have been made which match the given URL.
+     *
+     * If a matching request has been made, fail with an error message including the given request
+     * description, if any.
+     */
+    abstract expectNone(url: string, description?: string): void;
+    /**
+     * Expect that no requests have been made which match the given parameters.
+     *
+     * If a matching request has been made, fail with an error message including the given request
+     * description, if any.
+     */
+    abstract expectNone(params: RequestMatch, description?: string): void;
+    /**
+     * Expect that no requests have been made which match the given predicate function.
+     *
+     * If a matching request has been made, fail with an error message including the given request
+     * description, if any.
+     */
+    abstract expectNone(matchFn: (req: HttpRequest<any>) => boolean, description?: string): void;
+    /**
+     * Expect that no requests have been made which match the given condition.
+     *
+     * If a matching request has been made, fail with an error message including the given request
+     * description, if any.
+     */
+    abstract expectNone(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): void;
+    /**
+     * Verify that no unmatched requests are outstanding.
+     *
+     * If any requests are outstanding, fail with an error message indicating which requests were not
+     * handled.
+     *
+     * If `ignoreCancelled` is not set (the default), `verify()` will also fail if cancelled requests
+     * were not explicitly matched.
+     */
+    abstract verify(opts?: {
+        ignoreCancelled?: boolean;
+    }): void;
+}
+
+/**
+ * Configures `HttpClientTestingBackend` as the `HttpBackend` used by `HttpClient`.
+ *
+ * Inject `HttpTestingController` to expect and flush requests in your tests.
+ *
+ * @publicApi
+ *
+ * @deprecated Add `provideHttpClientTesting()` to your providers instead.
+ */
+declare class HttpClientTestingModule {
+    static ɵfac: i0.ɵɵFactoryDeclaration<HttpClientTestingModule, never>;
+    static ɵmod: i0.ɵɵNgModuleDeclaration<HttpClientTestingModule, never, [typeof HttpClientModule], never>;
+    static ɵinj: i0.ɵɵInjectorDeclaration<HttpClientTestingModule>;
+}
+
+declare function provideHttpClientTesting(): Provider[];
+
+export { HttpClientTestingModule, HttpTestingController, TestRequest, provideHttpClientTesting };
+export type { RequestMatch };

+ 1241 - 0
node_modules/@angular/common/index.d.ts

@@ -0,0 +1,1241 @@
+/**
+ * @license Angular v20.1.0
+ * (c) 2010-2025 Google LLC. https://angular.io/
+ * License: MIT
+ */
+
+import * as i0 from '@angular/core';
+import { ɵNavigation as _Navigation, ɵNavigationHistoryEntry as _NavigationHistoryEntry, ɵNavigationUpdateCurrentEntryOptions as _NavigationUpdateCurrentEntryOptions, ɵNavigationTransition as _NavigationTransition, ɵNavigationNavigateOptions as _NavigationNavigateOptions, ɵNavigationResult as _NavigationResult, ɵNavigationReloadOptions as _NavigationReloadOptions, ɵNavigationOptions as _NavigationOptions, ɵNavigateEvent as _NavigateEvent, ɵNavigationCurrentEntryChangeEvent as _NavigationCurrentEntryChangeEvent, OnDestroy, Version, Provider, InjectionToken, OnInit, OnChanges, SimpleChanges } from '@angular/core';
+export { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG, ɵImageConfig as ImageConfig } from '@angular/core';
+import { LocationStrategy } from './common_module.d.js';
+export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DatePipeConfig, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValue, KeyValuePipe, Location, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, PathLocationStrategy, PercentPipe, PopStateEvent, SlicePipe, TitleCasePipe, UpperCasePipe } from './common_module.d.js';
+import { PlatformLocation, LocationChangeListener } from './platform_location.d.js';
+export { BrowserPlatformLocation, LOCATION_INITIALIZED, LocationChangeEvent } from './platform_location.d.js';
+export { XhrFactory } from './xhr.d.js';
+import 'rxjs';
+
+declare function getDOM(): DomAdapter;
+declare function setRootDomAdapter(adapter: DomAdapter): void;
+/**
+ * Provides DOM operations in an environment-agnostic way.
+ *
+ * @security Tread carefully! Interacting with the DOM directly is dangerous and
+ * can introduce XSS risks.
+ */
+declare abstract class DomAdapter {
+    abstract dispatchEvent(el: any, evt: any): any;
+    abstract readonly supportsDOMEvents: boolean;
+    abstract remove(el: any): void;
+    abstract createElement(tagName: any, doc?: any): HTMLElement;
+    abstract createHtmlDocument(): Document;
+    abstract getDefaultDocument(): Document;
+    abstract isElementNode(node: any): boolean;
+    abstract isShadowRoot(node: any): boolean;
+    abstract onAndCancel(el: any, evt: any, listener: any, options?: any): Function;
+    abstract getGlobalEventTarget(doc: Document, target: string): any;
+    abstract getBaseHref(doc: Document): string | null;
+    abstract resetBaseElement(): void;
+    abstract getUserAgent(): string;
+    abstract getCookie(name: string): string | null;
+}
+
+/**
+ * This class wraps the platform Navigation API which allows server-specific and test
+ * implementations.
+ */
+declare abstract class PlatformNavigation implements _Navigation {
+    abstract entries(): _NavigationHistoryEntry[];
+    abstract currentEntry: _NavigationHistoryEntry | null;
+    abstract updateCurrentEntry(options: _NavigationUpdateCurrentEntryOptions): void;
+    abstract transition: _NavigationTransition | null;
+    abstract canGoBack: boolean;
+    abstract canGoForward: boolean;
+    abstract navigate(url: string, options?: _NavigationNavigateOptions | undefined): _NavigationResult;
+    abstract reload(options?: _NavigationReloadOptions | undefined): _NavigationResult;
+    abstract traverseTo(key: string, options?: _NavigationOptions | undefined): _NavigationResult;
+    abstract back(options?: _NavigationOptions | undefined): _NavigationResult;
+    abstract forward(options?: _NavigationOptions | undefined): _NavigationResult;
+    abstract onnavigate: ((this: _Navigation, ev: _NavigateEvent) => any) | null;
+    abstract onnavigatesuccess: ((this: _Navigation, ev: Event) => any) | null;
+    abstract onnavigateerror: ((this: _Navigation, ev: ErrorEvent) => any) | null;
+    abstract oncurrententrychange: ((this: _Navigation, ev: _NavigationCurrentEntryChangeEvent) => any) | null;
+    abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
+    abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
+    abstract dispatchEvent(event: Event): boolean;
+    static ɵfac: i0.ɵɵFactoryDeclaration<PlatformNavigation, never>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<PlatformNavigation>;
+}
+
+/**
+ * @description
+ * A {@link LocationStrategy} used to configure the {@link Location} service to
+ * represent its state in the
+ * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)
+ * of the browser's URL.
+ *
+ * For instance, if you call `location.go('/foo')`, the browser's URL will become
+ * `example.com#/foo`.
+ *
+ * @usageNotes
+ *
+ * ### Example
+ *
+ * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}
+ *
+ * @publicApi
+ */
+declare class HashLocationStrategy extends LocationStrategy implements OnDestroy {
+    private _platformLocation;
+    private _baseHref;
+    private _removeListenerFns;
+    constructor(_platformLocation: PlatformLocation, _baseHref?: string);
+    /** @docs-private */
+    ngOnDestroy(): void;
+    onPopState(fn: LocationChangeListener): void;
+    getBaseHref(): string;
+    path(includeHash?: boolean): string;
+    prepareExternalUrl(internal: string): string;
+    pushState(state: any, title: string, path: string, queryParams: string): void;
+    replaceState(state: any, title: string, path: string, queryParams: string): void;
+    forward(): void;
+    back(): void;
+    getState(): unknown;
+    historyGo(relativePosition?: number): void;
+    static ɵfac: i0.ɵɵFactoryDeclaration<HashLocationStrategy, [null, { optional: true; }]>;
+    static ɵprov: i0.ɵɵInjectableDeclaration<HashLocationStrategy>;
+}
+
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Formats a date according to locale rules.
+ *
+ * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)
+ * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).
+ * @param format The date-time components to include. See `DatePipe` for details.
+ * @param locale A locale code for the locale format rules to use.
+ * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`).
+ * If not specified, uses host system settings.
+ *
+ * @returns The formatted date string.
+ *
+ * @see {@link DatePipe}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ */
+declare function formatDate(value: string | number | Date, format: string, locale: string, timezone?: string): string;
+
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Formats a number as currency using locale rules.
+ *
+ * @param value The number to format.
+ * @param locale A locale code for the locale format rules to use.
+ * @param currency A string containing the currency symbol or its name,
+ * such as "$" or "Canadian Dollar". Used in output string, but does not affect the operation
+ * of the function.
+ * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)
+ * currency code, such as `USD` for the US dollar and `EUR` for the euro.
+ * Used to determine the number of digits in the decimal part.
+ * @param digitsInfo Decimal representation options, specified by a string in the following format:
+ * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
+ *
+ * @returns The formatted currency value.
+ *
+ * @see {@link formatNumber}
+ * @see {@link DecimalPipe}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ */
+declare function formatCurrency(value: number, locale: string, currency: string, currencyCode?: string, digitsInfo?: string): string;
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Formats a number as a percentage according to locale rules.
+ *
+ * @param value The number to format.
+ * @param locale A locale code for the locale format rules to use.
+ * @param digitsInfo Decimal representation options, specified by a string in the following format:
+ * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
+ *
+ * @returns The formatted percentage value.
+ *
+ * @see {@link formatNumber}
+ * @see {@link DecimalPipe}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ * @publicApi
+ *
+ */
+declare function formatPercent(value: number, locale: string, digitsInfo?: string): string;
+/**
+ * @ngModule CommonModule
+ * @description
+ *
+ * Formats a number as text, with group sizing, separator, and other
+ * parameters based on the locale.
+ *
+ * @param value The number to format.
+ * @param locale A locale code for the locale format rules to use.
+ * @param digitsInfo Decimal representation options, specified by a string in the following format:
+ * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
+ *
+ * @returns The formatted text string.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ */
+declare function formatNumber(value: number, locale: string, digitsInfo?: string): string;
+
+/**
+ * Register global data to be used internally by Angular. See the
+ * ["I18n guide"](guide/i18n/format-data-locale) to know how to import additional locale
+ * data.
+ *
+ * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1
+ *
+ * @publicApi
+ */
+declare function registerLocaleData(data: any, localeId?: string | any, extraData?: any): void;
+
+/**
+ * Format styles that can be used to represent numbers.
+ * @see {@link getLocaleNumberFormat}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated `getLocaleNumberFormat` is deprecated
+ */
+declare enum NumberFormatStyle {
+    Decimal = 0,
+    Percent = 1,
+    Currency = 2,
+    Scientific = 3
+}
+/**
+ * Plurality cases used for translating plurals to different languages.
+ *
+ * @see {@link NgPlural}
+ * @see {@link NgPluralCase}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated `getLocalePluralCase` is deprecated
+ */
+declare enum Plural {
+    Zero = 0,
+    One = 1,
+    Two = 2,
+    Few = 3,
+    Many = 4,
+    Other = 5
+}
+/**
+ * Context-dependant translation forms for strings.
+ * Typically the standalone version is for the nominative form of the word,
+ * and the format version is used for the genitive case.
+ * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated locale data getters are deprecated
+ */
+declare enum FormStyle {
+    Format = 0,
+    Standalone = 1
+}
+/**
+ * String widths available for translations.
+ * The specific character widths are locale-specific.
+ * Examples are given for the word "Sunday" in English.
+ *
+ * @publicApi
+ *
+ * @deprecated locale data getters are deprecated
+ */
+declare enum TranslationWidth {
+    /** 1 character for `en-US`. For example: 'S' */
+    Narrow = 0,
+    /** 3 characters for `en-US`. For example: 'Sun' */
+    Abbreviated = 1,
+    /** Full length for `en-US`. For example: "Sunday" */
+    Wide = 2,
+    /** 2 characters for `en-US`, For example: "Su" */
+    Short = 3
+}
+/**
+ * String widths available for date-time formats.
+ * The specific character widths are locale-specific.
+ * Examples are given for `en-US`.
+ *
+ * @see {@link getLocaleDateFormat}
+ * @see {@link getLocaleTimeFormat}
+ * @see {@link getLocaleDateTimeFormat}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ * @publicApi
+ *
+ * @deprecated 18.0
+ * Date locale data getters are deprecated
+ */
+declare enum FormatWidth {
+    /**
+     * For `en-US`, `'M/d/yy, h:mm a'`
+     * (Example: `6/15/15, 9:03 AM`)
+     */
+    Short = 0,
+    /**
+     * For `en-US`, `'MMM d, y, h:mm:ss a'`
+     * (Example: `Jun 15, 2015, 9:03:01 AM`)
+     */
+    Medium = 1,
+    /**
+     * For `en-US`, `'MMMM d, y, h:mm:ss a z'`
+     * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)
+     */
+    Long = 2,
+    /**
+     * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`
+     * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)
+     */
+    Full = 3
+}
+/**
+ * Symbols that can be used to replace placeholders in number patterns.
+ * Examples are based on `en-US` values.
+ *
+ * @see {@link getLocaleNumberSymbol}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated `getLocaleNumberSymbol` is deprecated
+ *
+ * @object-literal-as-enum
+ */
+declare const NumberSymbol: {
+    /**
+     * Decimal separator.
+     * For `en-US`, the dot character.
+     * Example: 2,345`.`67
+     */
+    readonly Decimal: 0;
+    /**
+     * Grouping separator, typically for thousands.
+     * For `en-US`, the comma character.
+     * Example: 2`,`345.67
+     */
+    readonly Group: 1;
+    /**
+     * List-item separator.
+     * Example: "one, two, and three"
+     */
+    readonly List: 2;
+    /**
+     * Sign for percentage (out of 100).
+     * Example: 23.4%
+     */
+    readonly PercentSign: 3;
+    /**
+     * Sign for positive numbers.
+     * Example: +23
+     */
+    readonly PlusSign: 4;
+    /**
+     * Sign for negative numbers.
+     * Example: -23
+     */
+    readonly MinusSign: 5;
+    /**
+     * Computer notation for exponential value (n times a power of 10).
+     * Example: 1.2E3
+     */
+    readonly Exponential: 6;
+    /**
+     * Human-readable format of exponential.
+     * Example: 1.2x103
+     */
+    readonly SuperscriptingExponent: 7;
+    /**
+     * Sign for permille (out of 1000).
+     * Example: 23.4‰
+     */
+    readonly PerMille: 8;
+    /**
+     * Infinity, can be used with plus and minus.
+     * Example: ∞, +∞, -∞
+     */
+    readonly Infinity: 9;
+    /**
+     * Not a number.
+     * Example: NaN
+     */
+    readonly NaN: 10;
+    /**
+     * Symbol used between time units.
+     * Example: 10:52
+     */
+    readonly TimeSeparator: 11;
+    /**
+     * Decimal separator for currency values (fallback to `Decimal`).
+     * Example: $2,345.67
+     */
+    readonly CurrencyDecimal: 12;
+    /**
+     * Group separator for currency values (fallback to `Group`).
+     * Example: $2,345.67
+     */
+    readonly CurrencyGroup: 13;
+};
+type NumberSymbol = (typeof NumberSymbol)[keyof typeof NumberSymbol];
+/**
+ * The value for each day of the week, based on the `en-US` locale
+ *
+ * @publicApi
+ *
+ * @deprecated Week locale getters are deprecated
+ */
+declare enum WeekDay {
+    Sunday = 0,
+    Monday = 1,
+    Tuesday = 2,
+    Wednesday = 3,
+    Thursday = 4,
+    Friday = 5,
+    Saturday = 6
+}
+/**
+ * Retrieves the locale ID from the currently loaded locale.
+ * The loaded locale could be, for example, a global one rather than a regional one.
+ * @param locale A locale code, such as `fr-FR`.
+ * @returns The locale code. For example, `fr`.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * This function serves no purpose when relying on the `Intl` API.
+ */
+declare function getLocaleId(locale: string): string;
+/**
+ * Retrieves day period strings for the given locale.
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @param formStyle The required grammatical form.
+ * @param width The required character width.
+ * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Use `Intl.DateTimeFormat` for date formating instead.
+ */
+declare function getLocaleDayPeriods(locale: string, formStyle: FormStyle, width: TranslationWidth): Readonly<[string, string]>;
+/**
+ * Retrieves days of the week for the given locale, using the Gregorian calendar.
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @param formStyle The required grammatical form.
+ * @param width The required character width.
+ * @returns An array of localized name strings.
+ * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Use `Intl.DateTimeFormat` for date formating instead.
+ */
+declare function getLocaleDayNames(locale: string, formStyle: FormStyle, width: TranslationWidth): ReadonlyArray<string>;
+/**
+ * Retrieves months of the year for the given locale, using the Gregorian calendar.
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @param formStyle The required grammatical form.
+ * @param width The required character width.
+ * @returns An array of localized name strings.
+ * For example,  `[January, February, ...]` for `en-US`.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Use `Intl.DateTimeFormat` for date formating instead.
+ */
+declare function getLocaleMonthNames(locale: string, formStyle: FormStyle, width: TranslationWidth): ReadonlyArray<string>;
+/**
+ * Retrieves Gregorian-calendar eras for the given locale.
+ * @param locale A locale code for the locale format rules to use.
+ * @param width The required character width.
+
+ * @returns An array of localized era strings.
+ * For example, `[AD, BC]` for `en-US`.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Use `Intl.DateTimeFormat` for date formating instead.
+ */
+declare function getLocaleEraNames(locale: string, width: TranslationWidth): Readonly<[string, string]>;
+/**
+ * Retrieves the first day of the week for the given locale.
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @returns A day index number, using the 0-based week-day index for `en-US`
+ * (Sunday = 0, Monday = 1, ...).
+ * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Intl's [`getWeekInfo`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) has partial support (Chromium M99 & Safari 17).
+ * You may want to rely on the following alternatives:
+ * - Libraries like [`Luxon`](https://moment.github.io/luxon/#/) rely on `Intl` but fallback on the ISO 8601 definition (monday) if `getWeekInfo` is not supported.
+ * - Other librairies like [`date-fns`](https://date-fns.org/), [`day.js`](https://day.js.org/en/) or [`weekstart`](https://www.npmjs.com/package/weekstart) library provide their own locale based data for the first day of the week.
+ */
+declare function getLocaleFirstDayOfWeek(locale: string): WeekDay;
+/**
+ * Range of week days that are considered the week-end for the given locale.
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @returns The range of day values, `[startDay, endDay]`.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Intl's [`getWeekInfo`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) has partial support (Chromium M99 & Safari 17).
+ * Libraries like [`Luxon`](https://moment.github.io/luxon/#/) rely on `Intl` but fallback on the ISO 8601 definition (Saturday+Sunday) if `getWeekInfo` is not supported .
+ */
+declare function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay];
+/**
+ * Retrieves a localized date-value formatting string.
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @param width The format type.
+ * @returns The localized formatting string.
+ * @see {@link FormatWidth}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Use `Intl.DateTimeFormat` for date formating instead.
+ */
+declare function getLocaleDateFormat(locale: string, width: FormatWidth): string;
+/**
+ * Retrieves a localized time-value formatting string.
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @param width The format type.
+ * @returns The localized formatting string.
+ * @see {@link FormatWidth}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+
+ * @publicApi
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Use `Intl.DateTimeFormat` for date formating instead.
+ */
+declare function getLocaleTimeFormat(locale: string, width: FormatWidth): string;
+/**
+ * Retrieves a localized date-time formatting string.
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @param width The format type.
+ * @returns The localized formatting string.
+ * @see {@link FormatWidth}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Use `Intl.DateTimeFormat` for date formating instead.
+ */
+declare function getLocaleDateTimeFormat(locale: string, width: FormatWidth): string;
+/**
+ * Retrieves a localized number symbol that can be used to replace placeholders in number formats.
+ * @param locale The locale code.
+ * @param symbol The symbol to localize. Must be one of `NumberSymbol`.
+ * @returns The character for the localized symbol.
+ * @see {@link NumberSymbol}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Use `Intl.NumberFormat` to format numbers instead.
+ */
+declare function getLocaleNumberSymbol(locale: string, symbol: NumberSymbol): string;
+/**
+ * Retrieves a number format for a given locale.
+ *
+ * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`
+ * when used to format the number 12345.678 could result in "12'345,678". That would happen if the
+ * grouping separator for your language is an apostrophe, and the decimal separator is a comma.
+ *
+ * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders
+ * that stand for the decimal separator, and so on, and are NOT real characters.
+ * You must NOT "translate" the placeholders. For example, don't change `.` to `,` even though in
+ * your language the decimal point is written with a comma. The symbols should be replaced by the
+ * local equivalents, using the appropriate `NumberSymbol` for your language.
+ *
+ * Here are the special characters used in number patterns:
+ *
+ * | Symbol | Meaning |
+ * |--------|---------|
+ * | . | Replaced automatically by the character used for the decimal point. |
+ * | , | Replaced by the "grouping" (thousands) separator. |
+ * | 0 | Replaced by a digit (or zero if there aren't enough digits). |
+ * | # | Replaced by a digit (or nothing if there aren't enough). |
+ * | ¤ | Replaced by a currency symbol, such as $ or USD. |
+ * | % | Marks a percent format. The % symbol may change position, but must be retained. |
+ * | E | Marks a scientific format. The E symbol may change position, but must be retained. |
+ * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)
+ * @returns The localized format string.
+ * @see {@link NumberFormatStyle}
+ * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Let `Intl.NumberFormat` determine the number format instead
+ */
+declare function getLocaleNumberFormat(locale: string, type: NumberFormatStyle): string;
+/**
+ * Retrieves the symbol used to represent the currency for the main country
+ * corresponding to a given locale. For example, '$' for `en-US`.
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @returns The localized symbol character,
+ * or `null` if the main country cannot be determined.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Use the `Intl` API to format a currency with from currency code
+ */
+declare function getLocaleCurrencySymbol(locale: string): string | null;
+/**
+ * Retrieves the name of the currency for the main country corresponding
+ * to a given locale. For example, 'US Dollar' for `en-US`.
+ * @param locale A locale code for the locale format rules to use.
+ * @returns The currency name,
+ * or `null` if the main country cannot be determined.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Use the `Intl` API to format a currency with from currency code
+ */
+declare function getLocaleCurrencyName(locale: string): string | null;
+/**
+ * Retrieves the default currency code for the given locale.
+ *
+ * The default is defined as the first currency which is still in use.
+ *
+ * @param locale The code of the locale whose currency code we want.
+ * @returns The code of the default currency for the given locale.
+ *
+ * @publicApi
+ *
+ * @deprecated We recommend you create a map of locale to ISO 4217 currency codes.
+ * Time relative currency data is provided by the CLDR project. See https://www.unicode.org/cldr/charts/44/supplemental/detailed_territory_currency_information.html
+ */
+declare function getLocaleCurrencyCode(locale: string): string | null;
+/**
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Use `Intl.PluralRules` instead
+ */
+declare const getLocalePluralCase: (locale: string) => (value: number) => Plural;
+/**
+ * Retrieves locale-specific rules used to determine which day period to use
+ * when more than one period is defined for a locale.
+ *
+ * There is a rule for each defined day period. The
+ * first rule is applied to the first day period and so on.
+ * Fall back to AM/PM when no rules are available.
+ *
+ * A rule can specify a period as time range, or as a single time value.
+ *
+ * This functionality is only available when you have loaded the full locale data.
+ * See the ["I18n guide"](guide/i18n/format-data-locale).
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @returns The rules for the locale, a single time value or array of *from-time, to-time*,
+ * or null if no periods are available.
+ *
+ * @see {@link getLocaleExtraDayPeriods}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * Let `Intl.DateTimeFormat` determine the day period instead.
+ */
+declare function getLocaleExtraDayPeriodRules(locale: string): (Time | [Time, Time])[];
+/**
+ * Retrieves locale-specific day periods, which indicate roughly how a day is broken up
+ * in different languages.
+ * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.
+ *
+ * This functionality is only available when you have loaded the full locale data.
+ * See the ["I18n guide"](guide/i18n/format-data-locale).
+ *
+ * @param locale A locale code for the locale format rules to use.
+ * @param formStyle The required grammatical form.
+ * @param width The required character width.
+ * @returns The translated day-period strings.
+ * @see {@link getLocaleExtraDayPeriodRules}
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * To extract a day period use `Intl.DateTimeFormat` with the `dayPeriod` option instead.
+ */
+declare function getLocaleExtraDayPeriods(locale: string, formStyle: FormStyle, width: TranslationWidth): string[];
+/**
+ * Retrieves the writing direction of a specified locale
+ * @param locale A locale code for the locale format rules to use.
+ * @publicApi
+ * @returns 'rtl' or 'ltr'
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * For dates and numbers, let `Intl.DateTimeFormat()` and `Intl.NumberFormat()` determine the writing direction.
+ * The `Intl` alternative [`getTextInfo`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo).
+ * has only partial support (Chromium M99 & Safari 17).
+ * 3rd party alternatives like [`rtl-detect`](https://www.npmjs.com/package/rtl-detect) can work around this issue.
+ */
+declare function getLocaleDirection(locale: string): 'ltr' | 'rtl';
+/**
+ * Represents a time value with hours and minutes.
+ *
+ * @publicApi
+ *
+ * @deprecated Locale date getters are deprecated
+ */
+type Time = {
+    hours: number;
+    minutes: number;
+};
+/**
+ * Retrieves the currency symbol for a given currency code.
+ *
+ * For example, for the default `en-US` locale, the code `USD` can
+ * be represented by the narrow symbol `$` or the wide symbol `US$`.
+ *
+ * @param code The currency code.
+ * @param format The format, `wide` or `narrow`.
+ * @param locale A locale code for the locale format rules to use.
+ *
+ * @returns The symbol, or the currency code if no symbol is available.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * You can use `Intl.NumberFormat().formatToParts()` to extract the currency symbol.
+ * For example: `Intl.NumberFormat('en', {style:'currency', currency: 'USD'}).formatToParts().find(part => part.type === 'currency').value`
+ * returns `$` for USD currency code in the `en` locale.
+ * Note: `US$` is a currency symbol for the `en-ca` locale but not the `en-us` locale.
+ */
+declare function getCurrencySymbol(code: string, format: 'wide' | 'narrow', locale?: string): string;
+/**
+ * Reports the number of decimal digits for a given currency.
+ * The value depends upon the presence of cents in that particular currency.
+ *
+ * @param code The currency code.
+ * @returns The number of decimal digits, typically 0 or 2.
+ * @see [Internationalization (i18n) Guide](guide/i18n)
+ *
+ * @publicApi
+ *
+ * @deprecated Angular recommends relying on the `Intl` API for i18n.
+ * This function should not be used anymore. Let `Intl.NumberFormat` determine the number of digits to display for the currency
+ */
+declare function getNumberOfCurrencyDigits(code: string): number;
+
+declare function parseCookieValue(cookieStr: string, name: string): string | null;
+
+declare const PLATFORM_BROWSER_ID = "browser";
+declare const PLATFORM_SERVER_ID = "server";
+/**
+ * Returns whether a platform id represents a browser platform.
+ * @publicApi
+ */
+declare function isPlatformBrowser(platformId: Object): boolean;
+/**
+ * Returns whether a platform id represents a server platform.
+ * @publicApi
+ */
+declare function isPlatformServer(platformId: Object): boolean;
+
+/**
+ * @module
+ * @description
+ * Entry point for all public APIs of the common package.
+ */
+
+/**
+ * @publicApi
+ */
+declare const VERSION: Version;
+
+/**
+ * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
+ *
+ * @publicApi
+ */
+declare abstract class ViewportScroller {
+    /** @nocollapse */
+    static ɵprov: unknown;
+    /**
+     * Configures the top offset used when scrolling to an anchor.
+     * @param offset A position in screen coordinates (a tuple with x and y values)
+     * or a function that returns the top offset position.
+     *
+     */
+    abstract setOffset(offset: [number, number] | (() => [number, number])): void;
+    /**
+     * Retrieves the current scroll position.
+     * @returns A position in screen coordinates (a tuple with x and y values).
+     */
+    abstract getScrollPosition(): [number, number];
+    /**
+     * Scrolls to a specified position.
+     * @param position A position in screen coordinates (a tuple with x and y values).
+     */
+    abstract scrollToPosition(position: [number, number], options?: ScrollOptions): void;
+    /**
+     * Scrolls to an anchor element.
+     * @param anchor The ID of the anchor element.
+     */
+    abstract scrollToAnchor(anchor: string, options?: ScrollOptions): void;
+    /**
+     * Disables automatic scroll restoration provided by the browser.
+     * See also [window.history.scrollRestoration
+     * info](https://developers.google.com/web/updates/2015/09/history-api-scroll-restoration).
+     */
+    abstract setHistoryScrollRestoration(scrollRestoration: 'auto' | 'manual'): void;
+}
+/**
+ * Provides an empty implementation of the viewport scroller.
+ */
+declare class NullViewportScroller implements ViewportScroller {
+    /**
+     * Empty implementation
+     */
+    setOffset(offset: [number, number] | (() => [number, number])): void;
+    /**
+     * Empty implementation
+     */
+    getScrollPosition(): [number, number];
+    /**
+     * Empty implementation
+     */
+    scrollToPosition(position: [number, number]): void;
+    /**
+     * Empty implementation
+     */
+    scrollToAnchor(anchor: string): void;
+    /**
+     * Empty implementation
+     */
+    setHistoryScrollRestoration(scrollRestoration: 'auto' | 'manual'): void;
+}
+
+/**
+ * Function that generates an ImageLoader for [Cloudflare Image
+ * Resizing](https://developers.cloudflare.com/images/image-resizing/) and turns it into an Angular
+ * provider. Note: Cloudflare has multiple image products - this provider is specifically for
+ * Cloudflare Image Resizing; it will not work with Cloudflare Images or Cloudflare Polish.
+ *
+ * @param path Your domain name, e.g. https://mysite.com
+ * @returns Provider that provides an ImageLoader function
+ *
+ * @publicApi
+ */
+declare const provideCloudflareLoader: (path: string) => Provider[];
+
+/**
+ * Config options recognized by the image loader function.
+ *
+ * @see {@link ImageLoader}
+ * @see {@link NgOptimizedImage}
+ * @publicApi
+ */
+interface ImageLoaderConfig {
+    /**
+     * Image file name to be added to the image request URL.
+     */
+    src: string;
+    /**
+     * Width of the requested image (to be used when generating srcset).
+     */
+    width?: number;
+    /**
+     * Whether the loader should generate a URL for a small image placeholder instead of a full-sized
+     * image.
+     */
+    isPlaceholder?: boolean;
+    /**
+     * Additional user-provided parameters for use by the ImageLoader.
+     */
+    loaderParams?: {
+        [key: string]: any;
+    };
+}
+/**
+ * Represents an image loader function. Image loader functions are used by the
+ * NgOptimizedImage directive to produce full image URL based on the image name and its width.
+ *
+ * @publicApi
+ */
+type ImageLoader = (config: ImageLoaderConfig) => string;
+/**
+ * Injection token that configures the image loader function.
+ *
+ * @see {@link ImageLoader}
+ * @see {@link NgOptimizedImage}
+ * @publicApi
+ */
+declare const IMAGE_LOADER: InjectionToken<ImageLoader>;
+
+/**
+ * Function that generates an ImageLoader for Cloudinary and turns it into an Angular provider.
+ *
+ * @param path Base URL of your Cloudinary images
+ * This URL should match one of the following formats:
+ * https://res.cloudinary.com/mysite
+ * https://mysite.cloudinary.com
+ * https://subdomain.mysite.com
+ * @returns Set of providers to configure the Cloudinary loader.
+ *
+ * @publicApi
+ */
+declare const provideCloudinaryLoader: (path: string) => Provider[];
+
+/**
+ * Function that generates an ImageLoader for ImageKit and turns it into an Angular provider.
+ *
+ * @param path Base URL of your ImageKit images
+ * This URL should match one of the following formats:
+ * https://ik.imagekit.io/myaccount
+ * https://subdomain.mysite.com
+ * @returns Set of providers to configure the ImageKit loader.
+ *
+ * @publicApi
+ */
+declare const provideImageKitLoader: (path: string) => Provider[];
+
+/**
+ * Function that generates an ImageLoader for Imgix and turns it into an Angular provider.
+ *
+ * @param path path to the desired Imgix origin,
+ * e.g. https://somepath.imgix.net or https://images.mysite.com
+ * @returns Set of providers to configure the Imgix loader.
+ *
+ * @publicApi
+ */
+declare const provideImgixLoader: (path: string) => Provider[];
+
+/**
+ * Function that generates an ImageLoader for Netlify and turns it into an Angular provider.
+ *
+ * @param path optional URL of the desired Netlify site. Defaults to the current site.
+ * @returns Set of providers to configure the Netlify loader.
+ *
+ * @publicApi
+ */
+declare function provideNetlifyLoader(path?: string): Provider[];
+
+/**
+ * Config options used in rendering placeholder images.
+ *
+ * @see {@link NgOptimizedImage}
+ * @publicApi
+ */
+interface ImagePlaceholderConfig {
+    blur?: boolean;
+}
+/**
+ * Directive that improves image loading performance by enforcing best practices.
+ *
+ * `NgOptimizedImage` ensures that the loading of the Largest Contentful Paint (LCP) image is
+ * prioritized by:
+ * - Automatically setting the `fetchpriority` attribute on the `<img>` tag
+ * - Lazy loading non-priority images by default
+ * - Automatically generating a preconnect link tag in the document head
+ *
+ * In addition, the directive:
+ * - Generates appropriate asset URLs if a corresponding `ImageLoader` function is provided
+ * - Automatically generates a srcset
+ * - Requires that `width` and `height` are set
+ * - Warns if `width` or `height` have been set incorrectly
+ * - Warns if the image will be visually distorted when rendered
+ *
+ * @usageNotes
+ * The `NgOptimizedImage` directive is marked as [standalone](guide/components/importing) and can
+ * be imported directly.
+ *
+ * Follow the steps below to enable and use the directive:
+ * 1. Import it into the necessary NgModule or a standalone Component.
+ * 2. Optionally provide an `ImageLoader` if you use an image hosting service.
+ * 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.
+ * Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image
+ * download.
+ *
+ * Step 1: import the `NgOptimizedImage` directive.
+ *
+ * ```ts
+ * import { NgOptimizedImage } from '@angular/common';
+ *
+ * // Include it into the necessary NgModule
+ * @NgModule({
+ *   imports: [NgOptimizedImage],
+ * })
+ * class AppModule {}
+ *
+ * // ... or a standalone Component
+ * @Component({
+ *   imports: [NgOptimizedImage],
+ * })
+ * class MyStandaloneComponent {}
+ * ```
+ *
+ * Step 2: configure a loader.
+ *
+ * To use the **default loader**: no additional code changes are necessary. The URL returned by the
+ * generic loader will always match the value of "src". In other words, this loader applies no
+ * transformations to the resource URL and the value of the `ngSrc` attribute will be used as is.
+ *
+ * To use an existing loader for a **third-party image service**: add the provider factory for your
+ * chosen service to the `providers` array. In the example below, the Imgix loader is used:
+ *
+ * ```ts
+ * import {provideImgixLoader} from '@angular/common';
+ *
+ * // Call the function and add the result to the `providers` array:
+ * providers: [
+ *   provideImgixLoader("https://my.base.url/"),
+ * ],
+ * ```
+ *
+ * The `NgOptimizedImage` directive provides the following functions:
+ * - `provideCloudflareLoader`
+ * - `provideCloudinaryLoader`
+ * - `provideImageKitLoader`
+ * - `provideImgixLoader`
+ *
+ * If you use a different image provider, you can create a custom loader function as described
+ * below.
+ *
+ * To use a **custom loader**: provide your loader function as a value for the `IMAGE_LOADER` DI
+ * token.
+ *
+ * ```ts
+ * import {IMAGE_LOADER, ImageLoaderConfig} from '@angular/common';
+ *
+ * // Configure the loader using the `IMAGE_LOADER` token.
+ * providers: [
+ *   {
+ *      provide: IMAGE_LOADER,
+ *      useValue: (config: ImageLoaderConfig) => {
+ *        return `https://example.com/${config.src}-${config.width}.jpg`;
+ *      }
+ *   },
+ * ],
+ * ```
+ *
+ * Step 3: update `<img>` tags in templates to use `ngSrc` instead of `src`.
+ *
+ * ```html
+ * <img ngSrc="logo.png" width="200" height="100">
+ * ```
+ *
+ * @publicApi
+ */
+declare class NgOptimizedImage implements OnInit, OnChanges {
+    private imageLoader;
+    private config;
+    private renderer;
+    private imgElement;
+    private injector;
+    private lcpObserver?;
+    /**
+     * Calculate the rewritten `src` once and store it.
+     * This is needed to avoid repetitive calculations and make sure the directive cleanup in the
+     * `ngOnDestroy` does not rely on the `IMAGE_LOADER` logic (which in turn can rely on some other
+     * instance that might be already destroyed).
+     */
+    private _renderedSrc;
+    /**
+     * Name of the source image.
+     * Image name will be processed by the image loader and the final URL will be applied as the `src`
+     * property of the image.
+     */
+    ngSrc: string;
+    /**
+     * A comma separated list of width or density descriptors.
+     * The image name will be taken from `ngSrc` and combined with the list of width or density
+     * descriptors to generate the final `srcset` property of the image.
+     *
+     * Example:
+     * ```html
+     * <img ngSrc="hello.jpg" ngSrcset="100w, 200w" />  =>
+     * <img src="path/hello.jpg" srcset="path/hello.jpg?w=100 100w, path/hello.jpg?w=200 200w" />
+     * ```
+     */
+    ngSrcset: string;
+    /**
+     * The base `sizes` attribute passed through to the `<img>` element.
+     * Providing sizes causes the image to create an automatic responsive srcset.
+     */
+    sizes?: string;
+    /**
+     * For responsive images: the intrinsic width of the image in pixels.
+     * For fixed size images: the desired rendered width of the image in pixels.
+     */
+    width: number | undefined;
+    /**
+     * For responsive images: the intrinsic height of the image in pixels.
+     * For fixed size images: the desired rendered height of the image in pixels.
+     */
+    height: number | undefined;
+    /**
+     * The desired decoding behavior for the image. Defaults to `auto`
+     * if not explicitly set, matching native browser behavior.
+     *
+     * Use `async` to decode the image off the main thread (non-blocking),
+     * `sync` for immediate decoding (blocking), or `auto` to let the
+     * browser decide the optimal strategy.
+     *
+     * [Spec](https://html.spec.whatwg.org/multipage/images.html#image-decoding-hint)
+     */
+    decoding?: 'sync' | 'async' | 'auto';
+    /**
+     * The desired loading behavior (lazy, eager, or auto). Defaults to `lazy`,
+     * which is recommended for most images.
+     *
+     * Warning: Setting images as loading="eager" or loading="auto" marks them
+     * as non-priority images and can hurt loading performance. For images which
+     * may be the LCP element, use the `priority` attribute instead of `loading`.
+     */
+    loading?: 'lazy' | 'eager' | 'auto';
+    /**
+     * Indicates whether this image should have a high priority.
+     */
+    priority: boolean;
+    /**
+     * Data to pass through to custom loaders.
+     */
+    loaderParams?: {
+        [key: string]: any;
+    };
+    /**
+     * Disables automatic srcset generation for this image.
+     */
+    disableOptimizedSrcset: boolean;
+    /**
+     * Sets the image to "fill mode", which eliminates the height/width requirement and adds
+     * styles such that the image fills its containing element.
+     */
+    fill: boolean;
+    /**
+     * A URL or data URL for an image to be used as a placeholder while this image loads.
+     */
+    placeholder?: string | boolean;
+    /**
+     * Configuration object for placeholder settings. Options:
+     *   * blur: Setting this to false disables the automatic CSS blur.
+     */
+    placeholderConfig?: ImagePlaceholderConfig;
+    constructor();
+    /** @docs-private */
+    ngOnInit(): void;
+    private setHostAttributes;
+    /** @docs-private */
+    ngOnChanges(changes: SimpleChanges): void;
+    private callImageLoader;
+    private getLoadingBehavior;
+    private getFetchPriority;
+    private getDecoding;
+    private getRewrittenSrc;
+    private getRewrittenSrcset;
+    private getAutomaticSrcset;
+    private getResponsiveSrcset;
+    private updateSrcAndSrcset;
+    private getFixedSrcset;
+    private shouldGenerateAutomaticSrcset;
+    /**
+     * Returns an image url formatted for use with the CSS background-image property. Expects one of:
+     * * A base64 encoded image, which is wrapped and passed through.
+     * * A boolean. If true, calls the image loader to generate a small placeholder url.
+     */
+    protected generatePlaceholder(placeholderInput: string | boolean): string | boolean | null;
+    /**
+     * Determines if blur should be applied, based on an optional boolean
+     * property `blur` within the optional configuration object `placeholderConfig`.
+     */
+    protected shouldBlurPlaceholder(placeholderConfig?: ImagePlaceholderConfig): boolean;
+    private removePlaceholderOnLoad;
+    private setHostAttribute;
+    static ɵfac: i0.ɵɵFactoryDeclaration<NgOptimizedImage, never>;
+    static ɵdir: i0.ɵɵDirectiveDeclaration<NgOptimizedImage, "img[ngSrc]", never, { "ngSrc": { "alias": "ngSrc"; "required": true; }; "ngSrcset": { "alias": "ngSrcset"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "decoding": { "alias": "decoding"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "priority": { "alias": "priority"; "required": false; }; "loaderParams": { "alias": "loaderParams"; "required": false; }; "disableOptimizedSrcset": { "alias": "disableOptimizedSrcset"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "placeholderConfig": { "alias": "placeholderConfig"; "required": false; }; "src": { "alias": "src"; "required": false; }; "srcset": { "alias": "srcset"; "required": false; }; }, {}, never, never, true, never>;
+    static ngAcceptInputType_ngSrc: string | i0.ɵSafeValue;
+    static ngAcceptInputType_width: unknown;
+    static ngAcceptInputType_height: unknown;
+    static ngAcceptInputType_priority: unknown;
+    static ngAcceptInputType_disableOptimizedSrcset: unknown;
+    static ngAcceptInputType_fill: unknown;
+    static ngAcceptInputType_placeholder: boolean | string;
+}
+
+/**
+ * Injection token to configure which origins should be excluded
+ * from the preconnect checks. It can either be a single string or an array of strings
+ * to represent a group of origins, for example:
+ *
+ * ```ts
+ *  {provide: PRECONNECT_CHECK_BLOCKLIST, useValue: 'https://your-domain.com'}
+ * ```
+ *
+ * or:
+ *
+ * ```ts
+ *  {provide: PRECONNECT_CHECK_BLOCKLIST,
+ *   useValue: ['https://your-domain-1.com', 'https://your-domain-2.com']}
+ * ```
+ *
+ * @publicApi
+ */
+declare const PRECONNECT_CHECK_BLOCKLIST: InjectionToken<(string | string[])[]>;
+
+/**
+ * Normalizes URL parameters by prepending with `?` if needed.
+ *
+ * @param  params String of URL parameters.
+ *
+ * @returns The normalized URL parameters string.
+ */
+declare function normalizeQueryParams(params: string): string;
+
+export { FormStyle, FormatWidth, HashLocationStrategy, IMAGE_LOADER, LocationChangeListener, LocationStrategy, NgOptimizedImage, NumberFormatStyle, NumberSymbol, PRECONNECT_CHECK_BLOCKLIST, PlatformLocation, Plural, TranslationWidth, VERSION, ViewportScroller, WeekDay, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, provideNetlifyLoader, registerLocaleData, DomAdapter as ɵDomAdapter, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PlatformNavigation as ɵPlatformNavigation, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, parseCookieValue as ɵparseCookieValue, setRootDomAdapter as ɵsetRootDomAdapter };
+export type { ImageLoader, ImageLoaderConfig, ImagePlaceholderConfig, Time };

+ 22 - 0
node_modules/@angular/common/locales/af-NA.d.ts

@@ -0,0 +1,22 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    BYN: (string | undefined)[];
+    CAD: (string | undefined)[];
+    JPY: string[];
+    MXN: (string | undefined)[];
+    NAD: string[];
+    PHP: (string | undefined)[];
+    RON: (string | undefined)[];
+    THB: string[];
+    TWD: string[];
+    USD: (string | undefined)[];
+    ZAR: string[];
+} | undefined)[];
+export default _default;

+ 17 - 0
node_modules/@angular/common/locales/af-NA.js

@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+// THIS CODE IS GENERATED - DO NOT MODIFY.
+const u = undefined;
+function plural(val) {
+    const n = val;
+    if (n === 1)
+        return 1;
+    return 5;
+}
+export default ["af-NA", [["v", "n"], ["vm.", "nm."], u], u, [["S", "M", "D", "W", "D", "V", "S"], ["So.", "Ma.", "Di.", "Wo.", "Do.", "Vr.", "Sa."], ["Sondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrydag", "Saterdag"], ["So.", "Ma.", "Di.", "Wo.", "Do.", "Vr.", "Sa."]], u, [["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], ["Jan.", "Feb.", "Mrt.", "Apr.", "Mei", "Jun.", "Jul.", "Aug.", "Sep.", "Okt.", "Nov.", "Des."], ["Januarie", "Februarie", "Maart", "April", "Mei", "Junie", "Julie", "Augustus", "September", "Oktober", "November", "Desember"]], u, [["v.C.", "n.C."], u, ["voor Christus", "na Christus"]], 1, [6, 0], ["y-MM-dd", "dd MMM y", "dd MMMM y", "EEEE dd MMMM y"], ["h:mm a", "h:mm:ss a", "h:mm:ss a z", "h:mm:ss a zzzz"], ["{1} {0}", u, u, u], [",", " ", ";", "%", "+", "-", "E", "×", "‰", "∞", "NaN", ":"], ["#,##0.###", "#,##0%", "¤#,##0.00", "#E0"], "ZAR", "R", "Suid-Afrikaanse rand", { "BYN": [u, "р."], "CAD": [u, "$"], "JPY": ["JP¥", "¥"], "MXN": [u, "$"], "NAD": ["$"], "PHP": [u, "₱"], "RON": [u, "leu"], "THB": ["฿"], "TWD": ["NT$"], "USD": [u, "$"], "ZAR": ["R"] }, "ltr", plural];
+//# sourceMappingURL=af-NA.js.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/af-NA.js.map


+ 21 - 0
node_modules/@angular/common/locales/af.d.ts

@@ -0,0 +1,21 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    BYN: (string | undefined)[];
+    CAD: (string | undefined)[];
+    JPY: string[];
+    MXN: (string | undefined)[];
+    PHP: (string | undefined)[];
+    RON: (string | undefined)[];
+    THB: string[];
+    TWD: string[];
+    USD: (string | undefined)[];
+    ZAR: string[];
+} | undefined)[];
+export default _default;

+ 17 - 0
node_modules/@angular/common/locales/af.js

@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+// THIS CODE IS GENERATED - DO NOT MODIFY.
+const u = undefined;
+function plural(val) {
+    const n = val;
+    if (n === 1)
+        return 1;
+    return 5;
+}
+export default ["af", [["v", "n"], ["vm.", "nm."], u], u, [["S", "M", "D", "W", "D", "V", "S"], ["So.", "Ma.", "Di.", "Wo.", "Do.", "Vr.", "Sa."], ["Sondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrydag", "Saterdag"], ["So.", "Ma.", "Di.", "Wo.", "Do.", "Vr.", "Sa."]], u, [["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"], ["Jan.", "Feb.", "Mrt.", "Apr.", "Mei", "Jun.", "Jul.", "Aug.", "Sep.", "Okt.", "Nov.", "Des."], ["Januarie", "Februarie", "Maart", "April", "Mei", "Junie", "Julie", "Augustus", "September", "Oktober", "November", "Desember"]], u, [["v.C.", "n.C."], u, ["voor Christus", "na Christus"]], 0, [6, 0], ["y-MM-dd", "dd MMM y", "dd MMMM y", "EEEE dd MMMM y"], ["HH:mm", "HH:mm:ss", "HH:mm:ss z", "HH:mm:ss zzzz"], ["{1} {0}", u, u, u], [",", " ", ";", "%", "+", "-", "E", "×", "‰", "∞", "NaN", ":"], ["#,##0.###", "#,##0%", "¤#,##0.00", "#E0"], "ZAR", "R", "Suid-Afrikaanse rand", { "BYN": [u, "р."], "CAD": [u, "$"], "JPY": ["JP¥", "¥"], "MXN": [u, "$"], "PHP": [u, "₱"], "RON": [u, "leu"], "THB": ["฿"], "TWD": ["NT$"], "USD": [u, "$"], "ZAR": ["R"] }, "ltr", plural];
+//# sourceMappingURL=af.js.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/af.js.map


+ 13 - 0
node_modules/@angular/common/locales/agq.d.ts

@@ -0,0 +1,13 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    JPY: string[];
+    USD: string[];
+} | undefined)[];
+export default _default;

+ 15 - 0
node_modules/@angular/common/locales/agq.js

@@ -0,0 +1,15 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+// THIS CODE IS GENERATED - DO NOT MODIFY.
+const u = undefined;
+function plural(val) {
+    const n = val;
+    return 5;
+}
+export default ["agq", [["a.g", "a.k"], u, u], u, [["n", "k", "g", "t", "u", "g", "d"], ["nts", "kpa", "ghɔ", "tɔm", "ume", "ghɨ", "dzk"], ["tsuʔntsɨ", "tsuʔukpà", "tsuʔughɔe", "tsuʔutɔ̀mlò", "tsuʔumè", "tsuʔughɨ̂m", "tsuʔndzɨkɔʔɔ"], ["nts", "kpa", "ghɔ", "tɔm", "ume", "ghɨ", "dzk"]], u, [["n", "k", "t", "t", "s", "z", "k", "f", "d", "l", "c", "f"], ["nùm", "kɨz", "tɨd", "taa", "see", "nzu", "dum", "fɔe", "dzu", "lɔm", "kaa", "fwo"], ["ndzɔ̀ŋɔ̀nùm", "ndzɔ̀ŋɔ̀kƗ̀zùʔ", "ndzɔ̀ŋɔ̀tƗ̀dʉ̀ghà", "ndzɔ̀ŋɔ̀tǎafʉ̄ghā", "ndzɔ̀ŋèsèe", "ndzɔ̀ŋɔ̀nzùghò", "ndzɔ̀ŋɔ̀dùmlo", "ndzɔ̀ŋɔ̀kwîfɔ̀e", "ndzɔ̀ŋɔ̀tƗ̀fʉ̀ghàdzughù", "ndzɔ̀ŋɔ̀ghǔuwelɔ̀m", "ndzɔ̀ŋɔ̀chwaʔàkaa wo", "ndzɔ̀ŋèfwòo"]], u, [["SK", "BK"], u, ["Sěe Kɨ̀lesto", "Bǎa Kɨ̀lesto"]], 1, [6, 0], ["d/M/y", "d MMM, y", "d MMMM y", "EEEE d MMMM y"], ["HH:mm", "HH:mm:ss", "HH:mm:ss z", "HH:mm:ss zzzz"], ["{1} {0}", u, u, u], [",", " ", ";", "%", "+", "-", "E", "×", "‰", "∞", "NaN", ":"], ["#,##0.###", "#,##0%", "#,##0.00¤", "#E0"], "XAF", "FCFA", "CFA Fàlâŋ BEAC", { "JPY": ["JP¥", "¥"], "USD": ["US$", "$"] }, "ltr", plural];
+//# sourceMappingURL=agq.js.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/agq.js.map


+ 14 - 0
node_modules/@angular/common/locales/ak.d.ts

@@ -0,0 +1,14 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    GHS: string[];
+    JPY: string[];
+    USD: string[];
+} | undefined)[];
+export default _default;

+ 17 - 0
node_modules/@angular/common/locales/ak.js

@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+// THIS CODE IS GENERATED - DO NOT MODIFY.
+const u = undefined;
+function plural(val) {
+    const n = val;
+    if (n === Math.floor(n) && (n >= 0 && n <= 1))
+        return 1;
+    return 5;
+}
+export default ["ak", [["AN", "EW"], u, u], u, [["K", "D", "B", "W", "Y", "F", "M"], ["Kwe", "Dwo", "Ben", "Wuk", "Yaw", "Fia", "Mem"], ["Kwesida", "Dwowda", "Benada", "Wukuda", "Yawda", "Fida", "Memeneda"], ["Kwe", "Dwo", "Ben", "Wuk", "Yaw", "Fia", "Mem"]], u, [["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], ["S-Ɔ", "K-Ɔ", "E-Ɔ", "E-O", "E-K", "O-A", "A-K", "D-Ɔ", "F-Ɛ", "Ɔ-A", "Ɔ-O", "M-Ɔ"], ["Sanda-Ɔpɛpɔn", "Kwakwar-Ɔgyefuo", "Ebɔw-Ɔbenem", "Ebɔbira-Oforisuo", "Esusow Aketseaba-Kɔtɔnimba", "Obirade-Ayɛwohomumu", "Ayɛwoho-Kitawonsa", "Difuu-Ɔsandaa", "Fankwa-Ɛbɔ", "Ɔbɛsɛ-Ahinime", "Ɔberɛfɛw-Obubuo", "Mumu-Ɔpɛnimba"]], u, [["AK", "KE"], u, ["Ansa Kristo", "Kristo Ekyiri"]], 1, [6, 0], ["yy/MM/dd", "y MMM d", "y MMMM d", "EEEE, y MMMM dd"], ["h:mm a", "h:mm:ss a", "h:mm:ss a z", "h:mm:ss a zzzz"], ["{1} {0}", u, u, u], [".", ",", ";", "%", "+", "-", "E", "×", "‰", "∞", "NaN", ":"], ["#,##0.###", "#,##0%", "¤#,##0.00", "#E0"], "GHS", "GH₵", "Ghana Sidi", { "GHS": ["GH₵"], "JPY": ["JP¥", "¥"], "USD": ["US$", "$"] }, "ltr", plural];
+//# sourceMappingURL=ak.js.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ak.js.map


+ 20 - 0
node_modules/@angular/common/locales/am.d.ts

@@ -0,0 +1,20 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AUD: string[];
+    BYN: (string | undefined)[];
+    CNH: string[];
+    ETB: string[];
+    JPY: string[];
+    PHP: (string | undefined)[];
+    THB: string[];
+    TWD: string[];
+    USD: string[];
+} | undefined)[];
+export default _default;

+ 17 - 0
node_modules/@angular/common/locales/am.js

@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+// THIS CODE IS GENERATED - DO NOT MODIFY.
+const u = undefined;
+function plural(val) {
+    const n = val, i = Math.floor(Math.abs(val));
+    if (i === 0 || n === 1)
+        return 1;
+    return 5;
+}
+export default ["am", [["ጠ", "ከ"], ["ጥዋት", "ከሰዓት"], u], u, [["እ", "ሰ", "ማ", "ረ", "ሐ", "ዓ", "ቅ"], ["እሑድ", "ሰኞ", "ማክሰ", "ረቡዕ", "ሐሙስ", "ዓርብ", "ቅዳሜ"], ["እሑድ", "ሰኞ", "ማክሰኞ", "ረቡዕ", "ሐሙስ", "ዓርብ", "ቅዳሜ"], ["እ", "ሰ", "ማ", "ረ", "ሐ", "ዓ", "ቅ"]], u, [["ጃ", "ፌ", "ማ", "ኤ", "ሜ", "ጁ", "ጁ", "ኦ", "ሴ", "ኦ", "ኖ", "ዲ"], ["ጃንዩ", "ፌብሩ", "ማርች", "ኤፕሪ", "ሜይ", "ጁን", "ጁላይ", "ኦገስ", "ሴፕቴ", "ኦክቶ", "ኖቬም", "ዲሴም"], ["ጃንዩወሪ", "ፌብሩወሪ", "ማርች", "ኤፕሪል", "ሜይ", "ጁን", "ጁላይ", "ኦገስት", "ሴፕቴምበር", "ኦክቶበር", "ኖቬምበር", "ዲሴምበር"]], u, [["ዓ/ዓ", "ዓ/ም"], u, ["ዓመተ ዓለም", "ዓመተ ምሕረት"]], 0, [6, 0], ["dd/MM/y", "d MMM y", "d MMMM y", "y MMMM d, EEEE"], ["h:mm a", "h:mm:ss a", "h:mm:ss a z", "h:mm:ss a zzzz"], ["{1} {0}", u, u, u], [".", ",", ";", "%", "+", "-", "E", "×", "‰", "∞", "NaN", ":"], ["#,##0.###", "#,##0%", "¤#,##0.00", "#E0"], "ETB", "ብር", "የኢትዮጵያ ብር", { "AUD": ["AU$", "$"], "BYN": [u, "р."], "CNH": ["የቻይና ዩዋን"], "ETB": ["ብር"], "JPY": ["JP¥", "¥"], "PHP": [u, "₱"], "THB": ["฿"], "TWD": ["NT$"], "USD": ["US$", "$"] }, "ltr", plural];
+//# sourceMappingURL=am.js.map

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/am.js.map


+ 62 - 0
node_modules/@angular/common/locales/ar-AE.d.ts

@@ -0,0 +1,62 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-AE.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-AE.js.map


+ 63 - 0
node_modules/@angular/common/locales/ar-BH.d.ts

@@ -0,0 +1,63 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-BH.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-BH.js.map


+ 64 - 0
node_modules/@angular/common/locales/ar-DJ.d.ts

@@ -0,0 +1,64 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DJF: string[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-DJ.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-DJ.js.map


+ 63 - 0
node_modules/@angular/common/locales/ar-DZ.d.ts

@@ -0,0 +1,63 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-DZ.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-DZ.js.map


+ 63 - 0
node_modules/@angular/common/locales/ar-EG.d.ts

@@ -0,0 +1,63 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-EG.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-EG.js.map


+ 63 - 0
node_modules/@angular/common/locales/ar-EH.d.ts

@@ -0,0 +1,63 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-EH.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-EH.js.map


+ 64 - 0
node_modules/@angular/common/locales/ar-ER.d.ts

@@ -0,0 +1,64 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    ERN: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-ER.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-ER.js.map


+ 63 - 0
node_modules/@angular/common/locales/ar-IL.d.ts

@@ -0,0 +1,63 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-IL.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-IL.js.map


+ 63 - 0
node_modules/@angular/common/locales/ar-IQ.d.ts

@@ -0,0 +1,63 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-IQ.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-IQ.js.map


+ 63 - 0
node_modules/@angular/common/locales/ar-JO.d.ts

@@ -0,0 +1,63 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-JO.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-JO.js.map


+ 64 - 0
node_modules/@angular/common/locales/ar-KM.d.ts

@@ -0,0 +1,64 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KMF: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-KM.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-KM.js.map


+ 63 - 0
node_modules/@angular/common/locales/ar-KW.d.ts

@@ -0,0 +1,63 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SDG: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 23 - 0
node_modules/@angular/common/locales/ar-KW.js


Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
node_modules/@angular/common/locales/ar-KW.js.map


+ 62 - 0
node_modules/@angular/common/locales/ar-LB.d.ts

@@ -0,0 +1,62 @@
+/**
+ * @license
+ * Copyright Google LLC All Rights Reserved.
+ *
+ * Use of this source code is governed by an MIT-style license that can be
+ * found in the LICENSE file at https://angular.dev/license
+ */
+declare function plural(val: number): number;
+declare const _default: (string | number | number[] | (string | undefined)[] | typeof plural | (string[] | undefined)[] | {
+    AED: string[];
+    ARS: (string | undefined)[];
+    AUD: string[];
+    BBD: (string | undefined)[];
+    BHD: string[];
+    BMD: (string | undefined)[];
+    BND: (string | undefined)[];
+    BSD: (string | undefined)[];
+    BYN: (string | undefined)[];
+    BZD: (string | undefined)[];
+    CAD: string[];
+    CLP: (string | undefined)[];
+    CNY: string[];
+    COP: (string | undefined)[];
+    CUP: (string | undefined)[];
+    DOP: (string | undefined)[];
+    DZD: string[];
+    EGP: string[];
+    FJD: (string | undefined)[];
+    GBP: string[];
+    GYD: (string | undefined)[];
+    HKD: string[];
+    IQD: string[];
+    IRR: string[];
+    JMD: (string | undefined)[];
+    JOD: string[];
+    JPY: string[];
+    KWD: string[];
+    KYD: (string | undefined)[];
+    LBP: string[];
+    LRD: (string | undefined)[];
+    LYD: string[];
+    MAD: string[];
+    MRU: string[];
+    MXN: string[];
+    NZD: string[];
+    OMR: string[];
+    PHP: (string | undefined)[];
+    QAR: string[];
+    SAR: string[];
+    SBD: (string | undefined)[];
+    SDD: string[];
+    SRD: (string | undefined)[];
+    SYP: string[];
+    THB: string[];
+    TND: string[];
+    TTD: (string | undefined)[];
+    TWD: string[];
+    USD: string[];
+    UYU: (string | undefined)[];
+    YER: string[];
+} | undefined)[];
+export default _default;

Vissa filer visades inte eftersom för många filer har ändrats